node-validate breaks when invalid image_source is supplied in instance_info
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I committed a mistake while adding instance_
stack@ramesh-
+------
| Property | Value |
+------
| instance_uuid | None |
| target_power_state | None |
| properties | {} |
| maintenance | False |
| driver_info | {u'pxe_
| | u'pxe_deploy_
| | u'ipmi_address': u'10.10.1.57', u'ipmi_username': u'Administrator', |
| | u'ipmi_password': u'password'} |
| extra | {} |
| last_error | None |
| created_at | 2014-05-
| target_
| driver | pxe_ipmitool |
| updated_at | 2014-05-
| instance_info | {u'root_gb': u'5', u'image_source': u'cirros-
| chassis_uuid | None |
| provision_state | None |
| reservation | None |
| power_state | power off |
| console_enabled | False |
| uuid | 687452e4-
+------
stack@ramesh-
Remote error: HTTPNotFound HTTPNotFound (HTTP 404)
[u' (HTTP 500)
stack@ramesh-
The problem was that I gave image name instead of image uuid in image_source, but node-validate broke because of that.
description: | updated |
description: | updated |
summary: |
- node-validate breaks invalid image_source was supplied in instance_info + node-validate breaks when invalid image_source was supplied in + instance_info |
summary: |
- node-validate breaks when invalid image_source was supplied in + node-validate breaks when invalid image_source is supplied in instance_info |
Changed in ironic: | |
status: | Incomplete → Invalid |
How exactly can I reproduce it. This does not cause the error:
$ ironic node-update 41995aad- ac5b-4e01- 88d1-1b676565f8 ee add instance_ info/image_ source= "cirros- 0.3.2-x86_ 64-uec" ac5b-4e01- 88d1-1b676565f8 ee ------+ ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ ------+ ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ ------+ ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+
$ ironic node-validate 41995aad-
+------
| interface | result | reason |
+------
| console | None | not supported |
| deploy | False | Can not validate PXE bootloader. The following parameters were not passed to ironic: ['root_gb'] |
| management | False | SSHPowerDriver requires the following to be set: ['ssh_username', 'ssh_virt_type', 'ssh_address']. |
| power | False | SSHPowerDriver requires the following to be set: ['ssh_username', 'ssh_virt_type', 'ssh_address']. |
+------