Public bug reported:

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

** Affects: nova
     Importance: Undecided
     Assignee: Dinesh Bhor (dinesh-bhor)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Dinesh Bhor (dinesh-bhor)

-- 
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):
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to