Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[RDO][Liberty][Neutron][Dhcp] Instance cannot get dhcp ip.

Hello,

Instance cannot get dhcp ip. I can see an assigned dhcp ip on UI and output of CLI. but actually the dhcp ip is not assigned to a instance.

It seems dhcp requect packet from a instance on compute node is not able to reach to interface of dhcp namespace on network node. But it reachs to physical interface of network node via vxlan.

Version :

# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
# rpm -qa | grep packstack
openstack-packstack-puppet-2015.2-0.1.dev1654.gcbbf46e.el7.noarch
openstack-packstack-2015.2-0.1.dev1654.gcbbf46e.el7.noarch

Environment :

Controller [ckp201]
    eth0 : 10.32.23.126
    eth1 : 10.10.10.126
Compute    [ckp211]
    eth0 : 10.32.23.127
    eth1 : 10.10.10.127 (vxlan)
Network    [ckp221]
    eth0 : 10.32.23.128
    eth1 : 10.10.10.128 (vxlan)
    eth2 :              (public)

ovs of network node

[root@ckp221 ~]# ovs-vsctl show
e3e91eb8-aa99-4cf7-8548-3f085e70f062
    Bridge br-int
        fail_mode: secure
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
        Port "qr-9621a5a9-86"
            tag: 4095
            Interface "qr-9621a5a9-86"
                type: internal
        Port "tapcad66d42-b0"
            tag: 4095
            Interface "tapcad66d42-b0"
                type: internal
    Bridge br-tun
        fail_mode: secure
        Port br-tun
            Interface br-tun
                type: internal
        Port "vxlan-0a0a0a7f"
            Interface "vxlan-0a0a0a7f"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="10.10.10.128", out_key=flow, remote_ip="10.10.10.127"}
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
    Bridge br-ex
        Port "eth2"
            Interface "eth2"
        Port "qg-d7208887-59"
            Interface "qg-d7208887-59"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "2.4.0"

dhcp namaspace of network node

[root@ckp221 ~]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    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
17: tapcad66d42-b0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether fa:16:3e:39:62:46 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global tapcad66d42-b0
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe39:6246/64 scope link
       valid_lft forever preferred_lft forever

[root@ckp221 ~]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 ip r
default via 192.168.0.1 dev tapcad66d42-b0
192.168.0.0/24 dev tapcad66d42-b0  proto kernel  scope link  src 192.168.0.2

vxlan packet from compute node reachs to network node . fa:16:3e:2e:af:dc is instance's MAC.

[root@ckp221 ~]# tcpdump -n -i eth1
17:46:51.778339 IP 10.10.10.127.52744 > 10.10.10.128.4789: VXLAN, flags [I] (0x08), vni 36
IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:16:3e:2e:af:dc, length 290

but the dhcp requect is not reached to interface of dhcp namaspace.

[root@ckp221 log]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 tcpdump -n -i tapcad66d42-b0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tapcad66d42-b0, link-type EN10MB (Ethernet), capture size 65535 bytes

neutron-dhcp and dnsmaq is runing on network node.

[root@ckp221 ~]# ps aux | grep dhcp
neutron   6585  0.2  0.3 311472 47944 ?        Ss   17:44   0:01 /usr/bin/python2 /usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-dhcp-agent --log-file /var/log/neutron/dhcp-agent.log
nobody    6626  0.0  0.0  15524   872 ?        S    17:44   0:00 dnsmasq --no-hosts --no-resolv --strict-order --except-interface=lo --pid-file=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/host --addn-hosts=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/opts --dhcp-leasefile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/leases --dhcp-match=set:ipxe,175 --bind-interfaces --interface=tapcad66d42-b0 --dhcp-range=set:tag0,192.168.0.0,static,86400s --dhcp-lease-max=256 --conf-file=/etc/neutron/dnsmasq-neutron.conf --domain=openstacklocal

ip is assined as neutron configuration level.

[root@ckp221 ~]# cat /var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/host
fa:16:3e:2e:af:dc,host-192-168-0-4.openstacklocal.,192.168.0.4
fa:16:3e:7d:2b:be,host-192-168-0-1.openstacklocal.,192.168.0.1
fa:16:3e:39:62:46,host-192-168-0-2.openstacklocal.,192.168.0.2

command output

[root@ckp201 ~(keystone_admin)]# neutron agent-list
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+
| id                                   | agent_type         | host   | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+
| 51f534bf-ecff-4cb7-8c4f-ad3c6bbe26a7 | Metadata agent     | ckp221 | :-)   | True           | neutron-metadata-agent    |
| 604664cc-59e8-4e78-8e6c-d6a6eaa5b290 | Open vSwitch agent | ckp211 | :-)   | True           | neutron-openvswitch-agent |
| 74b7a1a3-f1d3-4d2d-90af-598b027deb0a | Open vSwitch agent | ckp221 | :-)   | True           | neutron-openvswitch-agent |
| ab56ef08-caee-4910-8fee-68196efaa5f4 | L3 agent           | ckp221 | :-)   | True           | neutron-vpn-agent         |
| ac022fae-6c49-454a-b8f1-66c3b538ad00 | DHCP agent         | ckp221 | :-)   | True           | neutron-dhcp-agent        |
| e32083ca-a2cf-4612-9016-185c6ed03725 | Loadbalancer agent | ckp221 | :-)   | True           | neutron-lbaas-agent       |
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+

-

[root@ckp201 ~(keystone_admin)]# neutron net-list
+--------------------------------------+------------------+-----------------------------------------------------+
| id                                   | name             | subnets                                             |
+--------------------------------------+------------------+-----------------------------------------------------+
| 2b583bb6-9de8-41a4-9eec-cecd530996e8 | admin_net01      | 1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d 192.168.0.0/24 |
| 076df3f1-17e5-4912-b6f4-9637c9905c58 | external_network | d327d002-d719-487d-9016-3656312b68a6 10.10.20.0/24  |
+--------------------------------------+------------------+-----------------------------------------------------+

[root@ckp201 ~(keystone_admin)]# neutron subnet-list
+--------------------------------------+-----------------+----------------+--------------------------------------------------+
| id                                   | name            | cidr           | allocation_pools                                 |
+--------------------------------------+-----------------+----------------+--------------------------------------------------+
| 1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d | admin_subnet01  | 192.168.0.0/24 | {"start": "192.168.0.2", "end": "192.168.0.254"} |
| d327d002-d719-487d-9016-3656312b68a6 | external_subnet | 10.10.20.0/24  | {"start": "10.10.20.128", "end": "10.10.20.159"} |
+--------------------------------------+-----------------+----------------+--------------------------------------------------+

[root@ckp201 ~(keystone_admin)]# neutron port-list
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                           |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| 5c2c26b1-2f36-4ddf-bf3f-890f04114c0b |      | fa:16:3e:2e:af:dc | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.4"}  |
| 9621a5a9-8631-44d4-a6b3-44dc438c00b4 |      | fa:16:3e:7d:2b:be | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.1"}  |
| cad66d42-b032-4536-9da9-039114d72f64 |      | fa:16:3e:39:62:46 | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.2"}  |
| d7208887-5963-41ce-817e-417a19b6dece |      | fa:16:3e:16:d2:1c | {"subnet_id": "d327d002-d719-487d-9016-3656312b68a6", "ip_address": "10.10.20.128"} |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+

[root@ckp201 ~(keystone_admin)]# nova list
+--------------------------------------+------------+--------+------------+-------------+-------------------------+
| ID                                   | Name       | Status | Task State | Power State | Networks                |
+--------------------------------------+------------+--------+------------+-------------+-------------------------+
| a49bf8f4-c620-49d4-b740-f794c8ee8789 | admin_vm01 | ACTIVE | -          | Running     | admin_net01=192.168.0.4 |
+--------------------------------------+------------+--------+------------+-------------+-------------------------+

[RDO][Liberty][Neutron][Dhcp] Instance cannot get dhcp ip.

Hello,

Instance cannot get dhcp ip. I can see an assigned dhcp ip on UI and output of CLI. but actually the dhcp ip is not assigned to a instance.

It seems dhcp requect request packet from a instance on compute node is not able to reach to interface of dhcp namespace on network node. But it reachs reaches to physical interface of network node via vxlan.

Any advice would be helpful for me.

Version :

# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
# rpm -qa | grep packstack
openstack-packstack-puppet-2015.2-0.1.dev1654.gcbbf46e.el7.noarch
openstack-packstack-2015.2-0.1.dev1654.gcbbf46e.el7.noarch

Environment :

Controller [ckp201]
    eth0 : 10.32.23.126
    eth1 : 10.10.10.126
Compute    [ckp211]
    eth0 : 10.32.23.127
    eth1 : 10.10.10.127 (vxlan)
Network    [ckp221]
    eth0 : 10.32.23.128
    eth1 : 10.10.10.128 (vxlan)
    eth2 :              (public)

ovs of network node

[root@ckp221 ~]# ovs-vsctl show
e3e91eb8-aa99-4cf7-8548-3f085e70f062
    Bridge br-int
        fail_mode: secure
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
        Port "qr-9621a5a9-86"
            tag: 4095
            Interface "qr-9621a5a9-86"
                type: internal
        Port "tapcad66d42-b0"
            tag: 4095
            Interface "tapcad66d42-b0"
                type: internal
    Bridge br-tun
        fail_mode: secure
        Port br-tun
            Interface br-tun
                type: internal
        Port "vxlan-0a0a0a7f"
            Interface "vxlan-0a0a0a7f"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="10.10.10.128", out_key=flow, remote_ip="10.10.10.127"}
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
    Bridge br-ex
        Port "eth2"
            Interface "eth2"
        Port "qg-d7208887-59"
            Interface "qg-d7208887-59"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "2.4.0"

dhcp namaspace of network node

[root@ckp221 ~]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    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
17: tapcad66d42-b0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether fa:16:3e:39:62:46 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global tapcad66d42-b0
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe39:6246/64 scope link
       valid_lft forever preferred_lft forever

[root@ckp221 ~]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 ip r
default via 192.168.0.1 dev tapcad66d42-b0
192.168.0.0/24 dev tapcad66d42-b0  proto kernel  scope link  src 192.168.0.2

vxlan packet from compute node reachs reaches to network node . fa:16:3e:2e:af:dc is instance's MAC.

[root@ckp221 ~]# tcpdump -n -i eth1
17:46:51.778339 IP 10.10.10.127.52744 > 10.10.10.128.4789: VXLAN, flags [I] (0x08), vni 36
IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:16:3e:2e:af:dc, length 290

but the dhcp requect request is not reached to interface of dhcp namaspace.

[root@ckp221 log]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 tcpdump -n -i tapcad66d42-b0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tapcad66d42-b0, link-type EN10MB (Ethernet), capture size 65535 bytes

neutron-dhcp and dnsmaq is runing running on network node.

[root@ckp221 ~]# ps aux | grep dhcp
neutron   6585  0.2  0.3 311472 47944 ?        Ss   17:44   0:01 /usr/bin/python2 /usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-dhcp-agent --log-file /var/log/neutron/dhcp-agent.log
nobody    6626  0.0  0.0  15524   872 ?        S    17:44   0:00 dnsmasq --no-hosts --no-resolv --strict-order --except-interface=lo --pid-file=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/host --addn-hosts=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/opts --dhcp-leasefile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/leases --dhcp-match=set:ipxe,175 --bind-interfaces --interface=tapcad66d42-b0 --dhcp-range=set:tag0,192.168.0.0,static,86400s --dhcp-lease-max=256 --conf-file=/etc/neutron/dnsmasq-neutron.conf --domain=openstacklocal

ip is assined assigned as neutron configuration level.

[root@ckp221 ~]# cat /var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/host
fa:16:3e:2e:af:dc,host-192-168-0-4.openstacklocal.,192.168.0.4
fa:16:3e:7d:2b:be,host-192-168-0-1.openstacklocal.,192.168.0.1
fa:16:3e:39:62:46,host-192-168-0-2.openstacklocal.,192.168.0.2

command output

[root@ckp201 ~(keystone_admin)]# neutron agent-list
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+
| id                                   | agent_type         | host   | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+
| 51f534bf-ecff-4cb7-8c4f-ad3c6bbe26a7 | Metadata agent     | ckp221 | :-)   | True           | neutron-metadata-agent    |
| 604664cc-59e8-4e78-8e6c-d6a6eaa5b290 | Open vSwitch agent | ckp211 | :-)   | True           | neutron-openvswitch-agent |
| 74b7a1a3-f1d3-4d2d-90af-598b027deb0a | Open vSwitch agent | ckp221 | :-)   | True           | neutron-openvswitch-agent |
| ab56ef08-caee-4910-8fee-68196efaa5f4 | L3 agent           | ckp221 | :-)   | True           | neutron-vpn-agent         |
| ac022fae-6c49-454a-b8f1-66c3b538ad00 | DHCP agent         | ckp221 | :-)   | True           | neutron-dhcp-agent        |
| e32083ca-a2cf-4612-9016-185c6ed03725 | Loadbalancer agent | ckp221 | :-)   | True           | neutron-lbaas-agent       |
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+

-

[root@ckp201 ~(keystone_admin)]# neutron net-list
+--------------------------------------+------------------+-----------------------------------------------------+
| id                                   | name             | subnets                                             |
+--------------------------------------+------------------+-----------------------------------------------------+
| 2b583bb6-9de8-41a4-9eec-cecd530996e8 | admin_net01      | 1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d 192.168.0.0/24 |
| 076df3f1-17e5-4912-b6f4-9637c9905c58 | external_network | d327d002-d719-487d-9016-3656312b68a6 10.10.20.0/24  |
+--------------------------------------+------------------+-----------------------------------------------------+

[root@ckp201 ~(keystone_admin)]# neutron subnet-list
+--------------------------------------+-----------------+----------------+--------------------------------------------------+
| id                                   | name            | cidr           | allocation_pools                                 |
+--------------------------------------+-----------------+----------------+--------------------------------------------------+
| 1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d | admin_subnet01  | 192.168.0.0/24 | {"start": "192.168.0.2", "end": "192.168.0.254"} |
| d327d002-d719-487d-9016-3656312b68a6 | external_subnet | 10.10.20.0/24  | {"start": "10.10.20.128", "end": "10.10.20.159"} |
+--------------------------------------+-----------------+----------------+--------------------------------------------------+

[root@ckp201 ~(keystone_admin)]# neutron port-list
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                           |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| 5c2c26b1-2f36-4ddf-bf3f-890f04114c0b |      | fa:16:3e:2e:af:dc | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.4"}  |
| 9621a5a9-8631-44d4-a6b3-44dc438c00b4 |      | fa:16:3e:7d:2b:be | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.1"}  |
| cad66d42-b032-4536-9da9-039114d72f64 |      | fa:16:3e:39:62:46 | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.2"}  |
| d7208887-5963-41ce-817e-417a19b6dece |      | fa:16:3e:16:d2:1c | {"subnet_id": "d327d002-d719-487d-9016-3656312b68a6", "ip_address": "10.10.20.128"} |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+

[root@ckp201 ~(keystone_admin)]# nova list
+--------------------------------------+------------+--------+------------+-------------+-------------------------+
| ID                                   | Name       | Status | Task State | Power State | Networks                |
+--------------------------------------+------------+--------+------------+-------------+-------------------------+
| a49bf8f4-c620-49d4-b740-f794c8ee8789 | admin_vm01 | ACTIVE | -          | Running     | admin_net01=192.168.0.4 |
+--------------------------------------+------------+--------+------------+-------------+-------------------------+

Thank you.

[RDO][Liberty][Neutron][Dhcp] Instance cannot get dhcp ip.

Hello,

Instance cannot get dhcp ip. I can see an assigned dhcp ip on UI and output of CLI. but actually the dhcp ip is not assigned to a instance.

It seems dhcp request packet from a instance on compute node is not able to reach to interface of dhcp namespace on network node. But it reaches to physical interface of network node via vxlan.

Any advice would be helpful for me.

Version :

# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
# rpm -qa | grep packstack
openstack-packstack-puppet-2015.2-0.1.dev1654.gcbbf46e.el7.noarch
openstack-packstack-2015.2-0.1.dev1654.gcbbf46e.el7.noarch

Environment :

Controller [ckp201]
    eth0 : 10.32.23.126
    eth1 : 10.10.10.126
Compute    [ckp211]
    eth0 : 10.32.23.127
    eth1 : 10.10.10.127 (vxlan)
Network    [ckp221]
    eth0 : 10.32.23.128
    eth1 : 10.10.10.128 (vxlan)
    eth2 :              (public)

ovs of network node

[root@ckp221 ~]# ovs-vsctl show
e3e91eb8-aa99-4cf7-8548-3f085e70f062
    Bridge br-int
        fail_mode: secure
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
        Port "qr-9621a5a9-86"
            tag: 4095
            Interface "qr-9621a5a9-86"
                type: internal
        Port "tapcad66d42-b0"
            tag: 4095
            Interface "tapcad66d42-b0"
                type: internal
    Bridge br-tun
        fail_mode: secure
        Port br-tun
            Interface br-tun
                type: internal
        Port "vxlan-0a0a0a7f"
            Interface "vxlan-0a0a0a7f"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="10.10.10.128", out_key=flow, remote_ip="10.10.10.127"}
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
    Bridge br-ex
        Port "eth2"
            Interface "eth2"
        Port "qg-d7208887-59"
            Interface "qg-d7208887-59"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "2.4.0"

dhcp namaspace of network node

[root@ckp221 ~]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    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
17: tapcad66d42-b0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether fa:16:3e:39:62:46 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global tapcad66d42-b0
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe39:6246/64 scope link
       valid_lft forever preferred_lft forever

[root@ckp221 ~]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 ip r
default via 192.168.0.1 dev tapcad66d42-b0
192.168.0.0/24 dev tapcad66d42-b0  proto kernel  scope link  src 192.168.0.2

vxlan packet from compute node reaches to network node . fa:16:3e:2e:af:dc is instance's MAC.

[root@ckp221 ~]# tcpdump -n -i eth1
17:46:51.778339 IP 10.10.10.127.52744 > 10.10.10.128.4789: VXLAN, flags [I] (0x08), vni 36
IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:16:3e:2e:af:dc, length 290

but the dhcp request is not reached to interface of dhcp namaspace.

[root@ckp221 log]# ip netns exec qdhcp-2b583bb6-9de8-41a4-9eec-cecd530996e8 tcpdump -n -i tapcad66d42-b0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tapcad66d42-b0, link-type EN10MB (Ethernet), capture size 65535 bytes

neutron-dhcp and dnsmaq is running on network node.

[root@ckp221 ~]# ps aux | grep dhcp
neutron   6585  0.2  0.3 311472 47944 ?        Ss   17:44   0:01 /usr/bin/python2 /usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-dhcp-agent --log-file /var/log/neutron/dhcp-agent.log
nobody    6626  0.0  0.0  15524   872 ?        S    17:44   0:00 dnsmasq --no-hosts --no-resolv --strict-order --except-interface=lo --pid-file=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/host --addn-hosts=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/opts --dhcp-leasefile=/var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/leases --dhcp-match=set:ipxe,175 --bind-interfaces --interface=tapcad66d42-b0 --dhcp-range=set:tag0,192.168.0.0,static,86400s --dhcp-lease-max=256 --conf-file=/etc/neutron/dnsmasq-neutron.conf --domain=openstacklocal

ip is assigned as neutron configuration level.

[root@ckp221 ~]# cat /var/lib/neutron/dhcp/2b583bb6-9de8-41a4-9eec-cecd530996e8/host
fa:16:3e:2e:af:dc,host-192-168-0-4.openstacklocal.,192.168.0.4
fa:16:3e:7d:2b:be,host-192-168-0-1.openstacklocal.,192.168.0.1
fa:16:3e:39:62:46,host-192-168-0-2.openstacklocal.,192.168.0.2

command output

[root@ckp201 ~(keystone_admin)]# neutron agent-list
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+
| id                                   | agent_type         | host   | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+
| 51f534bf-ecff-4cb7-8c4f-ad3c6bbe26a7 | Metadata agent     | ckp221 | :-)   | True           | neutron-metadata-agent    |
| 604664cc-59e8-4e78-8e6c-d6a6eaa5b290 | Open vSwitch agent | ckp211 | :-)   | True           | neutron-openvswitch-agent |
| 74b7a1a3-f1d3-4d2d-90af-598b027deb0a | Open vSwitch agent | ckp221 | :-)   | True           | neutron-openvswitch-agent |
| ab56ef08-caee-4910-8fee-68196efaa5f4 | L3 agent           | ckp221 | :-)   | True           | neutron-vpn-agent         |
| ac022fae-6c49-454a-b8f1-66c3b538ad00 | DHCP agent         | ckp221 | :-)   | True           | neutron-dhcp-agent        |
| e32083ca-a2cf-4612-9016-185c6ed03725 | Loadbalancer agent | ckp221 | :-)   | True           | neutron-lbaas-agent       |
+--------------------------------------+--------------------+--------+-------+----------------+---------------------------+

-

[root@ckp201 ~(keystone_admin)]# neutron net-list
+--------------------------------------+------------------+-----------------------------------------------------+
| id                                   | name             | subnets                                             |
+--------------------------------------+------------------+-----------------------------------------------------+
| 2b583bb6-9de8-41a4-9eec-cecd530996e8 | admin_net01      | 1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d 192.168.0.0/24 |
| 076df3f1-17e5-4912-b6f4-9637c9905c58 | external_network | d327d002-d719-487d-9016-3656312b68a6 10.10.20.0/24  |
+--------------------------------------+------------------+-----------------------------------------------------+

[root@ckp201 ~(keystone_admin)]# neutron subnet-list
+--------------------------------------+-----------------+----------------+--------------------------------------------------+
| id                                   | name            | cidr           | allocation_pools                                 |
+--------------------------------------+-----------------+----------------+--------------------------------------------------+
| 1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d | admin_subnet01  | 192.168.0.0/24 | {"start": "192.168.0.2", "end": "192.168.0.254"} |
| d327d002-d719-487d-9016-3656312b68a6 | external_subnet | 10.10.20.0/24  | {"start": "10.10.20.128", "end": "10.10.20.159"} |
+--------------------------------------+-----------------+----------------+--------------------------------------------------+

[root@ckp201 ~(keystone_admin)]# neutron port-list
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                           |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| 5c2c26b1-2f36-4ddf-bf3f-890f04114c0b |      | fa:16:3e:2e:af:dc | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.4"}  |
| 9621a5a9-8631-44d4-a6b3-44dc438c00b4 |      | fa:16:3e:7d:2b:be | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.1"}  |
| cad66d42-b032-4536-9da9-039114d72f64 |      | fa:16:3e:39:62:46 | {"subnet_id": "1dacd8f6-c4c8-49ed-be42-8bd7af89ee6d", "ip_address": "192.168.0.2"}  |
| d7208887-5963-41ce-817e-417a19b6dece |      | fa:16:3e:16:d2:1c | {"subnet_id": "d327d002-d719-487d-9016-3656312b68a6", "ip_address": "10.10.20.128"} |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
 

-

[root@ckp201 ~(keystone_admin)]# nova list
+--------------------------------------+------------+--------+------------+-------------+-------------------------+
| ID                                   | Name       | Status | Task State | Power State | Networks                |
+--------------------------------------+------------+--------+------------+-------------+-------------------------+
| a49bf8f4-c620-49d4-b740-f794c8ee8789 | admin_vm01 | ACTIVE | -          | Running     | admin_net01=192.168.0.4 |
+--------------------------------------+------------+--------+------------+-------------+-------------------------+

Thank you.