Ask Your Question

Unable to create network using quantum

asked 2012-11-16 21:35:46 -0600

gurrapu-narsing gravatar image


I have strictly following the installation procedure for quantum as mentioned in the quide, I have created quantum user, binded to role and service in keystone and did the corresponding changes in nova.conf and quantum.conf file.

I am unable to create a network, when I am trying to create network , I am seein the following information from l3-agent.log file

2012-11-16 13:31:33 DEBUG [quantum.agent.linux.utils] Running command: ip -o link show br-ex 2012-11-16 13:31:33 DEBUG [quantum.agent.linux.utils] Command: ['ip', '-o', 'link', 'show', 'br-ex'] Exit code: 0 Stdout: '9: br-ex: mtu 1500 qdisc noqueue state UNKNOWN \ link/ether de:1b:73:c5:b8:47 brd ff:ff:ff:ff:ff:ff\n' Stderr: '' 2012-11-16 13:31:33 DEBUG [quantumclient.client] REQ: curl -i http://localhost:9696/v2/v2.0/networks.json?router%3Aexternal=True (http://localhost:9696/v2/v2.0/network...) -X GET -H "User-Agent: python-quantumclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 7af5e08c1ebc4550b8c5192512df4c15"

2012-11-16 13:31:33 DEBUG [quantumclient.client] RESP:{'date': 'Fri, 16 Nov 2012 21:31:33 GMT', 'status': '404', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'}

2012-11-16 13:31:33 DEBUG [quantumclient.client] RESP BODY:404 Not Found

The resource could not be found.

2012-11-16 13:31:33 DEBUG [quantumclient.v2_0.client] Error message: 404 Not Found

The resource could not be found.

2012-11-16 13:31:33 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/", line 170, in daemon_loop self.do_single_loop() File "/usr/lib/python2.7/dist-packages/quantum/agent/", line 201, in do_single_loop target_ex_net_id = self._fetch_external_net_id() File "/usr/lib/python2.7/dist-packages/quantum/agent/", line 182, in _fetch_external_net_id ex_nets = self.qclient.list_networks(*params)['networks'] File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/", line 102, in with_params ret = self.function(instance, *args, *kwargs) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/", line 244, in list_networks return self.get(self.networks_path, params=_params) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/", line 525, in get headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/", line 510, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/", line 455, in do_request self._handle_fault_response(status_code, replybody) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/", line 436, in _handle_fault_response exception_handler_v20(status_code, des_error_body) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/", line 82, in exception_handler_v20 message=message) QuantumClientException: 404 Not Found

The resource could not be found.

^C root@openstack:~# root@openstack:~# keystone user-list +----------------------------------+---------+---------+--------------------+ | id | name | enabled | email | +----------------------------------+---------+---------+--------------------+ | 0a6da5fe748c45d686709f69e5f84960 | nova | True | | | 55465c99d3874f80ae6dadb4c6156887 | quantum | True | | | 86e9e78c71c848a6a19036d833f7dd34 | cinder | True | | | a3950766714147c1bbc052c38f57167d | swift | True | | | cbe2210f4f0d4277ae0d2d3f6eda035c | admin | True | | | d67832e0755749a1bc98005b8124bd6b | glance | True | | +----------------------------------+---------+---------+--------------------+ root@openstack:~# root@openstack:~# root@openstack:~# keystone service-list +----------------------------------+----------+--------------+------------------------------+ | id | name | type | description | +----------------------------------+----------+--------------+------------------------------+ | 2c740ebf67a44b68bdbec25df20b5003 | keystone | identity ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2012-11-19 04:51:50 -0600

fifieldt gravatar image

This is a question, rather than a docbug, so should be asked as a Question in launchpad.

edit flag offensive delete link more

answered 2012-11-19 06:04:33 -0600

emagana gravatar image

It seems that any of the Quantum Services is not running, do you have the following processes running? #ps -ef |grep quantum python /opt/stack/quantum/bin/quantum-server --config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini python /opt/stack/quantum/bin/quantum-openvswitch-agent --config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini python /opt/stack/quantum/bin/quantum-dhcp-agent --config-file /etc/quantum/quantum.conf --config-file=/etc/quantum/dhcp_agent.ini python /opt/stack/quantum/bin/quantum-l3-agent --config-file /etc/quantum/quantum.conf --config-file=/etc/quantum/l3_agent.ini

Could you also verify in their respective logs is everything is ok. I also recommend to install another host using devstack: ( It will help you to verify all your configuration files.

edit flag offensive delete link more

answered 2012-11-19 16:15:32 -0600

danwent gravatar image

well, the fact that we are getting an HTTP 404 error code and not a "connection refused" implies that quantum is running (or at least, some server is running on the IP + port you are specifying at the quantum server address.

Can you post the logs for quantum-server, and the l3_agent.ini (probably in /etc/quantum) used for the agent?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-11-16 21:35:46 -0600

Seen: 55 times

Last updated: Nov 19 '12