diff --git a/ironic/drivers/modules/drac/inspect.py b/ironic/drivers/modules/drac/inspect.py index b944d3a2eb..620a32273c 100644 --- a/ironic/drivers/modules/drac/inspect.py +++ b/ironic/drivers/modules/drac/inspect.py @@ -248,5 +248,6 @@ class DracInspect(DracWSManInspect): """ def __init__(self): + super(DracInspect, self).__init__() LOG.warning("Inspect interface 'idrac' is deprecated and may be " "removed in a future release. Use 'idrac-wsman' instead.") diff --git a/ironic/drivers/modules/drac/management.py b/ironic/drivers/modules/drac/management.py index 68b09ecabb..f595bea3be 100644 --- a/ironic/drivers/modules/drac/management.py +++ b/ironic/drivers/modules/drac/management.py @@ -2,7 +2,7 @@ # # Copyright 2014 Red Hat, Inc. # All Rights Reserved. -# Copyright (c) 2017-2019 Dell Inc. or its subsidiaries. +# Copyright (c) 2017-2020 Dell Inc. or its subsidiaries. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -478,5 +478,6 @@ class DracManagement(DracWSManManagement): """ def __init__(self): + super(DracManagement, self).__init__() LOG.warning("Management interface 'idrac' is deprecated and may be " "removed in a future release. Use 'idrac-wsman' instead.") diff --git a/ironic/drivers/modules/drac/power.py b/ironic/drivers/modules/drac/power.py index a42b4d5d9d..96f6f99321 100644 --- a/ironic/drivers/modules/drac/power.py +++ b/ironic/drivers/modules/drac/power.py @@ -263,5 +263,6 @@ class DracPower(DracWSManPower): """ def __init__(self): + super(DracPower, self).__init__() LOG.warning("Power interface 'idrac' is deprecated and may be removed " "in a future release. Use 'idrac-wsman' instead.") diff --git a/ironic/drivers/modules/drac/raid.py b/ironic/drivers/modules/drac/raid.py index 5d2d023414..8acf9188df 100644 --- a/ironic/drivers/modules/drac/raid.py +++ b/ironic/drivers/modules/drac/raid.py @@ -1549,5 +1549,6 @@ class DracRAID(DracWSManRAID): """ def __init__(self): + super(DracRAID, self).__init__() LOG.warning("RAID interface 'idrac' is deprecated and may be removed " "in a future release. Use 'idrac-wsman' instead.") diff --git a/ironic/drivers/modules/drac/vendor_passthru.py b/ironic/drivers/modules/drac/vendor_passthru.py index 620ea93e1a..ff43cc95ce 100644 --- a/ironic/drivers/modules/drac/vendor_passthru.py +++ b/ironic/drivers/modules/drac/vendor_passthru.py @@ -186,6 +186,7 @@ class DracVendorPassthru(DracWSManVendorPassthru): """ def __init__(self): + super(DracVendorPassthru, self).__init__() LOG.warning("Vendor passthru interface 'idrac' is deprecated and may " "be removed in a future release. Use 'idrac-wsman' " "instead.") diff --git a/releasenotes/notes/idrac-fix-deprecated-idrac-interface-__init__-362696b389c86d5d.yaml b/releasenotes/notes/idrac-fix-deprecated-idrac-interface-__init__-362696b389c86d5d.yaml new file mode 100644 index 0000000000..dc331f2c68 --- /dev/null +++ b/releasenotes/notes/idrac-fix-deprecated-idrac-interface-__init__-362696b389c86d5d.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + Fixes the deprecated ``idrac`` hardware interface implementation + ``__init__`` methods to call their base class ``__init__`` methods before + emitting a log message warning about their deprecation. For more + information, see `story 2008197 + `_.