Merge "Mark untested drivers as unsupported"

This commit is contained in:
Jenkins 2016-09-16 17:37:50 +00:00 committed by Gerrit Code Review
commit 25fcc07507
4 changed files with 90 additions and 0 deletions

View File

@ -97,6 +97,8 @@ class AgentAndIPMINativeDriver(base.BaseDriver):
glue between them.
"""
supported = False
def __init__(self):
self.power = ipminative.NativeIPMIPower()
self.boot = pxe.PXEBoot()
@ -131,6 +133,8 @@ class AgentAndSSHDriver(base.BaseDriver):
is merely the glue between them.
"""
supported = False
def __init__(self):
self.power = ssh.SSHPower()
self.boot = pxe.PXEBoot()
@ -156,6 +160,8 @@ class AgentAndVirtualBoxDriver(base.BaseDriver):
is merely the glue between them.
"""
supported = False
def __init__(self):
if not importutils.try_import('pyremotevbox'):
raise exception.DriverLoadError(
@ -178,6 +184,9 @@ class AgentAndAMTDriver(base.BaseDriver):
deployment. Implementations are in those respective classes; this
class is merely the glue between them.
"""
supported = False
def __init__(self):
if not importutils.try_import('pywsman'):
raise exception.DriverLoadError(
@ -249,6 +258,9 @@ class AgentAndWakeOnLanDriver(base.BaseDriver):
Implementations are in those respective classes;
this class is merely the glue between them.
"""
supported = False
def __init__(self):
self.power = wol.WakeOnLanPower()
self.boot = pxe.PXEBoot()
@ -266,6 +278,9 @@ class AgentAndIBootDriver(base.BaseDriver):
Implementations are in those respective classes;
this class is merely the glue between them.
"""
supported = False
def __init__(self):
if not importutils.try_import('iboot'):
raise exception.DriverLoadError(

View File

@ -117,6 +117,8 @@ class FakePXEDriver(base.BaseDriver):
class FakeSSHDriver(base.BaseDriver):
"""Example implementation of a Driver."""
supported = False
def __init__(self):
self.power = ssh.SSHPower()
self.deploy = fake.FakeDeploy()
@ -127,6 +129,8 @@ class FakeSSHDriver(base.BaseDriver):
class FakeIPMINativeDriver(base.BaseDriver):
"""Fake IPMINative driver."""
supported = False
def __init__(self):
if not importutils.try_import('pyghmi'):
raise exception.DriverLoadError(
@ -142,6 +146,8 @@ class FakeIPMINativeDriver(base.BaseDriver):
class FakeSeaMicroDriver(base.BaseDriver):
"""Fake SeaMicro driver."""
supported = False
def __init__(self):
if not importutils.try_import('seamicroclient'):
raise exception.DriverLoadError(
@ -168,6 +174,8 @@ class FakeAgentDriver(base.BaseDriver):
class FakeIBootDriver(base.BaseDriver):
"""Fake iBoot driver."""
supported = False
def __init__(self):
if not importutils.try_import('iboot'):
raise exception.DriverLoadError(
@ -211,6 +219,8 @@ class FakeDracDriver(base.BaseDriver):
class FakeSNMPDriver(base.BaseDriver):
"""Fake SNMP driver."""
supported = False
def __init__(self):
if not importutils.try_import('pysnmp'):
raise exception.DriverLoadError(
@ -237,6 +247,8 @@ class FakeIRMCDriver(base.BaseDriver):
class FakeVirtualBoxDriver(base.BaseDriver):
"""Fake VirtualBox driver."""
supported = False
def __init__(self):
if not importutils.try_import('pyremotevbox'):
raise exception.DriverLoadError(
@ -265,6 +277,8 @@ class FakeIPMIToolInspectorDriver(base.BaseDriver):
class FakeAMTDriver(base.BaseDriver):
"""Fake AMT driver."""
supported = False
def __init__(self):
if not importutils.try_import('pywsman'):
raise exception.DriverLoadError(
@ -278,6 +292,8 @@ class FakeAMTDriver(base.BaseDriver):
class FakeMSFTOCSDriver(base.BaseDriver):
"""Fake MSFT OCS driver."""
supported = False
def __init__(self):
self.power = msftocs_power.MSFTOCSPower()
self.deploy = fake.FakeDeploy()
@ -313,6 +329,8 @@ class FakeCIMCDriver(base.BaseDriver):
class FakeWakeOnLanDriver(base.BaseDriver):
"""Fake Wake-On-Lan driver."""
supported = False
def __init__(self):
self.power = wol.WakeOnLanPower()
self.deploy = fake.FakeDeploy()

View File

@ -116,6 +116,9 @@ class PXEAndSSHDriver(base.BaseDriver):
image deployment. Implementations are in those respective
classes; this class is merely the glue between them.
"""
supported = False
def __init__(self):
self.power = ssh.SSHPower()
self.boot = pxe.PXEBoot()
@ -138,6 +141,9 @@ class PXEAndIPMINativeDriver(base.BaseDriver):
for image deployment. Implementations are in those respective
classes; this class is merely the glue between them.
"""
supported = False
def __init__(self):
if not importutils.try_import('pyghmi'):
raise exception.DriverLoadError(
@ -173,6 +179,9 @@ class PXEAndSeaMicroDriver(base.BaseDriver):
for image deployment. Implementations are in those respective
classes; this class is merely the glue between them.
"""
supported = False
def __init__(self):
if not importutils.try_import('seamicroclient'):
raise exception.DriverLoadError(
@ -203,6 +212,9 @@ class PXEAndIBootDriver(base.BaseDriver):
image deployment. Implementations are in those respective classes;
this class is merely the glue between them.
"""
supported = False
def __init__(self):
if not importutils.try_import('iboot'):
raise exception.DriverLoadError(
@ -247,6 +259,9 @@ class PXEAndSNMPDriver(base.BaseDriver):
deployment. Implentations are in those respective classes; this
class is merely the glue between them.
"""
supported = False
def __init__(self):
# Driver has a runtime dependency on PySNMP, abort load if it is absent
if not importutils.try_import('pysnmp'):
@ -297,6 +312,9 @@ class PXEAndVirtualBoxDriver(base.BaseDriver):
deployment. Implementations are in those respective classes;
this class is merely the glue between them.
"""
supported = False
def __init__(self):
if not importutils.try_import('pyremotevbox'):
raise exception.DriverLoadError(
@ -319,6 +337,9 @@ class PXEAndAMTDriver(base.BaseDriver):
deployment. Implementations are in those respective classes; this
class is merely the glue between them.
"""
supported = False
def __init__(self):
if not importutils.try_import('pywsman'):
raise exception.DriverLoadError(
@ -340,6 +361,9 @@ class PXEAndMSFTOCSDriver(base.BaseDriver):
for image deployment. Implementations are in those respective classes;
this class is merely the glue between them.
"""
supported = False
def __init__(self):
self.power = msftocs_power.MSFTOCSPower()
self.boot = pxe.PXEBoot()
@ -405,6 +429,9 @@ class PXEAndWakeOnLanDriver(base.BaseDriver):
deployment. Implementations are in those respective classes;
this class is merely the glue between them.
"""
supported = False
def __init__(self):
self.power = wol.WakeOnLanPower()
self.boot = pxe.PXEBoot()

View File

@ -0,0 +1,30 @@
---
deprecations:
- |
The following drivers are marked as unsupported and therefore deprecated.
Some or all of these drivers may be removed in the Ocata cycle or later.
* ``agent_amt``
* ``agent_iboot``
* ``agent_pyghmi``
* ``agent_ssh``
* ``agent_vbox``
* ``agent_wol``
* ``fake_ipminative``
* ``fake_ssh``
* ``fake_seamicro``
* ``fake_iboot``
* ``fake_snmp``
* ``fake_vbox``
* ``fake_amt``
* ``fake_msftocs``
* ``fake_wol``
* ``pxe_ipminative``
* ``pxe_ssh``
* ``pxe_vbox``
* ``pxe_seamicro``
* ``pxe_iboot``
* ``pxe_snmp``
* ``pxe_amt``
* ``pxe_msftocs``
* ``pxe_wol``