← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1808504] Re: the ip of port which device type is dhcp is null

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

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

Title:
  the ip of port which device type is dhcp is null

Status in neutron:
  Expired

Bug description:
  the ip of port which device type is network:dhcp is null

  There are two DHCP agents in openstack system.
  1.create a network which name is xxxtest;
  2.create a subnet 'subnet1' in xxxtest .The CIDR of this subnet is 192.168.10.0/24 and the ip range is default.Beaause there are two dhcp agents, so two ports are created which device owner is network:dhcp.Each of port has a IP address.
  the horizon like this:
  name      fix ip           device owner    status
  xxx       192.168.10.2     network:dhcp    running
  xxx       192.168.10.3     network:dhcp    running
  3.create a subnet 'subnet2' in xxxtest. The CIDR of this subnet is 192.168.11.0/24.But set the subnet ip range 192.168.11.2-192.168.11.2.There is only one available ip in subnet.
  [root@node243 ~]# openstack subnet create --network xxxtest --subnet-range 192.168.11.0/24 --allocation-pool start=192.168.11.2,end=192.168.11.2 subnet1
  +-------------------+--------------------------------------+
  | Field             | Value                                |
  +-------------------+--------------------------------------+
  | allocation_pools  | 192.168.11.2-192.168.11.2            |
  | cidr              | 192.168.11.0/24                      |
  | created_at        | 2018-12-14T08:34:40Z                 |
  | description       |                                      |
  | dns_nameservers   |                                      |
  | enable_dhcp       | True                                 |
  | gateway_ip        | 192.168.11.1                         |
  | host_routes       |                                      |
  | id                | 2a8ead23-977e-4674-ace5-ebd5427ff5b5 |
  | ip_version        | 4                                    |
  | ipv6_address_mode | None                                 |
  | ipv6_ra_mode      | None                                 |
  | name              | subnet1                              |
  | network_id        | b5d92781-3f09-4898-8279-55b14b7ffe67 |
  | project_id        | f8cc4f84ba4c44c8be1bbeeacd9162ce     |
  | revision_number   | 0                                    |
  | segment_id        | None                                 |
  | service_types     |                                      |
  | subnetpool_id     | None                                 |
  | tags              |                                      |
  | updated_at        | 2018-12-14T08:34:40Z                 |
  +-------------------+--------------------------------------+
  4.list the ports info
  [root@node243 ~]# openstack port list --network xxxtest
  +--------------------------------------+------+-------------------+------------------------------------------------------------------------------+--------+
  | ID                                   | Name | MAC Address       | Fixed IP Addresses                                                           | Status |
  +--------------------------------------+------+-------------------+------------------------------------------------------------------------------+--------+
  | 176b3f71-0e54-4df1-8928-b4e5b199ee1c |      | fa:16:3e:36:c9:39 | ip_address='192.168.11.2', subnet_id='2a8ead23-977e-4674-ace5-ebd5427ff5b5'  | ACTIVE |
  |                                      |      |                   | ip_address='192.168.168.3', subnet_id='7b13dd1d-8b33-4e86-a225-0babfe477f71' |        |
  | e092f58a-667f-42f0-a8e4-3647c5f1b3f1 |      | fa:16:3e:70:f0:e1 | ip_address='192.168.168.2', subnet_id='7b13dd1d-8b33-4e86-a225-0babfe477f71' | DOWN   |
  +--------------------------------------+------+-------------------+------------------------------------------------------------------------------+--------+
  5.delete the first subnet and list the port in xxxtest network
  [root@node243 ~]# openstack subnet delete 7b13dd1d-8b33-4e86-a225-0babfe477f71
  [root@node243 ~]# openstack port list --network xxxtest
  +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------+--------+
  | ID                                   | Name | MAC Address       | Fixed IP Addresses                                                          | Status |
  +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------+--------+
  | 176b3f71-0e54-4df1-8928-b4e5b199ee1c |      | fa:16:3e:36:c9:39 | ip_address='192.168.11.2', subnet_id='2a8ead23-977e-4674-ace5-ebd5427ff5b5' | ACTIVE |
  | e092f58a-667f-42f0-a8e4-3647c5f1b3f1 |      | fa:16:3e:70:f0:e1 |                                                                             | ACTIVE |
  +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------+--------+

  so,there is a port which Fixed IP Addresses is null。

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


References