port-create expects node INT, not STR

Bug #1236639 reported by aeva black
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ironicclient
Fix Released
Undecided
Lucas Alvares Gomes

Bug Description

$ ironic node-list
+--------------------------------------+---------------+-------------+--------------------+
| UUID | Instance UUID | Power State | Provisioning State |
+--------------------------------------+---------------+-------------+--------------------+
| fbe3835c-0dfc-4ec0-a693-44a7b7dd4439 | None | None | None |
+--------------------------------------+---------------+-------------+--------------------+

$ ironic port-create -a 'xx:xx:xx:xx:xx:xx' -n fbe3835c-0dfc-4ec0-a693-44a7b7dd4439
node_id: Wrong type. Expected '<type 'int'>', got '<type 'str'>'

$ ironic port-create -a 'xx:xx:xx:xx:xx:xx' --node_id fbe3835c-0dfc-4ec0-a693-44a7b7dd4439
node_id: Wrong type. Expected '<type 'int'>', got '<type 'str'>'

Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

stack@stack-virtual-machine:~/devstack$ ironic --ironic-url=http://127.0.0.1:6385 port-create -a "AA:AA:AA:BB:BB:BB" -n 87e0c0c1-d117-4b7f-922f-1d26db77a625
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| extra | {} |
| uuid | 3eae0b9d-1339-4a4e-8e69-7985e6ed17c4 |
| node_id | 87e0c0c1-d117-4b7f-922f-1d26db77a625 |
| address | AA:AA:AA:BB:BB:BB |
+----------+--------------------------------------+

Fixed commit review id: I84782268c4317b4eec53fdcdfc6cb2b901b22780

Changed in python-ironicclient:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
status: New → Fix Committed
Changed in python-ironicclient:
milestone: none → 0.7.0
status: Fix Committed → Fix Released
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.