yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50845
[Bug 1581350] Re: baremetal apis raises 500 InternalServerError if ironic baremetal service is not configured or reachable
I'm almost inclined to just mark this won't fix since it's a proxy API
to Ironic and in Newton we're going to be deprecating all of these.
** Changed in: nova
Status: Confirmed => Won't Fix
** Changed in: nova
Importance: Medium => Undecided
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1581350
Title:
baremetal apis raises 500 InternalServerError if ironic baremetal
service is not configured or reachable
Status in OpenStack Compute (nova):
Won't Fix
Bug description:
Baremetal apis raises 500 InternalServerError if ironic baremetal
service is not configured or reachable.
Steps to reproduce
==================
Command:
nova baremetal-node-list
Actual result
=============
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'ironicclient.exc.AmbiguousAuthSystem'> (HTTP 500) (Request-ID: req-663fbe2c-81b6-4264-9e02-efe5283e5f8f)
Command:
nova baremetal-node-show 1
Actual result
=============
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'ironicclient.exc.AmbiguousAuthSystem'> (HTTP 500) (Request-ID: req-898b8986-ecd3-4d13-a819-1bcd0cf703c8)
Expected result
===============
It should return 503 status code if ironic baremetal service is not configured or reachable.
n-API LOG:
2016-05-13 06:34:14.337 ERROR nova.api.openstack.extensions [req-898b8986-ecd3-4d13-a819-1bcd0cf703c8 admin admin] Unexpected exception in API method
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions return f(*args, **kwargs)
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/compute/baremetal_nodes.py", line 90, in index
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions icli = _get_ironic_client()
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/compute/baremetal_nodes.py", line 61, in _get_ironic_client
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions icli = ironic_client.get_client(CONF.ironic.api_version, **kwargs)
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions File "/usr/local/lib/python2.7/dist-packages/ironicclient/client.py", line 137, in get_client
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions raise exc.AmbiguousAuthSystem(exception_msg)
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions AmbiguousAuthSystem: Must provide Keystone credentials or user-defined endpoint and token
2016-05-13 06:34:14.337 TRACE nova.api.openstack.extensions
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1581350/+subscriptions
References