← Back to team overview

openstack team mailing list archive

Can't ping my VM after associating a floating IP address

 

Hi All,

I managed to walk through the excellent tutorial of  bilel.msekni <
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/stable/GRE/OpenStack_Folsom_Install_Guide_WebVersion.rst>
and I succeeded in launching my first VM successfully and associating a
floating IP address to it. But  when I tried to ping my VM, I got no answer.

After looking at /var/log/quantum/l3-agent.log, I found that
quantum-l3-agent didn't start successfully and I am still having a hard
time to understand why.

So just to give more specifics about the "cloud" topology, I use two
machines, a controller machine and a compute machine.
The controller machine runs the controller node and the network node
whereas the compute machine runs the compute node.
The controller machine has 4 NICs :
eth0 connected to outter world.
eth1 belongs to br-ex and is connected to outter world.
eth2 for VM data traffic.
eth3 for management network.

The compute machine has 2 NICs :
eth0 for VM data traffic.
eth2 for management network.

Every other componant runs fine. I have gotten smiles in front of nova
stuff. quantum-server, quantum-dhcp and quantum-plugin are also fine and up.

Can somebody help me on this please. It is the last step before I connect
to my running VM.

Thanks a lot for your help,
Amine.
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] Running command: ip -o link show br-ex
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] 
Command: ['ip', '-o', 'link', 'show', 'br-ex']
Exit code: 0
Stdout: '7: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT \\    link/ether 00:21:91:06:4d:31 brd ff:ff:ff:ff:ff:ff\n'
Stderr: ''
2013-03-19 13:41:53    DEBUG [quantumclient.client] REQ: curl -i http://192.168.0.1:9696//v2.0/routers.json -X GET -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 86af666282344867a8ae65ac25d786c6"

2013-03-19 13:41:53    DEBUG [quantumclient.client] RESP:{'date': 'Tue, 19 Mar 2013 12:41:53 GMT', 'status': '200', 'content-length': '258', 'content-type': 'application/json', 'content-location': u'http://192.168.0.1:9696//v2.0/routers.json'}

2013-03-19 13:41:53    DEBUG [quantumclient.client] RESP BODY:{"routers": [{"status": "ACTIVE", "external_gateway_info": {"network_id": "783239a7-4654-4bf2-b993-fc06b02ddaf0"}, "name": "demo_router", "admin_state_up": true, "tenant_id": "28be43a159854b43ae3b3bdcec3f266a", "id": "15f72b28-76f9-4243-b303-3f3e216cb956"}]}

2013-03-19 13:41:53    DEBUG [quantumclient.client] REQ: curl -i http://192.168.0.1:9696//v2.0/ports.json?device_owner=network%3Arouter_gateway&device_id=15f72b28-76f9-4243-b303-3f3e216cb956 -X GET -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 86af666282344867a8ae65ac25d786c6"

2013-03-19 13:41:53    DEBUG [quantumclient.client] RESP:{'date': 'Tue, 19 Mar 2013 12:41:53 GMT', 'status': '200', 'content-length': '416', 'content-type': 'application/json', 'content-location': u'http://192.168.0.1:9696//v2.0/ports.json?device_owner=network%3Arouter_gateway&device_id=15f72b28-76f9-4243-b303-3f3e216cb956'}

2013-03-19 13:41:53    DEBUG [quantumclient.client] RESP BODY:{"ports": [{"status": "ACTIVE", "name": "", "admin_state_up": true, "network_id": "783239a7-4654-4bf2-b993-fc06b02ddaf0", "tenant_id": "", "device_owner": "network:router_gateway", "mac_address": "fa:16:3e:6f:1b:81", "fixed_ips": [{"subnet_id": "a02e2648-1928-4e9d-9b41-4ce92cb5b86e", "ip_address": "172.16.4.30"}], "id": "32dd6c6b-b6e8-4dff-b0db-3d804805c4e4", "device_id": "15f72b28-76f9-4243-b303-3f3e216cb956"}]}

2013-03-19 13:41:53    DEBUG [quantumclient.client] REQ: curl -i http://192.168.0.1:9696//v2.0/ports.json?device_owner=network%3Arouter_interface&device_id=15f72b28-76f9-4243-b303-3f3e216cb956 -X GET -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 86af666282344867a8ae65ac25d786c6"

2013-03-19 13:41:53    DEBUG [quantumclient.client] RESP:{'date': 'Tue, 19 Mar 2013 12:41:53 GMT', 'status': '200', 'content-length': '450', 'content-type': 'application/json', 'content-location': u'http://192.168.0.1:9696//v2.0/ports.json?device_owner=network%3Arouter_interface&device_id=15f72b28-76f9-4243-b303-3f3e216cb956'}

2013-03-19 13:41:53    DEBUG [quantumclient.client] RESP BODY:{"ports": [{"status": "ACTIVE", "name": "", "admin_state_up": true, "network_id": "87025d3c-f234-447a-9b7c-c159cafde6a8", "tenant_id": "28be43a159854b43ae3b3bdcec3f266a", "device_owner": "network:router_interface", "mac_address": "fa:16:3e:ef:7b:cc", "fixed_ips": [{"subnet_id": "cea01183-1038-4e21-8d2f-a5a50c1aebd9", "ip_address": "192.168.2.1"}], "id": "721fc29b-2386-41d5-adc3-827a9279661b", "device_id": "15f72b28-76f9-4243-b303-3f3e216cb956"}]}

2013-03-19 13:41:53    DEBUG [quantumclient.client] REQ: curl -i http://192.168.0.1:9696//v2.0/subnets/a02e2648-1928-4e9d-9b41-4ce92cb5b86e.json -X GET -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 86af666282344867a8ae65ac25d786c6"

2013-03-19 13:41:53    DEBUG [quantumclient.client] RESP:{'date': 'Tue, 19 Mar 2013 12:41:53 GMT', 'status': '200', 'content-length': '391', 'content-type': 'application/json', 'content-location': u'http://192.168.0.1:9696//v2.0/subnets/a02e2648-1928-4e9d-9b41-4ce92cb5b86e.json'}

2013-03-19 13:41:53    DEBUG [quantumclient.client] RESP BODY:{"subnet": {"name": "ext_subnet", "enable_dhcp": false, "network_id": "783239a7-4654-4bf2-b993-fc06b02ddaf0", "tenant_id": "4691c9362747415eb85fa47aac0ccc66", "dns_nameservers": [], "allocation_pools": [{"start": "172.16.4.30", "end": "172.16.4.35"}], "host_routes": [], "ip_version": 4, "gateway_ip": "172.16.254.254", "cidr": "172.16.0.0/16", "id": "a02e2648-1928-4e9d-9b41-4ce92cb5b86e"}}

2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] Running command: ip -o link show qg-32dd6c6b-b6
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] 
Command: ['ip', '-o', 'link', 'show', 'qg-32dd6c6b-b6']
Exit code: 1
Stdout: ''
Stderr: 'Device "qg-32dd6c6b-b6" does not exist.\n'
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] Running command: ip -o link show br-ex
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] 
Command: ['ip', '-o', 'link', 'show', 'br-ex']
Exit code: 0

Stdout: '7: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT \\    link/ether 00:21:91:06:4d:31 brd ff:ff:ff:ff:ff:ff\n'
Stderr: ''
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] Running command: ip -o link show qg-32dd6c6b-b6
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] 
Command: ['ip', '-o', 'link', 'show', 'qg-32dd6c6b-b6']
Exit code: 1
Stdout: ''
Stderr: 'Device "qg-32dd6c6b-b6" does not exist.\n'
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] Running command: sudo quantum-rootwrap /etc/quantum/rootwrap.conf ovs-vsctl -- --may-exist add-port br-ex qg-32dd6c6b-b6 -- set Interface qg-32dd6c6b-b6 type=internal -- set Interface qg-32dd6c6b-b6 external-ids:iface-id=32dd6c6b-b6e8-4dff-b0db-3d804805c4e4 -- set Interface qg-32dd6c6b-b6 external-ids:iface-status=active -- set Interface qg-32dd6c6b-b6 external-ids:attached-mac=fa:16:3e:6f:1b:81
2013-03-19 13:41:53    DEBUG [quantum.agent.linux.utils] 
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--', '--may-exist', 'add-port', 'br-ex', 'qg-32dd6c6b-b6', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'type=internal', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:iface-id=32dd6c6b-b6e8-4dff-b0db-3d804805c4e4', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:iface-status=active', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:attached-mac=fa:16:3e:6f:1b:81']
Exit code: 1
Stdout: ''
Stderr: 'sudo: no tty present and no askpass program specified\n'
2013-03-18 18:51:15    ERROR [quantum.agent.l3_agent] Error running l3_nat daemon_loop
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 171, in daemon_loop
    self.do_single_loop()
  File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 228, in do_single_loop
    self.process_router(ri)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 301, in process_router
    self.external_gateway_added(ri, ex_gw_port, internal_cidrs)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/l3_agent.py", line 383, in external_gateway_added
    prefix=EXTERNAL_DEV_PREFIX)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line 137, in plug
    self._ovs_add_port(bridge, device_name, port_id, mac_address)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line 123, in _ovs_add_port
    utils.execute(cmd, self.conf.root_helper)
  File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py", line 63, in execute
    raise RuntimeError(m)
RuntimeError: 
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--', '--may-exist', 'add-port', 'br-ex', 'qg-32dd6c6b-b6', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'type=internal', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:iface-id=32dd6c6b-b6e8-4dff-b0db-3d804805c4e4', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:iface-status=active', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:attached-mac=fa:16:3e:6f:1b:81']
Exit code: 1
Stdout: ''
Stderr: 'sudo: no tty present and no askpass program specified\n'

Follow ups