Bug 1038239
| Summary: | nova interface-attach causes existing networks to be shown as replaced by new one when "nova show" is run | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Scott Lewis <sclewis> |
| Component: | openstack-nova | Assignee: | Xavier Queralt <xqueralt> |
| Status: | CLOSED ERRATA | QA Contact: | Omri Hochman <ohochman> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.0 | CC: | dallan, dasmith, ndipanov, sclewis, sputhenp, sross, xqueralt, yeylon |
| Target Milestone: | z5 | Keywords: | Triaged, ZStream |
| Target Release: | 3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-nova-2013.1.5-2.el6ost | Doc Type: | Bug Fix |
| Doc Text: |
Cause: The cache mechanism didn't consider the existing network interfaces when building the nework list
Consequence: After any change in the network interfaces, only the interface modified the last was shown when listing or getting the details of an instance.
Fix: Make the cache mechanism to consider all the existing instances when it is being refreshed.
Result:
|
Story Points: | --- |
| Clone Of: | 1023445 | Environment: | |
| Last Closed: | 2014-04-03 20:20:40 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1023445 | ||
| Bug Blocks: | |||
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/RHSA-2014-0366.html |
Verified with openstack-nova-2013.1.5-2. ( puddle 2014-03-27.2): [root@puma10 ~(keystone_admin)]# nova list +--------------------------------------+------------------+--------+--------------------------+ | ID | Name | Status | Networks | +--------------------------------------+------------------+--------+--------------------------+ | 9e1361f9-dccc-409e-ae41-aff907bf4748 | admin_vlan_210_0 | ACTIVE | net_vlan_210=10.35.210.2 | | 47c68946-190e-4e39-9d8e-3141006298ba | admin_vlan_210_1 | ACTIVE | net_vlan_210=10.35.210.4 | +--------------------------------------+------------------+--------+--------------------------+ [root@puma10 ~(keystone_admin)]# nova interface-attach 47c68946-190e-4e39-9d8e-3141006298ba --net-id 4d4ba4c5-3900-4bf8-a56c-e2b6f3b5669e [root@puma10 ~(keystone_admin)]# nova list +--------------------------------------+------------------+--------+-------------------------------------------+ | ID | Name | Status | Networks | +--------------------------------------+------------------+--------+-------------------------------------------+ | 9e1361f9-dccc-409e-ae41-aff907bf4748 | admin_vlan_210_0 | ACTIVE | net_vlan_210=10.35.210.5, 10.35.210.2 | | 47c68946-190e-4e39-9d8e-3141006298ba | admin_vlan_210_1 | ACTIVE | omri=44.44.44.2; net_vlan_210=10.35.210.4 | +--------------------------------------+------------------+--------+-------------------------------------------+ [root@puma10 ~(keystone_admin)]# nova show 47c68946-190e-4e39-9d8e-3141006298ba +-------------------------------------+-------------------------------------------------------------------+ | Property | Value | +-------------------------------------+-------------------------------------------------------------------+ | status | ACTIVE | | updated | 2014-03-30T11:31:52Z | | OS-EXT-STS:task_state | None | | OS-EXT-SRV-ATTR:host | puma08.scl.lab.tlv.redhat.com | | key_name | oskey | | image | RHEL64_2014_03_30_14_30_00 (08c3131f-d735-4001-94f5-5e48a0e90706) | | hostId | 5314374466eeb400a9637202cbc739ff4ba29563ec1a6d04bb0f0760 | | OS-EXT-STS:vm_state | active | | OS-EXT-SRV-ATTR:instance_name | instance-00000006 | | omri network | 44.44.44.2 | | OS-EXT-SRV-ATTR:hypervisor_hostname | puma08.scl.lab.tlv.redhat.com | | flavor | m1.small (2) | | id | 47c68946-190e-4e39-9d8e-3141006298ba | | security_groups | [{u'name': u'default'}, {u'name': u'default'}] | | user_id | dadc0e00459348f1a48bbe3d7c5a6af5 | | name | admin_vlan_210_1 | | created | 2014-03-30T11:30:56Z | | tenant_id | 3690cda582de477896a5e08920142cb8 | | OS-DCF:diskConfig | MANUAL | | metadata | {} | | accessIPv4 | | | accessIPv6 | | | progress | 0 | | OS-EXT-STS:power_state | 1 | | OS-EXT-AZ:availability_zone | nova | | net_vlan_210 network | 10.35.210.4 | | config_drive | | +-------------------------------------+-------------------------------------------------------------------+ ** both networks: 10.35.210.4 && 44.44.44.2 can be found by : 'nova show', 'nova-list' **