Ironic client can't display local_link_connection for a port

Bug #1655327 reported by George Shuklin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ironicclient
Expired
Undecided
Unassigned
python-ironicclient (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Ironic display empty space at local_link_connection even it is not empty in database.

versions:
(xenial/newton)
python-ironicclient 1.7.0-0ubuntu1~cloud0
python-ironic 1:6.2.1-0ubuntu1~cloud0

Steps to reproduce:

ironic port-update a9c45d04-a3f8-4787-9147-a808c4ecfc81 add local_link_connection/switch_id=60:9c:9f:49:a8:84 local_link_connection/port_id=1/1/25

ironic port-show a9c45d04-a3f8-4787-9147-a808c4ecfc81

```
+-----------------------+--------------------------------------+
| Property | Value |
+-----------------------+--------------------------------------+
| address | 18:66:da:5e:fd:47 |
| created_at | 2017-01-02T10:17:39+00:00 |
| extra | {} |
| internal_info | |
| local_link_connection | |
| node_uuid | a93c9183-c057-46e4-a314-2e6982523c4d |
| pxe_enabled | |
| updated_at | 2017-01-10T12:31:05+00:00 |
| uuid | a9c45d04-a3f8-4787-9147-a808c4ecfc81 |
+-----------------------+--------------------------------------+
```
Actual info from database:
```
mysql> select uuid, local_link_connection from ports;
+--------------------------------------+---------------------------------------------------------+
| uuid | local_link_connection |
+--------------------------------------+---------------------------------------------------------+
| a9c45d04-a3f8-4787-9147-a808c4ecfc81 | {"port_id": "1/1/25", "switch_id": "60:9c:9f:49:a8:84"} |
+--------------------------------------+---------------------------------------------------------+
```
Expected behavior: see non-empty port/switch_id.
Actual behavior: empty local_link_connection field.

description: updated
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Ironicclient supports local_link_connection field on version 1.19 and above.
Try to use option --ironic-api-version 1.19 and then post here about result please.
Example: http://paste.openstack.org/show/594571/

Changed in python-ironicclient:
status: New → Incomplete
Revision history for this message
James Page (james-page) wrote :

Looking at the comments in #1 the data is there, but you need to use a newer API version; I also checked the ironicclient version in the Newton UCA against the Newton release notes and we're within range so marking this bug a 'Won't Fix'

Changed in python-ironicclient (Ubuntu):
status: New → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-ironicclient because there has been no activity for 60 days.]

Changed in python-ironicclient:
status: Incomplete → Expired
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.