Use SessionClient for Ironic actions
The HTTPClient for Ironic is deprecated and will be removed in Stein. Use the SessionClient for Ironic actions instead. Also uses endpoint_override param instead of endpoint, as that is also deprecated. Change-Id: Ida3b502b25887ec9a7b51c4d6497699cc9466f05
This commit is contained in:
parent
f75e7198c6
commit
b6ebcb3bd0
|
@ -114,7 +114,7 @@ python-glanceclient==2.8.0
|
|||
python-glareclient==0.3.0
|
||||
python-heatclient==1.10.0
|
||||
python-ironic-inspector-client==1.5.0
|
||||
python-ironicclient==2.3.0
|
||||
python-ironicclient==2.7.0
|
||||
python-keystoneclient==3.8.0
|
||||
python-magnumclient==2.1.0
|
||||
python-manilaclient==1.23.0
|
||||
|
|
|
@ -323,17 +323,22 @@ class IronicAction(base.OpenStackAction):
|
|||
|
||||
ironic_endpoint = self.get_service_endpoint()
|
||||
|
||||
return self._get_client_class()(
|
||||
ironic_endpoint.url,
|
||||
token=context.auth_token,
|
||||
region_name=ironic_endpoint.region,
|
||||
session_and_auth = self.get_session_and_auth(context)
|
||||
|
||||
client = self._get_client_class()(
|
||||
os_ironic_api_version=IRONIC_API_VERSION,
|
||||
insecure=context.insecure
|
||||
endpoint_override=ironic_endpoint.url,
|
||||
session=session_and_auth['session']
|
||||
)
|
||||
|
||||
return client
|
||||
|
||||
@classmethod
|
||||
def _get_fake_client(cls):
|
||||
return cls._get_client_class()("http://127.0.0.1:6385/")
|
||||
return cls._get_client_class()(
|
||||
endpoint_override="http://127.0.0.1:6385/",
|
||||
session={"fake": "session"}
|
||||
)
|
||||
|
||||
|
||||
class BaremetalIntrospectionAction(base.OpenStackAction):
|
||||
|
|
|
@ -49,7 +49,7 @@ python-senlinclient>=1.1.0 # Apache-2.0
|
|||
python-swiftclient>=3.2.0 # Apache-2.0
|
||||
python-tackerclient>=0.8.0 # Apache-2.0
|
||||
python-troveclient>=2.2.0 # Apache-2.0
|
||||
python-ironicclient!=2.5.2,!=2.7.1,>=2.3.0 # Apache-2.0
|
||||
python-ironicclient!=2.7.1,>=2.7.0 # Apache-2.0
|
||||
python-ironic-inspector-client>=1.5.0 # Apache-2.0
|
||||
python-vitrageclient>=2.0.0 # Apache-2.0
|
||||
python-zaqarclient>=1.0.0 # Apache-2.0
|
||||
|
|
Loading…
Reference in New Issue