Description of problem: # nova show Sadique +-------------------------------------+----------------------------------------------------------+ | Property | Value | +-------------------------------------+----------------------------------------------------------+ | status | ACTIVE | | updated | 2013-10-25T12:39:58Z | | OS-EXT-STS:task_state | None | | OS-EXT-SRV-ATTR:host | hp-dl160g6-1.gsslab.pnq.redhat.com | | key_name | None | | image | cirros-512 (ce5a5c11-836b-4836-8634-721de11ec0c3) | | int network | 192.168.35.16 | | hostId | 07690c9fef59717f92d0fc73433d658a3e93967668369a7097783dd9 | | OS-EXT-STS:vm_state | active | | OS-EXT-SRV-ATTR:instance_name | instance-00000057 | | OS-EXT-SRV-ATTR:hypervisor_hostname | hp-dl160g6-1.gsslab.pnq.redhat.com | | flavor | Sadique (9f3df894-f4d6-4c1b-9611-97e793f32c00) | | id | 28579a83-2f2d-44de-9a84-3236a691654f | | security_groups | [{u'name': u'Sadique'}] | | user_id | c85e09def151404681f68286693720b2 | | name | Sadique | | created | 2013-10-25T12:39:51Z | | tenant_id | 7b0c30fce02d4fc79a41ce8917238943 | | OS-DCF:diskConfig | MANUAL | | metadata | {} | | accessIPv4 | | | accessIPv6 | | | progress | 0 | | OS-EXT-STS:power_state | 1 | | OS-EXT-AZ:availability_zone | nova | | config_drive | | +-------------------------------------+----------------------------------------------------------+ # nova list +--------------------------------------+--------------+--------+-----------------------------------------------------------------+ | ID | Name | Status | Networks | +--------------------------------------+--------------+--------+-----------------------------------------------------------------+ | 28579a83-2f2d-44de-9a84-3236a691654f | Sadique | ACTIVE | int=192.168.35.16 | # nova interface-list 28579a83-2f2d-44de-9a84-3236a691654f +------------+--------------------------------------+--------------------------------------+---------------+-------------+ | Port State | Port ID | Net ID | IP addresses | MAC Address | +------------+--------------------------------------+--------------------------------------+---------------+-------------+ | ACTIVE | 00ec16c8-70ef-4296-b087-a82fed1d8beb | 841a4abd-6e29-40cb-939c-67441d039f1e | 192.168.35.16 | | +------------+--------------------------------------+--------------------------------------+---------------+-------------+ Attached a new interface from a different network to the instance. # nova interface-attach --net-id=38928bd2-b85e-4ea2-bd87-0c3896ef370c 28579a83-2f2d-44de-9a84-3236a691654f "nova show Sadique" and "nova list" shows the system is connected to only the second network. It does not say anything about the first network. # nova show Sadique +-------------------------------------+----------------------------------------------------------+ | Property | Value | +-------------------------------------+----------------------------------------------------------+ | status | ACTIVE | | updated | 2013-10-25T12:39:58Z | | OS-EXT-STS:task_state | None | | OS-EXT-SRV-ATTR:host | hp-dl160g6-1.gsslab.pnq.redhat.com | | key_name | None | | image | cirros-512 (ce5a5c11-836b-4836-8634-721de11ec0c3) | | hostId | 07690c9fef59717f92d0fc73433d658a3e93967668369a7097783dd9 | | OS-EXT-STS:vm_state | active | | OS-EXT-SRV-ATTR:instance_name | instance-00000057 | | OS-EXT-SRV-ATTR:hypervisor_hostname | hp-dl160g6-1.gsslab.pnq.redhat.com | | flavor | Sadique (9f3df894-f4d6-4c1b-9611-97e793f32c00) | | id | 28579a83-2f2d-44de-9a84-3236a691654f | | security_groups | [{u'name': u'Sadique'}, {u'name': u'default'}] | | user_id | c85e09def151404681f68286693720b2 | | name | Sadique | | created | 2013-10-25T12:39:51Z | | tenant_id | 7b0c30fce02d4fc79a41ce8917238943 | | OS-DCF:diskConfig | MANUAL | | metadata | {} | | accessIPv4 | | | accessIPv6 | | | test_network-1 network | 172.16.0.5 | | progress | 0 | | OS-EXT-STS:power_state | 1 | | OS-EXT-AZ:availability_zone | nova | | config_drive | | +-------------------------------------+----------------------------------------------------------+ # nova list +--------------------------------------+--------------+--------+-----------------------------------------------------------------+ | ID | Name | Status | Networks | +--------------------------------------+--------------+--------+-----------------------------------------------------------------+ | 28579a83-2f2d-44de-9a84-3236a691654f | Sadique | ACTIVE | test_network-1=172.16.0.5 | But "nova interface-list <name>" shows the instance is connected to both networks. # nova interface-list 28579a83-2f2d-44de-9a84-3236a691654f +------------+--------------------------------------+--------------------------------------+---------------+-------------+ | Port State | Port ID | Net ID | IP addresses | MAC Address | +------------+--------------------------------------+--------------------------------------+---------------+-------------+ | ACTIVE | 00ec16c8-70ef-4296-b087-a82fed1d8beb | 841a4abd-6e29-40cb-939c-67441d039f1e | 192.168.35.16 | | | ACTIVE | 1b865451-6058-4d74-a4b5-33f1fd4bf21c | 38928bd2-b85e-4ea2-bd87-0c3896ef370c | 172.16.0.5 | | +------------+--------------------------------------+--------------------------------------+---------------+-------------+ Logging into the instance and checking ifconfig -a shows both eth0 and eth1. Eth1 can be successfully configured with an IP from the second network. Why "nova show/list" incorrectly shows to look like the interface-attach command has replaced existing network? Can we have a fix for this?
Created attachment 816130 [details] command output with better alignment.
I can confirm this same behavior on current master (ee06a032e4571f2a8612c8efa3d4f4a569c4e8a2). I can also confirm that it's broken in the response coming back from nova itself, so it's not a novaclient problem: $ nova --debug list <snip> "addresses": {"foo": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:55:31:5b", "version": 4, "addr": "10.0.1.3", "OS-EXT-IPS:type": "fixed"}]}
Adding an external reference to the community bug for this. Someone is looking at it now.
Patch proposed upstream, link added.
I've also added the upstream tracking link for the upstream stable/havana
Verified in version openstack-nova-2013.2-9.el6ost.noarch. Command outputs now list all attached interfaces clearly.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2013-1859.html
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days