After interface detached, interface is still in the port list

Bug #1854378 reported by Peng Peng on 2019-11-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Low
yong hu

Bug Description

Brief Description
-----------------
Attach specified vnics to the VM before ['cold_migrate'] and bring up interfaces, do VM cold migrate, After the interface detached, the interface is still port list.

Severity
--------
Major

Steps to Reproduce
------------------
Attach specified vnics to the VM
VM cold_migrate
detach interface
check port list

TC-name: networking/test_interface_attach_detach.py::test_interface_attach_detach_max_vnics[tis-centos-guest-net_id-virtio_2]

Expected Behavior
------------------
Detached success

Actual Behavior
----------------

Reproducibility
---------------
Seen once

System Configuration
--------------------
Multi-node system

Lab-name: WCP_3-6

Branch/Pull Time/Commit
-----------------------
2019-11-21_20-00-00

Last Pass
---------
2019-08-23_20-59-00

Timestamp/Logs
--------------
[2019-11-25 01:07:01,918] 311 DEBUG MainThread ssh.send :: Send 'nova --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne interface-attach --net-id 36498e81-3f8e-4b0a-815b-1ccc308c4bf4 a70633a1-950b-41eb-948e-03598c00eb3f'
[2019-11-25 01:07:08,454] 433 DEBUG MainThread ssh.expect :: Output:
+------------+--------------------------------------+
| Property | Value |
+------------+--------------------------------------+
| ip_address | 172.16.0.249 |
| mac_addr | fa:16:3e:5c:5f:15 |
| net_id | 36498e81-3f8e-4b0a-815b-1ccc308c4bf4 |
| port_id | 3b7af1e3-f622-4aab-9c3c-e7125ed3b000 |

[2019-11-25 01:07:13,467] 311 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne port list --server=a70633a1-950b-41eb-948e-03598c00eb3f'
[2019-11-25 01:07:15,247] 433 DEBUG MainThread ssh.expect :: Output:
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------+--------+
| 0bb6cd25-610c-4ff6-92d6-9805c8e8302e | | fa:16:3e:3b:cc:98 | ip_address='172.16.0.190', subnet_id='47dbe9f8-5cbe-4039-8bdf-cacf6d0f3b97' | ACTIVE |
| 233c7385-b47f-43b2-978a-d792f0143d86 | | fa:16:3e:d4:8c:59 | ip_address='192.168.120.26', subnet_id='51fb4d93-2310-4b89-8e58-89530edd31ca' | ACTIVE |
| 3b7af1e3-f622-4aab-9c3c-e7125ed3b000 | | fa:16:3e:5c:5f:15 | ip_address='172.16.0.249', subnet_id='47dbe9f8-5cbe-4039-8bdf-cacf6d0f3b97' | ACTIVE |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------+--------+

[2019-11-25 01:08:23,668] 311 DEBUG MainThread ssh.send :: Send 'nova --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne migrate --poll a70633a1-950b-41eb-948e-03598c00eb3f'
[2019-11-25 01:08:57,940] 433 DEBUG MainThread ssh.expect :: Output:

Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 100% complete
Finished
[sysadmin@controller-0 ~(keystone_admin)]$

[2019-11-25 01:10:47,156] 311 DEBUG MainThread ssh.send :: Send 'nova --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne interface-detach a70633a1-950b-41eb-948e-03598c00eb3f 3b7af1e3-f622-4aab-9c3c-e7125ed3b000'

[2019-11-25 01:10:48,557] 311 DEBUG MainThread ssh.send :: Send 'openstack --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-identity-api-version 3 --os-interface internal --os-region-name RegionOne port list --server=a70633a1-950b-41eb-948e-03598c00eb3f'
[2019-11-25 01:10:50,207] 433 DEBUG MainThread ssh.expect :: Output:
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------+--------+
| 233c7385-b47f-43b2-978a-d792f0143d86 | | fa:16:3e:d4:8c:59 | ip_address='192.168.120.26', subnet_id='51fb4d93-2310-4b89-8e58-89530edd31ca' | ACTIVE |
| 3b7af1e3-f622-4aab-9c3c-e7125ed3b000 | | fa:16:3e:5c:5f:15 | ip_address='172.16.0.249', subnet_id='47dbe9f8-5cbe-4039-8bdf-cacf6d0f3b97' | DOWN |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------+--------+

Test Activity
-------------
Regression Testing

Peng Peng (ppeng) wrote :
Peng Peng (ppeng) wrote :
Ghada Khalil (gkhalil) wrote :

This sounds like an openstack issue in either nova or neutron. It's not likely that this is specific to starlingx. Assigning to the openstack PL for follow-up. An openstack bug should be opened to report the issue to the community.

tags: added: stx.distro.openstack
Changed in starlingx:
importance: Undecided → Low
status: New → Triaged
tags: added: stx.networking
tags: removed: stx.networking
Changed in starlingx:
assignee: nobody → yong hu (yhu6)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers