Instance in openstack can't get ip from dhcp, and can't ping other node
HI! All, I have one openstack environment(Rocky), build in hypver-v. 3 control nodes; 2 computer nodes. ip information as below:
10.10.62.2 con01.test.lab con01
10.10.62.3 con02.test.lab con02
10.10.62.4 con03.test.lab con03
10.10.62.5 comp01.test.lab comp01
10.10.62.6 comp02.test.lab comp02
192.168.100.2 con01-pri.testl.lab con01-pri
192.168.100.3 con02-pri.testl.lab con02-pri
192.168.100.4 con03-pri.testl.lab con03-pri
192.168.100.5 comp01-pri.testl.lab comp01-pri
192.168.100.6 comp02-pri.testl.lab comp02-pri
10.10.62.X(eth0): though hyper-v external switch connected.
192.168.100.X(eth1): though hyper-v private switch connected.
network information as below:
con01,con02,con03:/etc/neutron/neutron.conf
core_plugin = ml2
service_plugins =
con01,con02,con03:/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
type_drivers = flat,vlan
tenant_network_types =
mechanism_drivers = linuxbridge
extension_drivers = port_security
[ml2_type_flat]
flat_networks = provider
[securitygroup]
enable_ipset = true
con01,con02,con03:/etc/neutron/plugins/ml2/linuxbridge_agent.ini
[linux_bridge]
physical_interface_mappings = provider:eth1
[vxlan]
enable_vxlan = false
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
comp01,comp02:/etc/neutron/plugins/ml2/linuxbridge_agent.ini
physical_interface_mappings = provider:eth1
[vxlan]
enable_vxlan = false
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
[root@con01 ~]#openstack network agent list
+--------------------------------------+--------------------+-----------------+-------------------+-------+-------+---------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+--------------------+-----------------+-------------------+-------+-------+---------------------------+
| 1739fbad-811c-41df-bed5-b155a23ebc63 | Metadata agent | con02.test.lab | None | :-) | UP | neutron-metadata-agent |
| 540ff9eb-867e-4ec7-b134-808decdfcd8f | Linux bridge agent | con03.test.lab | None | :-) | UP | neutron-linuxbridge-agent |
| 5650218d-13e5-47d4-a388-eb0fa84d5166 | DHCP agent | con02.test.lab | nova | :-) | UP | neutron-dhcp-agent |
| 62b7137e-48b0-4265-90ed-880794b7c694 | DHCP agent | con03.test.lab | nova | :-) | UP | neutron-dhcp-agent |
| 89267f54-876b-434c-b3c1-b51633464240 | Metadata agent | con01.test.lab | None | :-) | UP | neutron-metadata-agent |
| 932ca3e0-770e-4a85-b0d8-851cb8ebb568 | Linux bridge agent | con02.test.lab | None | :-) | UP | neutron-linuxbridge-agent |
| a64996f7-2c4e-49e6-88be-8e39e33932a0 | Linux bridge agent | con01.test.lab | None | :-) | UP | neutron-linuxbridge-agent |
| ad268dfc-da17-4897-9b46-b721e87c321e | DHCP agent | con01.test.lab | nova | :-) | UP | neutron-dhcp-agent |
| b9a28a1f-e889-42eb-a117-804519f5e37e | Metadata agent | con03.test.lab | None | :-) | UP | neutron-metadata-agent |
| dc09ac10-fe29-40d3-b515-506c1ed0aeb6 | Linux bridge agent | comp01.test.lab | None | :-) | UP | neutron-linuxbridge-agent |
| f65930e5-2e04-4014-bef4-8e628de27702 | Linux bridge agent | comp02.test.lab | None | :-) | UP | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+-----------------+-------------------+-------+-------+---------------------------+
[root@con01 ~]#openstack network list
+--------------------------------------+----------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+----------+--------------------------------------+
| b8f25470-4a35-4a34-8063-8afbe0176c13 | provider | 87738e0a-8452-47f3-b495-8130b57bb6d8 |
+--------------------------------------+----------+--------------------------------------+
[root@con01 ~]#openstack network show b8f25470-4a35-4a34-8063-8afbe0176c13
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | nova |
| created_at | 2019-11-04T03:09:21Z |
| description | |
| dns_domain | None |
| id | b8f25470-4a35-4a34-8063-8afbe0176c13 |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| is_vlan_transparent | None |
| mtu | 1500 |
| name | provider |
| port_security_enabled | True |
| project_id | bf807348d3504343993c396416752002 |
| provider:network_type | flat |
| provider:physical_network | provider |
| provider:segmentation_id | None |
| qos_policy_id | None |
| revision_number | 1 |
| router:external | External |
| segments | None |
| shared | True |
| status | ACTIVE |
| subnets | 87738e0a-8452-47f3-b495-8130b57bb6d8 |
| tags | |
| updated_at | 2019-11-04T03:21:24Z |
+---------------------------+--------------------------------------+
[root@con01 ~]#openstack port list
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------+--------+
| 01dadb44-3ef4-41ed-b6cd-279228376b0e | | fa:16:3e:be:6f:95 | ip_address='192.168.100.113', subnet_id='87738e0a-8452-47f3-b495-8130b57bb6d8' | ACTIVE |
| 1b498597-7a27-4cc6-a73e-4e462d4308ea | | fa:16:3e:0e:1f:e6 | ip_address='192.168.100.114', subnet_id='87738e0a-8452-47f3-b495-8130b57bb6d8' | ACTIVE |
| 8939cc69-3bca-4dc9-8c8a-877c7674ba68 | | fa:16:3e:0c:78:9c | ip_address='192.168.100.112', subnet_id='87738e0a-8452-47f3-b495-8130b57bb6d8' | ACTIVE |
| dc833bbf-2a97-4c2e-949a-c92d52d981e2 | | fa:16:3e:76:95:10 | ip_address='192.168.100.111', subnet_id='87738e0a-8452-47f3-b495-8130b57bb6d8' | ACTIVE |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------+--------+
[root@con01 ~]#brctl show
bridge name bridge id STP enabled interfaces
brqb8f25470-4a 8000.00155d5fc712 no eth1
tapdc833bbf-2a
[root@comp01 ~]# brctl show
bridge name ...
You say the VM doesn't get an IP address via DHCP. Is a DHCP server configured for 192.168.100.x? If yes, I would trace network traffic between VM and the DHCP server to understand where the VM's DHCP requests, or the responses, disappear.