← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1428429] [NEW] 'nova show vm-id' return wrong mac

 

Public bug reported:

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": {}}}

** Affects: nova
     Importance: Undecided
     Assignee: shihanzhang (shihanzhang)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => shihanzhang (shihanzhang)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1428429

Title:
  'nova show vm-id' return wrong mac

Status in OpenStack Compute (Nova):
  New

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": {}}}

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1428429/+subscriptions


Follow ups

References