Bug 1677283 - Introspection fails if hostname is used instead of the UUID
Summary: Introspection fails if hostname is used instead of the UUID
Keywords:
Status: CLOSED DUPLICATE of bug 1677016
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: mlammon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-14 13:18 UTC by Mikel Olasagasti
Modified: 2019-03-01 16:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-01 16:44:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mikel Olasagasti 2019-02-14 13:18:04 UTC
(undercloud) [stack@ccc001 ~]$ openstack overcloud node introspect node52 --provide
Waiting for introspection to finish...
Started Mistral Workflow tripleo.baremetal.v1.introspect. Execution ID: 67f4e85c-4800-418c-bca7-ce7c374faeed
Waiting for messages on queue 'tripleo' with no timeout.
Introspection of node 08c303e8-fa07-481e-90c9-3444564fee6e completed. Status:SUCCESS. Errors:None
Successfully introspected 1 node(s).
Started Mistral Workflow tripleo.baremetal.v1.provide. Execution ID: 3453bb3c-7ad9-48ea-b993-c2d7162bc15b
Waiting for messages on queue 'tripleo' with no timeout.
[u"Failed to run action [action_ex_id=4100cb43-468c-45ad-89f0-85481bec38c9, action_cls='<class 'mistral.actions.action_factory.NovaAction'>', attributes='{u'client_method_name': u'hypervisors.find'}', params='{u'hypervisor_hostname': u'node52'}']\n NovaAction.hypervisors.find failed: No Hypervisor matching {u'hypervisor_hostname': u'node52'}. (HTTP 404)"]

...

{u'status': u'FAILED', u'message': [u"Failed to run action [action_ex_id=e6c660c2-fed9-4a32-b773-483a6b606436, action_cls='<class 'mistral.actions.action_factory.NovaAction'>', attributes='{u'client_method_name'
: u'hypervisors.find'}', params='{u'hypervisor_hostname': u'node52'}']\n NovaAction.hypervisors.find failed: No Hypervisor matching {u'hypervisor_hostname': u'node52'}. (HTTP 404)"], u'resu
lt': None}
Failed to set nodes to available state: Failed.
(undercloud) [stack@ccc001 ~]$ 

(undercloud) [stack@ccc001 ~]$ openstack baremetal node list
+--------------------------------------+---------+---------------+-------------+--------------------+-------------+
| UUID                                 | Name    | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+---------+---------------+-------------+--------------------+-------------+
| 945926d3-6d73-4253-a030-eea397850fd2 | node002 | None          | power off   | manageable         | True        |
| ac90a9e5-ae67-4817-86c5-a1576d858ed5 | node003 | None          | power off   | manageable         | True        |
| 9e16377c-0e84-40bf-907c-df58ef5ed027 | node97  | None          | power off   | manageable         | False       |
| d391c1d9-2f99-41e9-b43e-328227a3bb68 | node98  | None          | power off   | manageable         | False       |
| fc8f6eab-f0b7-4ef1-abea-76d03716d8b3 | node100 | None          | power off   | manageable         | False       |
| a3a4d742-d9e7-413b-a851-7bdf0353f03b | node49  | None          | None        | available          | True        |
| 19dd1b26-47be-4d38-9292-d5c73dfe67e8 | node50  | None          | None        | available          | True        |
| a9ef8546-c279-413b-9d9e-29f8cfadeb9b | node99  | None          | power off   | manageable         | False       |
| 205dc036-5836-4d2e-bd71-af63f5219005 | node001 | None          | power off   | available          | False       |
| 08c303e8-fa07-481e-90c9-3444564fee6e | node52  | None          | power off   | available          | False       |
+--------------------------------------+---------+---------------+-------------+--------------------+-------------+

(undercloud) [stack@ccc001 ~]$ mistral execution-get 67f4e85c-4800-418c-bca7-ce7c374faeed
+--------------------+--------------------------------------+
| Field              | Value                                |
+--------------------+--------------------------------------+
| ID                 | 67f4e85c-4800-418c-bca7-ce7c374faeed |
| Workflow ID        | e7f66a03-bea5-4431-91ae-4f766cf55605 |
| Workflow name      | tripleo.baremetal.v1.introspect      |
| Workflow namespace |                                      |
| Description        |                                      |
| Task Execution ID  | <none>                               |
| State              | SUCCESS                              |
| State info         | None                                 |
| Created at         | 2019-02-13 12:50:27                  |
| Updated at         | 2019-02-13 13:01:28                  |
+--------------------+--------------------------------------+
(undercloud) [stack@ccc001 ~]$ 

Using UUID instead of hostname works.

Comment 1 Bob Fournier 2019-03-01 16:44:08 UTC

*** This bug has been marked as a duplicate of bug 1677016 ***


Note You need to log in before you can comment on or make changes to this bug.