instack-undercloud: after enabling the pxe_drac driver for a host, running instack-ironic-deployment --discover-nodes gets stuck.
Checking the console of a host - I see that nothing happens, the host doesn't boot.
Steps to reproduce:
1. Install undercloud.
2. append pxe_drac to the "enabled_drivers=pxe_ipmitool,pxe_ssh" line
3. sudo systemctl restart openstack-ironic-conductor
4. ironic node-update <nodeID> add driver='pxe_drac'
ironic node-update <nodeID> add driver_info/drac_password='<password>'
ironic node-update <nodeID> add driver_info/drac_username='<user
ironic node-update <nodeID> add driver_info/drac_host='<host>'`
5. instack-ironic-deployment --discover-nodes
Polling discoverd for discovery results ...
gets stuck. the hosts aren't booted.
The discovery should complete.
Hi! Please provide output (or last relevant lines) of $ sudo journalctl -b -u openstack-ironic-discoverd
Failed to reproduce based on the steps provided.
+1 for logs, it would be really useful if you could always attach all relevant logs, including discoverd and ironic in this case.
sudo journalctl -b -u openstack-ironic-discoverd:
-- Logs begin at Thu 2015-03-26 15:35:55 EDT, end at Fri 2015-03-27 09:28:08 EDT. --
Created attachment 1007363 [details]
Created attachment 1007364 [details]
Looks like discovery ended successfully in your case, maybe you should wait a bit more?
Created attachment 1007408 [details]
I managed to track this down. It's caused by driver inconsistency in Ironic. Eg. DRAC raised an error when a reboot was requested while the node is powered off. This has been discussed upstream and the desired behaviour is that the driver powers on the node in this case.
One important step to make this issue reproducible is that the node must be powered off before discovery.
Reply to comment #8, the log includes subsequent runs.
Comment #9 explains the issue.
Upstream patch: https://review.openstack.org/#/c/168902/
Patch merged upstream: https://github.com/openstack/ironic/commit/e94b1edeae4fbfbf2848137496d5b038022849ae
Patch merged downstream: https://github.com/rdo-management/ironic/commit/ec3d85294a5d2766594819e3194752a945660da4
1. These are the enabled drivers now by default:
2. The unified CLI command to discover the nodes is now:
openstack baremetal introspection bulk start
Discovery for UUID <UUID> finished successfully.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.