VM don't sent DHCP DISCOVERY so cannot get IP for DHCP NS[Liberty]

asked 2016-01-11 07:33:25 -0500

Donn gravatar image

hi all,

i am a very new on openstack. A problem i met is that 'VM cannot get IP from DHCP namespace."

here are some configuration files for your investigate:

root@Controller:~# egrep -v '^#|^$' /etc/neutron/neutron.conf 
[DEFAULT]
verbose = True
state_path = /var/lib/neutron
core_plugin = ml2
service_plugins =router
auth_strategy = keystone
allow_overlapping_ips = True
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://controller:8774/v2
rpc_backend=rabbit
[matchmaker_redis]
[matchmaker_ring]
[quotas]
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = neutron
password = Admin123
[database]
connection = mysql+pymysql://neutron:Admin123@controller/neutron
[nova]
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = nova
password = Admin123
[oslo_concurrency]
lock_path = $state_path/lock
[oslo_policy]
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = Admin123
[qos]
root@Controller:~# 

root@Controller:~# egrep -v '^#|^$' /etc/neutron/l3_agent.ini 
[DEFAULT]
verbose = True
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
use_namespaces = True
external_network_bridge =
router_delete_namespaces = True
[AGENT]
root@Controller:~# 

root@Controller:~# egrep -v '^#|^$' /etc/neutron/dhcp_agent.ini 
[DEFAULT]
verbose = True
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
use_namespaces = True
enable_isolated_metadata = True
dnsmasq_config_file =/etc/neutron/dnsmasq-neutron.conf
dhcp_delete_namespaces = True
[AGENT]
root@Controller:~# 


root@Controller:~# egrep -v '^#|^$' /etc/neutron/dnsmasq-neutron.conf 
dhcp-option-force=26,1450
log-facility=/var/log/neutron/dnsmasq.log
log-dhcp
root@Controller:~# 

root@Controller:~# egrep -v '^#|^$' /etc/neutron/plugins/ml2/ml2_conf.ini 
[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = vlan,gre,vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = external
[ml2_type_vlan]
network_vlan_ranges = external,vlan:1:100
[ml2_type_gre]
tunnel_id_ranges = 100:500
[ml2_type_vxlan]
vni_ranges = 500:1000
vxlan_group = 239.1.1.1
[ml2_type_geneve]
[ovs]
local_ip = 20.10.0.2
enable_tunneling = True
bridge_mappings = vlan:br-vlan,external:br-ex
[agent]
l2_population = True
tunnel_types = gre,vxlan
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
enable_ipset = True
root@Controller:~# 

root@Controller:~# neutron agent-list 
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host       | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
| 16e5117e-58cb-4eaf-b08c-8fa1ea2e8639 | DHCP agent         | Controller | :-)   | True           | neutron-dhcp-agent        |
| 614a3234-387e-485a-bdcf-2351bfd42ef4 | Open vSwitch agent | Controller | :-)   | True           | neutron-openvswitch-agent |
| 71444b39-e7d0-4a24-b6f9-9a2e60c90b64 | Metadata agent     | Controller | :-)   | True           | neutron-metadata-agent    |
| b80cc21a-6c85-4792-8477-6773ccfc9270 | L3 agent           | Controller | :-)   | True           | neutron-l3-agent          |
| f64f1d3d-50e3-4f09-9d8d-4e4933087c1c | Open vSwitch agent | Computer   | :-)   | True           | neutron-openvswitch-agent |
+--------------------------------------+--------------------+------------+-------+----------------+---------------------------+
root@Controller:~# 

root@Controller:~# nova list
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+
| ID                                   | Name           | Status | Task State | Power State | Networks                         |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+
| a99618c1-e6bd-4f82-ad31-872bc0cb2b7c | demo-instance1 | ACTIVE | -          | Running     | demo-net=192.168.1.3, 10.0.0.129 |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------+
root@Controller:~#

but i checked the vm in consol CLI. no ip was assigned for VNIC. also i cannot ping the floating ip "10.0.0.129" of instance.

from the namespace, i can ping external network from grouter:

root@Controller:~# ip netns exec qrouter-761537a6-9f74-42b1-b7a5-20493b2ecfde ping 8.8.4.4
PING 8.8.4.4 (8.8.4.4) 56(84) bytes of data.
64 bytes from 8.8.4.4: icmp_seq=1 ttl=128 time=45.6 ms
64 bytes from 8.8.4.4: icmp_seq=2 ttl=128 time=36.1 ms
^C
--- 8.8.4.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 36.156/40.883/45.611/4.731 ms
root@Controller ...
(more)
edit retag flag offensive close merge delete