validation of deploy interface references instance_info

Bug #1381155 reported by aeva black
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Confirmed
Medium
Sandhya Balakrishnan

Bug Description

When calling "ironic node-validate NNNN" on a node which uses any of the pxe_* family of drivers, if the node.instance_info does not contain "image_source" or "root_gb", then the deploy interface will fail to validate. This is confusing because these fields are not part of driver_info, whereas all other errors reported by node-validate reference parameters which are part of driver_info.

Example:

deva@devstack:~/devstack$ ironic node-show a8cb6624-0d9f-4882-affc-046ebb96ec92
| driver_info | {u'ipmi_address': u'1.2.3.4', u'ipmi_username': u'admin', |
| | u'ipmi_password': u'adminpass'} |
| instance_info | {} |

deva@devstack:~/devstack$ ironic node-validate a8cb6624-0d9f-4882-affc-046ebb96ec92
| deploy | False | Cannot validate iSCSI deploy. The following parameters were not passed to ironic: ['root_gb', 'image_source'] |

deva@devstack:~/devstack$ ironic node-update a8cb6624-0d9f-4882-affc-046ebb96ec92 add instance_info/root_gb=10 instance_info/image_source=f35a1006-fd03-4c41-abef-f15c38d3b1a6
| instance_info | {u'root_gb': u'10', u'image_source': u'f35a1006-fd03-4c41-abef- |
| | f15c38d3b1a6'} |

deva@devstack:~/devstack$ ironic node-validate a8cb6624-0d9f-4882-affc-046ebb96ec92
| deploy | False | Cannot validate PXE bootloader. The following parameters were not passed to ironic: ['pxe_deploy_ramdisk', 'pxe_deploy_kernel'] |

Tags: api
aeva black (tenbrae)
tags: added: api
Changed in ironic:
status: New → Confirmed
importance: Undecided → Medium
Rakesh H S (rh-s)
Changed in ironic:
assignee: nobody → Rakesh H S (rh-s)
Revision history for this message
Anusha (anusha-iiitm) wrote :

Isn't this duplicate of #Bug 1379911?

Revision history for this message
Rakesh H S (rh-s) wrote :

Hi Anusha,

Let me know if https://review.openstack.org/#/c/128862/ fixes this issue.

Regards,
Rakesh

Rakesh H S (rh-s)
Changed in ironic:
assignee: Rakesh H S (rh-s) → nobody
Changed in ironic:
assignee: nobody → Sandhya Balakrishnan (sandhya-balakrishnan)
Revision history for this message
Jim Rollenhagen (jim-rollenhagen) wrote :

This is fixed by 128862, and is a duplicate of 1379911. Closing.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.