nova interface-list got none mac-addr

Bug #1199706 reported by Tiantian Gao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Medium
Tiantian Gao

Bug Description

When use nova shell to list interfaces, the column 'mac address' is empty.

ubuntu@tt-devstack-net:~$ nova --debug interface-list vm2
+------------+--------------------------------------+--------------------------------------+--------------+-------------+
| Port State | Port ID | Net ID | IP addresses | MAC Address |
+------------+--------------------------------------+--------------------------------------+--------------+-------------+
| ACTIVE | 1ef56a7c-807b-4fdc-aa03-a1149fc03a13 | 61114386-80b6-4dac-a764-084dc7838cd3 | 192.168.1.2 | |
| ACTIVE | 2098f1ca-dd51-4282-a5e5-4a970c308721 | b029ad99-9324-4793-ace4-34fe346b1d1b | 10.0.0.4 | |
+------------+--------------------------------------+--------------------------------------+--------------+-------------+

But in debug information we can find mac addr:
RESP: [200] {'date': 'Wed, 10 Jul 2013 09:38:33 GMT', 'content-length': '541', 'content-type': 'application/json', 'x-compute-request-id': 'req-ed67cf8a-a6f5-41b0-bf10-46e8c8a8b9b4'}
RESP BODY: {"interfaceAttachments": [{"port_state": "ACTIVE", "fixed_ips": [{"subnet_id": "907469e8-9317-42b2-b639-d91b921a5b13", "ip_address": "192.168.1.2"}], "port_id": "1ef56a7c-807b-4fdc-aa03-a1149fc03a13", "net_id": "61114386-80b6-4dac-a764-084dc7838cd3", "mac_addr": "fa:16:3e:7d:17:ba"}, {"port_state": "ACTIVE", "fixed_ips": [{"subnet_id": "a7a3a308-b970-410a-b543-2b3bd2ac9827", "ip_address": "10.0.0.4"}], "port_id": "2098f1ca-dd51-4282-a5e5-4a970c308721", "net_id": "b029ad99-9324-4793-ace4-34fe346b1d1b", "mac_addr": "fa:16:3e:fd:eb:8b"}]}

Chengli Xu (superekcah)
Changed in python-novaclient:
status: New → Confirmed
Revision history for this message
Tiantian Gao (gtt116) wrote :

Review: https://review.openstack.org/#/c/36421/

Fix interface-list got none mac address.

novaclient expect the response json body has a column 'mac_address', but
actually is 'mac_addr'. This patch is a quick fix. Just print out
"mac_addr" is readable enough.

Fix bug: #1199706

Change-Id: I68823a3d719ee2f5d9d8b6227ca8eb858fc270c3

Changed in python-novaclient:
assignee: nobody → TianTian Gao (gtt116)
status: Confirmed → In Progress
Sean Dague (sdague)
Changed in python-novaclient:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/36421
Committed: http://github.com/openstack/python-novaclient/commit/70e6cd97906fde9a888bae6eadc435560b64ec09
Submitter: Jenkins
Branch: master

commit 70e6cd97906fde9a888bae6eadc435560b64ec09
Author: gtt116 <email address hidden>
Date: Wed Jul 10 17:45:22 2013 +0800

    Fix interface-list got none mac address.

    novaclient expect the response json body has a column 'mac_address', but
    actually is 'mac_addr'. This patch is a quick fix. Just print out
    "mac_addr" is readable enough.

    Fix bug: #1199706

    Change-Id: I68823a3d719ee2f5d9d8b6227ca8eb858fc270c3

Changed in python-novaclient:
status: In Progress → Fix Committed
Changed in python-novaclient:
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.