← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1456460] [NEW] Garbage DHCP tap exist in the net namespace after deleting one subnet of a net

 

Public bug reported:


1 create net and mutiple subnet 
#neutron net-create  net_test_1 
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| attached_port_num         | 0                                    |
| bandwidth                 | 0                                    |
| id                        | f2929812-9d56-445b-93ac-a02be1999d27 |
| max_server_num            | 50                                   |
| mtu                       | 1500                                 |
| name                      | net_test_1                           |
| provider:network_type     | vlan                                 |
| provider:physical_network | physnet1                             |
| provider:segmentation_id  | 7                                    |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | e742cba978bd478caaaa03bc388c373e     |
| vlan_transparent          | False                                |
+---------------------------+--------------------------------------+

2 neutron subnet-create f2929812-9d56-445b-93ac-a02be1999d27 20.0.0.0/24 
  neutron subnet-create f2929812-9d56-445b-93ac-a02be1999d27 20.0.1.0/24 
  neutron subnet-create f2929812-9d56-445b-93ac-a02be1999d27 20.0.2.0/24 
  neutron subnet-create f2929812-9d56-445b-93ac-a02be1999d27 20.0.3.0/24 
  
  neutron net-list
+--------------------------------------+------------+-----------------------------------------------------+
| id                                   | name       | subnets                                             |
+--------------------------------------+------------+-----------------------------------------------------+
| f2929812-9d56-445b-93ac-a02be1999d27 | net_test_1 | 055fd491-7f50-422c-8740-8406c73602d8 20.0.3.0/24    |
|                                      |            | 144724d9-c7c4-44d9-a725-64bb7a3091cc 20.0.1.0/24    |
|                                      |            | bc9ddb46-d98d-4b2c-9a1e-1ec6babcb1a9 20.0.2.0/24    |
|                                      |            | d26d13e4-356f-4602-957b-6ac1ca533506 20.0.0.0/24    |
+--------------------------------------+------------+-----------------------------------------------------+

3  create a port, and boot up vm

#neutron port-create net_test_1 --name port_test_1
#nova boot --flavor m1.small  --image e05c4659-2e5b-472d-9eae-01bc6564e8f3  --nic port-id=40306a52-cc4e-45ad-a5a6-8c11468c8d68 vm_test_1
      
nova list
+--------------------------------------+-----------+--------+------------+-------------+---------------------+
| ID                                   | Name      | Status | Task State | Power State | Networks            |
+--------------------------------------+-----------+--------+------------+-------------+---------------------+
| 53c54d5e-2fc8-4315-9903-316fedb81936 | vm_test_1 | BUILD  | spawning   | NOSTATE     | net_test_1=20.0.3.2 |
+--------------------------------------+-----------+--------+------------+-------------+---------------------+


4 query DHCP tap of the net namespace 

#ip netns 
  qdhcp-f2929812-9d56-445b-93ac-a02be1999d27
# ip netns exec qdhcp-f2929812-9d56-445b-93ac-a02be1999d27 ifconfig -a
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 3  bytes 1180 (1.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 1180 (1.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap4a60362f-c1: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
        inet 20.0.0.2  netmask 255.255.255.0  broadcast 20.0.0.255
        inet6 fe80::f816:3eff:fe2d:906d  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:2d:90:6d  txqueuelen 0  (Ethernet)
        RX packets 38  bytes 2760 (2.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11  bytes 1468 (1.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

		
5 delete one unused subnet 
# neutron subnet-delete bc9ddb46-d98d-4b2c-9a1e-1ec6babcb1a9
Deleted subnet: bc9ddb46-d98d-4b2c-9a1e-1ec6babcb1a9
# neutron net-list
+--------------------------------------+------------+-----------------------------------------------------+
| id                                   | name       | subnets                                             |
+--------------------------------------+------------+-----------------------------------------------------+
| f2929812-9d56-445b-93ac-a02be1999d27 | net_test_1 | 055fd491-7f50-422c-8740-8406c73602d8 20.0.3.0/24    |
|                                      |            | 144724d9-c7c4-44d9-a725-64bb7a3091cc 20.0.1.0/24    |
|                                      |            | d26d13e4-356f-4602-957b-6ac1ca533506 20.0.0.0/24    |
+--------------------------------------+------------+-----------------------------------------------------+		

6 query DHCP tap of the net namepace 
#ip netns exec qdhcp-f2929812-9d56-445b-93ac-a02be1999d27 ifconfig -a
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 7  bytes 1504 (1.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7  bytes 1504 (1.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap03466191-47: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
        inet 20.0.0.3  netmask 255.255.255.0  broadcast 20.0.0.255
        inet6 fe80::f816:3eff:fe06:6360  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:06:63:60  txqueuelen 0  (Ethernet)
        RX packets 10  bytes 420 (420.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9  bytes 738 (738.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap4a60362f-c1: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
        inet 20.0.0.2  netmask 255.255.255.0  broadcast 20.0.0.255
        inet6 fe80::f816:3eff:fe2d:906d  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:2d:90:6d  txqueuelen 0  (Ethernet)
        RX packets 85  bytes 4914 (4.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11  bytes 1468 (1.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


tap4a60362f-c1 is unexpected and should not exist here. It looks like that when deleting the subnet, a new tap will be created. I suspect that if all the ip are occupied, there will be no available ip for new tap.

** Affects: neutron
     Importance: Undecided
     Assignee: OpenCos_gongxf (gong-xiefeng)
         Status: Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1456460

Title:
  Garbage DHCP tap exist in the net namespace after deleting one subnet
  of a net

Status in OpenStack Neutron (virtual network service):
  Confirmed

Bug description:
  
  1 create net and mutiple subnet 
  #neutron net-create  net_test_1 
  Created a new network:
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | True                                 |
  | attached_port_num         | 0                                    |
  | bandwidth                 | 0                                    |
  | id                        | f2929812-9d56-445b-93ac-a02be1999d27 |
  | max_server_num            | 50                                   |
  | mtu                       | 1500                                 |
  | name                      | net_test_1                           |
  | provider:network_type     | vlan                                 |
  | provider:physical_network | physnet1                             |
  | provider:segmentation_id  | 7                                    |
  | shared                    | False                                |
  | status                    | ACTIVE                               |
  | subnets                   |                                      |
  | tenant_id                 | e742cba978bd478caaaa03bc388c373e     |
  | vlan_transparent          | False                                |
  +---------------------------+--------------------------------------+

  2 neutron subnet-create f2929812-9d56-445b-93ac-a02be1999d27 20.0.0.0/24 
    neutron subnet-create f2929812-9d56-445b-93ac-a02be1999d27 20.0.1.0/24 
    neutron subnet-create f2929812-9d56-445b-93ac-a02be1999d27 20.0.2.0/24 
    neutron subnet-create f2929812-9d56-445b-93ac-a02be1999d27 20.0.3.0/24 
    
    neutron net-list
  +--------------------------------------+------------+-----------------------------------------------------+
  | id                                   | name       | subnets                                             |
  +--------------------------------------+------------+-----------------------------------------------------+
  | f2929812-9d56-445b-93ac-a02be1999d27 | net_test_1 | 055fd491-7f50-422c-8740-8406c73602d8 20.0.3.0/24    |
  |                                      |            | 144724d9-c7c4-44d9-a725-64bb7a3091cc 20.0.1.0/24    |
  |                                      |            | bc9ddb46-d98d-4b2c-9a1e-1ec6babcb1a9 20.0.2.0/24    |
  |                                      |            | d26d13e4-356f-4602-957b-6ac1ca533506 20.0.0.0/24    |
  +--------------------------------------+------------+-----------------------------------------------------+

  3  create a port, and boot up vm

  #neutron port-create net_test_1 --name port_test_1
  #nova boot --flavor m1.small  --image e05c4659-2e5b-472d-9eae-01bc6564e8f3  --nic port-id=40306a52-cc4e-45ad-a5a6-8c11468c8d68 vm_test_1
        
  nova list
  +--------------------------------------+-----------+--------+------------+-------------+---------------------+
  | ID                                   | Name      | Status | Task State | Power State | Networks            |
  +--------------------------------------+-----------+--------+------------+-------------+---------------------+
  | 53c54d5e-2fc8-4315-9903-316fedb81936 | vm_test_1 | BUILD  | spawning   | NOSTATE     | net_test_1=20.0.3.2 |
  +--------------------------------------+-----------+--------+------------+-------------+---------------------+

  
  4 query DHCP tap of the net namespace 

  #ip netns 
    qdhcp-f2929812-9d56-445b-93ac-a02be1999d27
  # ip netns exec qdhcp-f2929812-9d56-445b-93ac-a02be1999d27 ifconfig -a
  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
          inet 127.0.0.1  netmask 255.0.0.0
          inet6 ::1  prefixlen 128  scopeid 0x10<host>
          loop  txqueuelen 0  (Local Loopback)
          RX packets 3  bytes 1180 (1.1 KiB)
          RX errors 0  dropped 0  overruns 0  frame 0
          TX packets 3  bytes 1180 (1.1 KiB)
          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  tap4a60362f-c1: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
          inet 20.0.0.2  netmask 255.255.255.0  broadcast 20.0.0.255
          inet6 fe80::f816:3eff:fe2d:906d  prefixlen 64  scopeid 0x20<link>
          ether fa:16:3e:2d:90:6d  txqueuelen 0  (Ethernet)
          RX packets 38  bytes 2760 (2.6 KiB)
          RX errors 0  dropped 0  overruns 0  frame 0
          TX packets 11  bytes 1468 (1.4 KiB)
          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  		
  5 delete one unused subnet 
  # neutron subnet-delete bc9ddb46-d98d-4b2c-9a1e-1ec6babcb1a9
  Deleted subnet: bc9ddb46-d98d-4b2c-9a1e-1ec6babcb1a9
  # neutron net-list
  +--------------------------------------+------------+-----------------------------------------------------+
  | id                                   | name       | subnets                                             |
  +--------------------------------------+------------+-----------------------------------------------------+
  | f2929812-9d56-445b-93ac-a02be1999d27 | net_test_1 | 055fd491-7f50-422c-8740-8406c73602d8 20.0.3.0/24    |
  |                                      |            | 144724d9-c7c4-44d9-a725-64bb7a3091cc 20.0.1.0/24    |
  |                                      |            | d26d13e4-356f-4602-957b-6ac1ca533506 20.0.0.0/24    |
  +--------------------------------------+------------+-----------------------------------------------------+		

  6 query DHCP tap of the net namepace 
  #ip netns exec qdhcp-f2929812-9d56-445b-93ac-a02be1999d27 ifconfig -a
  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
          inet 127.0.0.1  netmask 255.0.0.0
          inet6 ::1  prefixlen 128  scopeid 0x10<host>
          loop  txqueuelen 0  (Local Loopback)
          RX packets 7  bytes 1504 (1.4 KiB)
          RX errors 0  dropped 0  overruns 0  frame 0
          TX packets 7  bytes 1504 (1.4 KiB)
          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  tap03466191-47: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
          inet 20.0.0.3  netmask 255.255.255.0  broadcast 20.0.0.255
          inet6 fe80::f816:3eff:fe06:6360  prefixlen 64  scopeid 0x20<link>
          ether fa:16:3e:06:63:60  txqueuelen 0  (Ethernet)
          RX packets 10  bytes 420 (420.0 B)
          RX errors 0  dropped 0  overruns 0  frame 0
          TX packets 9  bytes 738 (738.0 B)
          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  tap4a60362f-c1: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
          inet 20.0.0.2  netmask 255.255.255.0  broadcast 20.0.0.255
          inet6 fe80::f816:3eff:fe2d:906d  prefixlen 64  scopeid 0x20<link>
          ether fa:16:3e:2d:90:6d  txqueuelen 0  (Ethernet)
          RX packets 85  bytes 4914 (4.7 KiB)
          RX errors 0  dropped 0  overruns 0  frame 0
          TX packets 11  bytes 1468 (1.4 KiB)
          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  
  tap4a60362f-c1 is unexpected and should not exist here. It looks like that when deleting the subnet, a new tap will be created. I suspect that if all the ip are occupied, there will be no available ip for new tap.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1456460/+subscriptions


Follow ups

References