'nova show vm-id' return wrong mac

Bug #1428429 reported by shihanzhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
shihanzhang

Bug Description

when a VM has two interface, the return of 'nova show' include wrong mac address

root@devstack:~# nova list
+--------------------------------------+-------+--------+------------+-------------+----------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------+--------+------------+-------------+----------------------------+
| cf054891-b487-4721-bfb3-43b0274852b5 | ls_vm | ACTIVE | - | Running | private=10.0.0.4, 10.0.0.5 |
+--------------------------------------+-------+--------+------------+-------------+----------------------------+

nova --debug show ls_vm, the return message is bellow, we can the the two nic with same mac address
DEBUG (session:223) RESP: [200] date: Sun, 01 Mar 2015 00:57:25 GMT content-length: 1811 content-type: application/json x-compute-request-id: req-b68c0e86-ba27-440c-9db9-a95eba3d1441
RESP BODY: {"server": {"status": "ACTIVE", "updated": "2015-03-01T00:49:59Z", "hostId": "dfd39f6797dde4a9ae5da5e63375c0fe8e2779174fec58f651c8e6d2", "OS-EXT-SRV-ATTR:host": "devstack", "addresses": {"private": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:78:ba:94", "version": 4, "addr": "10.0.0.4", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:78:ba:94", "version": 4, "addr": "10.0.0.5", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://10.250.10.246:8774/v2/e188670ecafd46a18fff18c388a03417/servers/cf054891-b487-4721-bfb3-43b0274852b5", "rel": "self"}, {"href": "http://10.250.10.246:8774/e188670ecafd46a18fff18c388a03417/servers/cf054891-b487-4721-bfb3-43b0274852b5", "rel": "bookmark"}], "key_name": null, "image": {"id": "ae73b834-6958-4b45-a5e6-f992e823bda9", "links": [{"href": "http://10.250.10.246:8774/e188670ecafd46a18fff18c388a03417/images/ae73b834-6958-4b45-a5e6-f992e823bda9", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000004", "OS-SRV-USG:launched_at": "2015-03-01T00:49:59.000000", "OS-EXT-SRV-ATTR:hypervisor_hostname": "devstack", "flavor": {"id": "11", "links": [{"href": "http://10.250.10.246:8774/e188670ecafd46a18fff18c388a03417/flavors/11", "rel": "bookmark"}]}, "id": "cf054891-b487-4721-bfb3-43b0274852b5", "security_groups": [{"name": "default"}, {"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "4a02104e5fbf4c7281569381835e8d4a", "name": "ls_vm", "created": "2015-03-01T00:49:51Z", "tenant_id": "e188670ecafd46a18fff18c388a03417", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}

Changed in nova:
assignee: nobody → shihanzhang (shihanzhang)
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/161641

Changed in nova:
status: Confirmed → In Progress
Eli Qiao (taget-9)
Changed in nova:
status: In Progress → Confirmed
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/161641
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=21389a315e444e9bbdc9beb7c6f28f237c98b282
Submitter: Jenkins
Branch: master

commit 21389a315e444e9bbdc9beb7c6f28f237c98b282
Author: shihanzhang <email address hidden>
Date: Thu Mar 5 14:23:47 2015 +0800

    Fix 'nova show' return incorrect mac info

    this patch fixes 'nova show' return incorrect mac info when a VM has
    multiple VIFs.

    Change-Id: I08f7472044365a8af07d391b4762a97ed233c86e
    Closes-Bug: #1428429

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-rc1 → 2015.1.0
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.