Comment 1 for bug 1790637

Revision history for this message
Bob Fournier (bfournie) wrote :

It appears the problem is when using --provide

For example this works fine.
(undercloud) [stack@host01 ~]$ openstack baremetal node list
+--------------------------------------+-------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+-------+---------------+-------------+--------------------+-------------+
| 4de51a48-abdc-4da7-85d1-4393b2bf9a90 | host2 | None | power on | manageable | False |
| ec6694c6-8c0c-437f-a7f6-82e7c2ab3793 | host3 | None | power on | manageable | False |
+--------------------------------------+-------+---------------+-------------+--------------------+-------------+

(undercloud) [stack@host01 ~]$ openstack overcloud node introspect host2
Waiting for introspection to finish...
Started Mistral Workflow tripleo.baremetal.v1.introspect. Execution ID: 2c03e135-514f-4bfe-9107-77aae3a2e535
Waiting for messages on queue 'tripleo' with no timeout.
Introspection of node 4de51a48-abdc-4da7-85d1-4393b2bf9a90 completed. Status:SUCCESS. Errors:None
Successfully introspected 1 node(s).

But when using --provides we get the error:
(undercloud) [stack@host01 ~]$ openstack overcloud node introspect host2 --provide
Waiting for introspection to finish...
Started Mistral Workflow tripleo.baremetal.v1.introspect. Execution ID: 6306dfac-444e-4d94-81e7-6b160aadd4d4
Waiting for messages on queue 'tripleo' with no timeout.
Introspection of node 4de51a48-abdc-4da7-85d1-4393b2bf9a90 completed. Status:SUCCESS. Errors:None
Successfully introspected 1 node(s).
Started Mistral Workflow tripleo.baremetal.v1.provide. Execution ID: 49af91cc-3757-4297-a881-bcb4a63fc86d
Waiting for messages on queue 'tripleo' with no timeout.
[u"Failed to run action [action_ex_id=4d57d3bb-a7f4-4870-8d0f-22464fa9aa25, action_cls='<class 'mistral.actions.action_factory.NovaAction'>', attributes='{u'client_method_name': u'hypervisors.find'}', params='{u'hypervisor_hostname': u'host2'}']\n NovaAction.hypervisors.find failed: No Hypervisor matching {u'hypervisor_hostname': u'host2'}. (HTTP 404)"]

According to Dmitry the provide workflow cannot accept names.