Failed to prepare to deploy. Error: No VIFs found for node when attempting to update DHCP BOOT options.
I have a packstack installation specifically for bare metal provisioning using ironic. Setup as follows:
packstack --allinone --provision-demo=n --os-ironic-install=y
When setting a new node to active, I get the following error:
Failed to prepare to deploy. Error: No VIFs found for node 779dc1bc-2cc5-45e3-a562-5cea8fa5fba0 when attempting to update DHCP BOOT options.
I created the node instance using the following commands:
ironic node-create -d pxe_ipmitool -n lab-r10-05 -i ipmi_address=10.84.10.64 -i ipmi_username=root -i ipmi_password=calvin
ironic port-create -n <$NODE_UUID> -a 18:03:73:f4:f0:d4
ironic node-update lab-r10-05 add properties/cpus=8 properties/memory_mb=12280 properties/local_gb=80 properties/cpu_arch=x86_64
ironic node-update lab-r10-05 add driver_info/deploy_ramdisk=46604c11-e0a3-44da-830a-37639a4f94ae
ironic node-update lab-r10-05 add driver_info/deploy_kernel=f2bf3deb-66cc-4b08-ad09-bf0cc2a82b24
ironic node-update lab-r10-05 add instance_info/ramdisk=ad61aeac-6728-4cbf-89e9-c99a4fbaeb4c
ironic node-update lab-r10-05 add instance_info/kernel=d3be0bfb-aac0-46ee-86d7-887a8a03525a
ironic node-update lab-r10-05 add instance_info/image_source=f6effb20-a8c0-453f-9811-a4bd87369fb5
ironic node-update lab-r10-05 add instance_info/root_gb=10
ironic node-update lab-r10-05 add instance_info/deploy_boot_mode=bios
Here's what the node looks like in ironic:
[root@lab-r10-23 ~(keystone_admin)]# ironic node-show lab-r10-05
+------------------------+--------------------------------------------------------------------------+
| Property | Value |
+------------------------+--------------------------------------------------------------------------+
| target_power_state | None |
| extra | {} |
| last_error | Failed to prepare to deploy. Error: No VIFs found for node 779dc1bc- |
| | 2cc5-45e3-a562-5cea8fa5fba0 when attempting to update DHCP BOOT options. |
| updated_at | 2016-03-07T04:22:26+00:00 |
| maintenance_reason | None |
| provision_state | deploy failed |
| clean_step | {} |
| uuid | 779dc1bc-2cc5-45e3-a562-5cea8fa5fba0 |
| console_enabled | False |
| target_provision_state | active |
| provision_updated_at | 2016-03-07T04:22:26+00:00 |
| maintenance | False |
| inspection_started_at | None |
| inspection_finished_at | None |
| power_state | power on |
| driver | pxe_ipmitool |
| reservation | None |
| properties | {u'memory_mb': 12280, u'cpu_arch': u'x86_64', u'local_gb': 80, u'cpus': |
| | 8} |
| instance_uuid | None |
| name | lab-r10-05 |
| driver_info | {u'ipmi_password': u'******', u'ipmi_address': u'10.84.10.64', |
| | u'ipmi_username': u'root', u'deploy_kernel': u'f2bf3deb-66cc- |
| | 4b08-ad09-bf0cc2a82b24', u'deploy_ramdisk': u'46604c11-e0a3-44da-830a- |
| | 37639a4f94ae'} |
| created_at | 2016-03-06T22:23:23+00:00 |
| driver_internal_info | {u'is_whole_disk_image': False} |
| chassis_uuid | |
| instance_info | {u'ramdisk': u'ad61aeac-6728-4cbf-89e9-c99a4fbaeb4c', u'kernel': u |
| | 'd3be0bfb-aac0-46ee-86d7-887a8a03525a', u'root_gb': 10, u'image_source': |
| | u'f6effb20-a8c0-453f-9811-a4bd87369fb5', u'deploy_boot_mode': u'pxe', |
| | u'deploy_key': u'OZFHO6FUDAGA9JCYACJL81MNQWVTEXLU'} |
+------------------------+--------------------------------------------------------------------------+
When I set the node to active, I see the following log messages. What am I missing? I've looked through some of the traceback and it seems like there's some hook to a neutron port that maybe isn't there? Any ideas?
Mar 06 23:22:26 lab-r10-23 ironic-conductor[21886]: 2016-03-06 23:22:26.132 21886 DEBUG ironic.common.states [-] Entering new state 'deploy failed' in response to event 'fail' on_enter /usr/lib/python2.7/site-packages/ironic/common/states.py:205
Mar 06 23:22:26 lab-r10-23 ironic-conductor[21886]: 2016-03-06 23:22:26.139 21886 ERROR ironic.conductor.manager [-] Error while preparing to deploy to node 779dc1bc-2cc5-45e3-a562-5cea8fa5fba0: No VIFs found for node 779dc1bc-2cc5-45e3-a562-5cea8fa5fba0 when attempting t
Mar 06 23:22:26 lab-r10-23 ironic-api[21927]: 10.84.110.103 - - [06/Mar/2016 23:22:26] "PUT /v1/nodes/lab-r10-05/states/provision HTTP/1.1" 202 0
Mar 06 23:22:26 lab-r10-23 ironic-conductor[21886]: 2016-03-06 23:22:26.151 21886 DEBUG ironic.conductor.task_manager [-] Successfully released exclusive lock for node deployment on node 779dc1bc-2cc5-45e3-a562-5cea8fa5fba0 (lock was held 0.42 sec) release_resources /usr/
Mar 06 23:22:26 lab-r10-23 ...