Comment 39 for bug 1751923

Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

Hello,

I've verified that this problem doesn't reproduces with the package contained in proposed.

1) Deployed this bundle of bionic-queens

Upgraded to the following version:

root@juju-51d6ad-1751923-6:/home/ubuntu# dpkg -l | grep nova
ii nova-api-os-compute 2:17.0.13-0ubuntu3 all OpenStack Compute - OpenStack Compute API frontend
ii nova-common 2:17.0.13-0ubuntu3 all OpenStack Compute - common files
ii nova-conductor 2:17.0.13-0ubuntu3 all OpenStack Compute - conductor service
ii nova-placement-api 2:17.0.13-0ubuntu3 all OpenStack Compute - placement API frontend
ii nova-scheduler 2:17.0.13-0ubuntu3 all OpenStack Compute - virtual machine scheduler
ii python-nova 2:17.0.13-0ubuntu3 all OpenStack Compute Python libraries

root@juju-51d6ad-1751923-7:/home/ubuntu# dpkg -l | grep nova
ii nova-api-metadata 2:17.0.13-0ubuntu3 all OpenStack Compute - metadata API frontend
ii nova-common 2:17.0.13-0ubuntu3 all OpenStack Compute - common files
ii nova-compute 2:17.0.13-0ubuntu3 all OpenStack Compute - compute node base
ii nova-compute-kvm 2:17.0.13-0ubuntu3 all OpenStack Compute - compute node (KVM)
ii nova-compute-libvirt 2:17.0.13-0ubuntu3 all OpenStack Compute - compute node libvirt support
ii python-nova 2:17.0.13-0ubuntu3 all OpenStack Compute Python libraries
ii python-novaclient 2:9.1.1-0ubuntu1 all client library for OpenStack Compute API - Python 2.7
ii python3-novaclient 2:9.1.1-0ubuntu1 all client library for OpenStack Compute API - 3.x

root@juju-51d6ad-1751923-6:/home/ubuntu# systemctl status nova*|grep -i active
   Active: active (running) since Fri 2021-08-27 22:02:25 UTC; 1h 7min ago
   Active: active (running) since Fri 2021-08-27 22:02:12 UTC; 1h 8min ago
   Active: active (running) since Fri 2021-08-27 22:02:25 UTC; 1h 7min ago

3) Created a server with 4 private ports, 1 public one.

ubuntu@niedbalski-bastion:~/stsstack-bundles/openstack$ openstack server list
+--------------------------------------+---------------+--------+-------------------------------------------------------------------------------+--------+-----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+---------------+--------+-------------------------------------------------------------------------------+--------+-----------+
| 5843e6b5-e1a7-4208-9f19-1d051c032afb | cirros-232302 | ACTIVE | private=192.168.21.22, 192.168.21.6, 192.168.21.10, 192.168.21.13, 10.5.150.1 | cirros | m1.cirros |
+--------------------------------------+---------------+--------+-------------------------------------------------------------------------------+--------+-----------+

ubuntu@niedbalski-bastion:~/stsstack-bundles/openstack$ nova interface-list 5843e6b5-e1a7-4208-9f19-1d051c032afb
+------------+--------------------------------------+--------------------------------------+---------------+-------------------+
| Port State | Port ID | Net ID | IP addresses | MAC Addr |
+------------+--------------------------------------+--------------------------------------+---------------+-------------------+
| ACTIVE | 1680b164-14d7-4d6e-b085-94292ece82cf | 8d91e266-0925-4c29-8039-0d71862df4fc | 192.168.21.13 | fa:16:3e:cf:f8:c8 |
| ACTIVE | 5865a40e-36fa-4cf9-bd40-85a1e78031f5 | 8d91e266-0925-4c29-8039-0d71862df4fc | 192.168.21.6 | fa:16:3e:eb:73:b1 |
| ACTIVE | 5f400107-d9eb-4a1b-a37b-3bd034d8f995 | 8d91e266-0925-4c29-8039-0d71862df4fc | 192.168.21.10 | fa:16:3e:95:9a:78 |
| ACTIVE | b11d1c8e-d42a-41e0-a7ad-e34a7a93d020 | 8d91e266-0925-4c29-8039-0d71862df4fc | 192.16 8.21.22 | fa:16:3e:a3:45:45 |
+------------+--------------------------------------+--------------------------------------+---------------+-------------------+

4) I can see the 4 tap devices.

root@juju-51d6ad-1751923-7:/home/ubuntu# virsh dumpxml instance-00000001|grep -i tap
      <target dev='tapb11d1c8e-d4'/>
      <target dev='tap5865a40e-36'/>
      <target dev='tap5f400107-d9'/>
      <target dev='tap1680b164-14'/>

5) I modified the instance info caches removing one of the interfaces.

Database changed
mysql> update instance_info_caches set network_info='[{"profile":{},"ovs_interfaceid":"5865a40e-36fa-4cf9-bd40-85a1e78031f5","preserve_on_delete":true,"network":{"bridge":"br-int","subnets":[{"ips":[{"meta":{},"version":4,"type":"fixed","floating_ips":[],"address":"192.168.21.6"}],"version":4,"meta":{"dhcp_server":"192.168.21.2"},"dns":[],"routes":[],"cidr":"192.168.21.0/24","gateway":{"meta":{},"version":4,"type":"gateway","address":"192.168.21.1"}}],"meta":{"injected":false,"tenant_id":"991d5e66c5f64485a8b6c49db60cfe99","mtu":1500},"id":"8d91e266-0925-4c29-8039-0d71862df4fc","label":"private"},"devname":"tap5865a40e-36","vnic_type":"normal","qbh_params":null,"meta":{},"details":{"port_filter":true,"datapath_type":"system","ovs_hybrid_plug":false},"address":"fa:16:3e:eb:73:b1","active":true,"type":"ovs","id":"5865a40e-36fa-4cf9-bd40-85a1e78031f5","qbg_params":null},{"profile":{},"ovs_interfaceid":"5f400107-d9eb-4a1b-a37b-3bd034d8f995","preserve_on_delete":true,"network":{"bridge":"br-int","subnets":[{"ips":[{"meta":{},"version":4,"type":"fixed","floating_ips":[],"address":"192.168.21.10"}],"version":4,"meta":{"dhcp_server":"192.168.21.2"},"dns":[],"routes":[],"cidr":"192.168.21.0/24","gateway":{"meta":{},"version":4,"type":"gateway","address":"192.168.21.1"}}],"meta":{"injected":false,"tenant_id":"991d5e66c5f64485a8b6c49db60cfe99","mtu":1500},"id":"8d91e266-0925-4c29-8039-0d71862df4fc","label":"private"},"devname":"tap5f400107-d9","vnic_type":"normal","qbh_params":null,"meta":{},"details":{"port_filter":true,"datapath_type":"system","ovs_hybrid_plug":false},"address":"fa:16:3e:95:9a:78","active":true,"type":"ovs","id":"5f400107-d9eb-4a1b-a37b-3bd034d8f995","qbg_params":null},{"profile":{},"ovs_interfaceid":"1680b164-14d7-4d6e-b085-94292ece82cf","preserve_on_delete":true,"network":{"bridge":"br-int","subnets":[{"ips":[{"meta":{},"version":4,"type":"fixed","floating_ips":[],"address":"192.168.21.13"}],"version":4,"meta":{"dhcp_server":"192.168.21.2"},"dns":[],"routes":[],"cidr":"192.168.21.0/24","gateway":{"meta":{},"version":4,"type":"gateway","address":"192.168.21.1"}}],"meta":{"injected":false,"tenant_id":"991d5e66c5f64485a8b6c49db60cfe99","mtu":1500},"id":"8d91e266-0925-4c29-8039-0d71862df4fc","label":"private"},"devname":"tap1680b164-14","vnic_type":"normal","qbh_params":null,"meta":{},"details":{"port_filter":true,"datapath_type":"system","ovs_hybrid_plug":false},"address":"fa:16:3e:cf:f8:c8","active":true,"type":"ovs","id":"1680b164-14d7-4d6e-b085-94292ece82cf","qbg_params":null}]';
Query OK, 1 row affected (0.02 sec)
Rows matched: 1 Changed: 1 Warnings: 0

6) Rebooted the server

ubuntu@niedbalski-bastion:~/stsstack-bundles/openstack$ openstack server reboot 5843e6b5-e1a7-4208-9f19-1d051c032afb

7) Listed the interfaces and those are available.

ubuntu@niedbalski-bastion:~/stsstack-bundles/openstack$ openstack server list
+--------------------------------------+---------------+--------+-------------------------------------------------------------------------------+--------+-----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+---------------+--------+-------------------------------------------------------------------------------+--------+-----------+
| 5843e6b5-e1a7-4208-9f19-1d051c032afb | cirros-232302 | ACTIVE | private=192.168.21.22, 192.168.21.6, 192.168.21.10, 192.168.21.13, 10.5.150.1 | cirros | m1.cirros |
+--------------------------------------+---------------+--------+-------------------------------------------------------------------------------+--------+-----------+

root@juju-51d6ad-1751923-7:/home/ubuntu# virsh dumpxml instance-00000001|grep -i tap
      <target dev='tapb11d1c8e-d4'/>
      <target dev='tap5865a40e-36'/>
      <target dev='tap5f400107-d9'/>
      <target dev='tap1680b164-14'/>