Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1692851 - [OSP 14] DVR fip external ip/namespace is not deleted/freed when vm's are deleted/migrated in a compute node
Summary: [OSP 14] DVR fip external ip/namespace is not deleted/freed when vm's are del...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Slawek Kaplonski
QA Contact: Roee Agiman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-26 14:51 UTC by Candido Campos
Modified: 2019-04-08 13:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Candido Campos 2019-03-26 14:51:03 UTC
Description of problem:

DVR fip external ip/namespace is not deleted/freed when vm's are deleted in a compute node 

Version-Release number of selected component (if applicable):
(undercloud) [stack@undercloud-0 ~]$ cat /etc/rhosp-release 
Red Hat OpenStack Platform release 14.0.1 RC (Rocky)
(undercloud) [stack@undercloud-0 ~]$ cat core_puddle_version 
2019-03-06.1(undercloud) [stack@undercloud-0 ~]$ 


How reproducible:

Deploy a test bed with dvr

Steps to Reproduce:
1. Deploy a network and a router with a external gw
2. deploy a vm with a fip
3. Delete/migrate the vm

Actual results:

fip resources in compute node are not freed completely

Expected results:

fip resources in compute node are freed completely

Additional info:

(overcloud) [stack@undercloud-0 ~]$ openstack ip availability list
+--------------------------------------+----------------------------------------------------+-----------+----------+
| Network ID                           | Network Name                                       | Total IPs | Used IPs |
+--------------------------------------+----------------------------------------------------+-----------+----------+
| d2e45803-ff4f-4065-9543-126220f12ea7 | selfservice2                                       |       253 |        5 |
| ef3db5e4-8e6e-4e40-8575-c8f3400e21aa | public                                             |        41 |       10 |
| 6c4a267c-d626-465e-8eb8-cbdc0ee46493 | selfservice                                        |       253 |       10 |
| e3f48b49-a627-44e9-a81a-73efa1d3f83d | HA network tenant 5349d8460b4744ce98bbbb5f7c115bbd |     16382 |        6 |
+--------------------------------------+----------------------------------------------------+-----------+----------+
(overcloud) [stack@undercloud-0 ~]$ 
(overcloud) [stack@undercloud-0 ~]$ 

[root@compute-0 heat-admin]# virsh list 
 Id    Name                           State
----------------------------------------------------
 1     instance-00000008              running
 2     instance-00000014              running

[root@compute-0 heat-admin]# 
[root@compute-0 heat-admin]# 
[root@compute-0 heat-admin]# ipnetns 
bash: ipnetns: command not found
[root@compute-0 heat-admin]# ip netns 
fip-ef3db5e4-8e6e-4e40-8575-c8f3400e21aa (id: 1)
qrouter-5960bf57-5ec2-42eb-b39c-442b8f0b6050 (id: 0)
[root@compute-0 heat-admin]# ip netns exec fip-ef3db5e4-8e6e-4e40-8575-c8f3400e21aa ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: fpr-5960bf57-5@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether d2:9b:c8:a4:5e:bc brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 169.254.106.115/31 scope global fpr-5960bf57-5
       valid_lft forever preferred_lft forever
    inet6 fe80::d09b:c8ff:fea4:5ebc/64 scope link 
       valid_lft forever preferred_lft forever
38: fg-665b72ee-d8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fa:16:3e:87:53:de brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.210/24 brd 10.0.0.255 scope global fg-665b72ee-d8
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe87:53de/64 scope link 
       valid_lft forever preferred_lft forever
[root@compute-0 heat-admin]# virsh list 


...............

(overcloud) [stack@undercloud-0 ~]$ openstack server delete 330e3008-8ab3-42a0-9966-e774388a969d
(overcloud) [stack@undercloud-0 ~]$ openstack server delete f6603cc3-8b8e-4b90-95b6-3465678280a5
(overcloud) [stack@undercloud-0 ~]$ 

................

[root@compute-0 heat-admin]# virsh list 
 Id    Name                           State
----------------------------------------------------

[root@compute-0 heat-admin]# ip netns exec fip-ef3db5e4-8e6e-4e40-8575-c8f3400e21aa ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
38: fg-665b72ee-d8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fa:16:3e:87:53:de brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.210/24 brd 10.0.0.255 scope global fg-665b72ee-d8
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe87:53de/64 scope link 
       valid_lft forever preferred_lft forever
[root@compute-0 heat-admin]# 


...................



(overcloud) [stack@undercloud-0 ~]$ openstack ip availability list
+--------------------------------------+----------------------------------------------------+-----------+----------+
| Network ID                           | Network Name                                       | Total IPs | Used IPs |
+--------------------------------------+----------------------------------------------------+-----------+----------+
| d2e45803-ff4f-4065-9543-126220f12ea7 | selfservice2                                       |       253 |        4 |
| ef3db5e4-8e6e-4e40-8575-c8f3400e21aa | public                                             |        41 |       10 |
| 6c4a267c-d626-465e-8eb8-cbdc0ee46493 | selfservice                                        |       253 |        9 |
| e3f48b49-a627-44e9-a81a-73efa1d3f83d | HA network tenant 5349d8460b4744ce98bbbb5f7c115bbd |     16382 |        6 |
+--------------------------------------+----------------------------------------------------+-----------+----------+
(overcloud) [stack@undercloud-0 ~]$ openstack ip availability show public 
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                  | Value                                                                                                                                              |
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
| id                     | ef3db5e4-8e6e-4e40-8575-c8f3400e21aa                                                                                                               |
| name                   | None                                                                                                                                               |
| network_id             | ef3db5e4-8e6e-4e40-8575-c8f3400e21aa                                                                                                               |
| network_name           | public                                                                                                                                             |
| project_id             | 5349d8460b4744ce98bbbb5f7c115bbd                                                                                                                   |
| subnet_ip_availability | cidr='10.0.0.0/24', ip_version='4', subnet_id='e74f8ff3-cf78-47a9-8fea-ef6612749988', subnet_name='external_subnet', total_ips='41', used_ips='10' |
| total_ips              | 41                                                                                                                                                 |
| used_ips               | 10                                                                                                                                                 |
+------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$


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