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 Result: Polling discoverd for discovery results ... gets stuck. the hosts aren't booted. Expected result: 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] openstack-ironic-conductor.log
Created attachment 1007364 [details] openstack-ironic-discoverd.log
Looks like discovery ended successfully in your case, maybe you should wait a bit more?
Created attachment 1007408 [details] ironic-conductor.log 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
Verified: Environment: openstack-ironic-common-2015.1.0-4.el7ost.noarch openstack-ironic-discoverd-1.1.0-3.el7ost.noarch python-ironic-discoverd-1.1.0-3.el7ost.noarch python-ironicclient-0.5.1-5.el7ost.noarch openstack-ironic-conductor-2015.1.0-4.el7ost.noarch openstack-ironic-api-2015.1.0-4.el7ost.noarch instack-undercloud-2.1.2-1.el7ost.noarch 1. These are the enabled drivers now by default: enabled_drivers=pxe_ipmitool,pxe_ssh,pxe_drac 2. The unified CLI command to discover the nodes is now: openstack baremetal introspection bulk start Result: 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. https://access.redhat.com/errata/RHEA-2015:1549