Bug 1023445 - nova interface-attach causes existing networks to be shown as replaced by new one when "nova show" is run
Summary: nova interface-attach causes existing networks to be shown as replaced by new...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 4.0
Assignee: Solly Ross
QA Contact: Udi Kalifon
URL:
Whiteboard:
Depends On:
Blocks: 1038239
TreeView+ depends on / blocked
 
Reported: 2013-10-25 12:52 UTC by Sadique Puthen
Modified: 2023-09-14 01:52 UTC (History)
10 users (show)

Fixed In Version: openstack-nova-2013.2-7.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1038239 (view as bug list)
Environment:
Last Closed: 2013-12-20 00:32:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
command output with better alignment. (9.27 KB, text/plain)
2013-10-25 12:57 UTC, Sadique Puthen
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1223859 0 None None None Never
OpenStack gerrit 53969 0 None None None Never
OpenStack gerrit 56470 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Sadique Puthen 2013-10-25 12:52:51 UTC
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?

Comment 1 Sadique Puthen 2013-10-25 12:57:41 UTC
Created attachment 816130 [details]
command output with better alignment.

Comment 2 Dan Smith 2013-10-25 16:06:31 UTC
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"}]}

Comment 3 Dan Smith 2013-10-25 18:47:28 UTC
Adding an external reference to the community bug for this. Someone is looking at it now.

Comment 4 Dan Smith 2013-11-12 23:23:41 UTC
Patch proposed upstream, link added.

Comment 10 Solly Ross 2013-11-21 15:16:19 UTC
I've also added the upstream tracking link for the upstream stable/havana

Comment 16 Udi Kalifon 2013-12-16 09:10:24 UTC
Verified in version openstack-nova-2013.2-9.el6ost.noarch.
Command outputs now list all attached interfaces clearly.

Comment 20 errata-xmlrpc 2013-12-20 00:32:25 UTC
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

Comment 21 Red Hat Bugzilla 2023-09-14 01:52:42 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.