power_state set to python object when changing driver_info
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
High
|
Lucas Alvares Gomes |
Bug Description
When changing any field in driver_info, the power_state gets set to a string representation of a python object. To test this, I have created a node with valid information, ensured it had a NULL power state (manual db update to do this...) and then did a simple update via the API:
$ ironic node-show fbe3835c-
+------
| Property | Value |
+------
| instance_uuid | None |
| target_power_state | None |
| uuid | fbe3835c-
| driver_info | {u'ssh_username': u'deva', u'ssh_virt_type': u'virsh', u'foo': u'bar', |
| | u'ssh_address': u'192.168.122.1', u'ssh_key_
| | /boot-stack/
| target_
| created_at | |
| extra | {} |
| driver | fake_ssh |
| updated_at | |
| power_state | None |
| provision_state | None |
| reservation | |
| properties | {} |
+------
$ ironic node-update fbe3835c-
+------
| Property | Value |
+------
| instance_uuid | None |
| target_power_state | None |
| uuid | fbe3835c-
| driver_info | {u'ssh_username': u'deva', u'ssh_virt_type': u'virsh', u'foo': u'bar', |
| | u'ssh_address': u'192.168.122.1', u'ssh_key_
| | /boot-stack/
| target_
| created_at | |
| extra | {} |
| driver | fake_ssh |
| updated_at | |
| power_state | <bound method SSHPower.
| | <ironic.
| provision_state | None |
| reservation | |
| properties | {} |
+------
Changed in ironic: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ironic: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
Changed in ironic: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | icehouse-1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/51196
Review: https:/