← Back to team overview

openstack team mailing list archive

quanum 2012-1-e4 integration with diablo stack -- not able to ping the ip address

 

Thanks Brad.  Quantum 2012-1-e4 works fine.
[python-quantumclient-2012.1~e4.tar.gz , quantum-2012.1~e4.tar.gz]
[configuration: 
Trying to integrate Diablo openstack (on natty) with Quantum 2012-1-e4
1 controller node that runs nova-compute/nova-api/nova-volume/nova-network/openvswitch/ openvswitch agent
1 quantum node on a different server - runs just quantum server
I was successfully able to launch VMs using HA network mode. I am trying to look at the capabilities of quantum]
]
I was able to launch a VM. I see tap interface getting created. However, I am not able to ping or ssh to the ip address of the VM. 
When I do euca-get-console-output  i-00000006, I see that dhcp is not leasiing the ip address.
stty: /dev/console
udhcpc (v1.17.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
starting DHCP forEthernet interface eth0  [  OK  ]
cloud-setup: checking http://169.254.169.254/2009-04-04/meta-data/instance-id
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 1/30: up 16.63. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 2/30: up 17.78. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
I do not see 2 instances of dnsmasq running. 
My nova.conf is
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--flagfile=/etc/nova/nova-compute.conf
--force_dhcp_release=True
--use_deprecated_auth
--verbose
--sql_connection=mysql://novadbadmin:novasecret@192.168.198.59/nova
--daemonize
--s3_host=192.168.198.59
--rabbit_host=192.168.198.59
--cc_host=192.168.198.59
--ospi_host=192.168.198.59
--ec2_host=192.168.198.59
--ec2_url=http://192.168.198.59:8773/services/Cloud
--nova_url=http://192.168.198.59:8774/v1.1/
--FAKE_subdomain=ec2
--routing_source_ip=192.168.198.59
--glance_api_servers=192.168.198.59:9292
--image_service=nova.image.glance.GlanceImageService
--iscsi_ip_prefix=192.168.
--my_ip=192.168.198.59
# Quantum configuration
--network_manager=nova.network.quantum.manager.QuantumManager
--quantum_connection_host=192.168.198.55
--quantum_connection_port=9696
--quantum_use_dhcp=True
--libvirt_ovs_integration_bridge=br-int
--libvirt_vif_type=ethernet
--libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver
--linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
--libvirt_type=qemu
--public_interface=eth0
--flat_interface=eth1
--fixed_range=192.168.4.0/24
--network_size=256
--flat_network_bridge=br-int
--quantum_default_tenant_id=tenant2
Is there is anything missing/incorrect in the config?
br-int    Link encap:Ethernet  HWaddr 08:00:27:59:a9:13
          inet6 addr: fe80::a00:27ff:fe59:a913/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:468 (468.0 B)
eth0      Link encap:Ethernet  HWaddr 08:00:27:c9:65:2a
          inet addr:192.168.198.59  Bcast:192.168.198.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fec9:652a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6371 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5997 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:454103 (454.1 KB)  TX bytes:823909 (823.9 KB)
eth1      Link encap:Ethernet  HWaddr 08:00:27:59:a9:13
          inet6 addr: fe80::a00:27ff:fe59:a913/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:936 (936.0 B)
eth2      Link encap:Ethernet  HWaddr 08:00:27:71:24:4f
          inet addr:10.0.4.15  Bcast:10.0.4.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe71:244f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:50 errors:0 dropped:0 overruns:0 frame:0
          TX packets:193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10322 (10.3 KB)  TX bytes:16884 (16.8 KB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:30378 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30378 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22825402 (22.8 MB)  TX bytes:22825402 (22.8 MB)
tap4ec75ca1-60 Link encap:Ethernet  HWaddr 52:0b:53:b8:bf:44
          inet6 addr: fe80::500b:53ff:feb8:bf44/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:360 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:114456 (114.4 KB)  TX bytes:468 (468.0 B)
virbr0    Link encap:Ethernet  HWaddr fe:8a:10:f4:24:83
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Thanks in advance for the help.
-Jay



________________________________
From: Brad Hall <brad@xxxxxxxxxx>
To: jay_s_b <jay_s_b@xxxxxxxxx> 
Sent: Monday, March 5, 2012 1:28 PM
Subject: Re: [Openstack] quantum list-net list_port throwing exception status code 500

I'm using the trunk (with devstack) and it works fine.. I don't think
the trunk is far off from the 4 tarball.  Maybe you should upgrade to
e4 and try that out.

Thanks,
Brad

On Mon, Mar 5, 2012 at 12:48 PM, jay_s_b <jay_s_b@xxxxxxxxx> wrote:
> Hi Brad,
> I am using OpenVSwitch plugin. However, ovs-vswitchd.log does not show much.
> Launching the VM did not reach that far and
> stopped beforehand due to status error code 500. I have copied the log below
> in case.
> Thanks,
> -Jay
>
> Here is my nova-network log that has captured quantum-server reply :
> 2012-03-05 05:04:28,369 DEBUG nova.network.quantum.manager [-] network
> allocations for instance 14 from (pid=1015) allocate_for_instance
> /usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py:142
> 2012-03-05 05:04:28,388 DEBUG nova.network.quantum.quantum_connection [-]
> Connecting interface fe0af003-023b-480a-91da-84ed339ef1d4 to net
> 07979e30-c0c1-47df-85ed-f8d3adb21a7f for tenant2 from (pid=1015)
> create_and_attach_port
> /usr/lib/python2.7/dist-packages/nova/network/quantum/quantum_connection.py:84
> 2012-03-05 05:04:28,388 DEBUG nova.network.quantum.quantum_connection [-]
> Quantum Client Request:
> POST
> /v1.0/tenants/tenant2/networks/07979e30-c0c1-47df-85ed-f8d3adb21a7f/ports.json
>  from (pid=1015) do_request
> /usr/lib/python2.7/dist-packages/nova/network/quantum/client.py:176
> 2012-03-05 05:04:28,388 DEBUG nova.network.quantum.quantum_connection [-]
> {"port": {"state": "ACTIVE"}} from (pid=1015) do_request
> /usr/lib/python2.7/dist-packages/nova/network/quantum/client.py:178
> 2012-03-05 05:04:28,395 DEBUG nova.network.quantum.quantum_connection [-]
> Quantum Client Reply (code = 202) :
>  {"port": {"id": "a3220832-368d-4785-841e-2f884deb41d5"}} from (pid=1015)
> do_request
> /usr/lib/python2.7/dist-packages/nova/network/quantum/client.py:187
> 2012-03-05 05:04:28,396 DEBUG nova.network.quantum.quantum_connection [-]
> Quantum Client Request:
> PUT
> /v1.0/tenants/tenant2/networks/07979e30-c0c1-47df-85ed-f8d3adb21a7f/ports/a3220832-368d-4785-841e-2f884deb41d5/attachment.json
>  from (pid=1015) do_request
> /usr/lib/python2.7/dist-packages/nova/network/quantum/client.py:176
> 2012-03-05 05:04:28,396 DEBUG nova.network.quantum.quantum_connection [-]
> {"attachment": {"id": "fe0af003-023b-480a-91da-84ed339ef1d4"}} from
> (pid=1015) do_request
> /usr/lib/python2.7/dist-packages/nova/network/quantum/client.py:178
> 2012-03-05 05:04:28,407 DEBUG nova.network.quantum.quantum_connection [-]
> Quantum Client Reply (code = 204) :
>   from (pid=1015) do_request
> /usr/lib/python2.7/dist-packages/nova/network/quantum/client.py:187
> 2012-03-05 05:04:28,613 DEBUG nova.network.quantum.quantum_connection [-]
> Quantum Client Request:
> GET /v1.0/tenants/tenant2/networks.json
>  from (pid=1015) do_request
> /usr/lib/python2.7/dist-packages/nova/network/quantum/client.py:176
> 2012-03-05 05:04:28,617 DEBUG nova.network.quantum.quantum_connection [-]
> Quantum Client Reply (code = 500) :
>
>  Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/eventlet-0.9.16-py2.7.egg/eventlet/wsgi.py",
> line 336, in handle_one_response
>     result = self.application(self.environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py",
> line 203, in __call__
>     return app(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
>     return resp(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py",
> line 131, in __call__
>     response = self.app(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
>     return resp(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
>     return resp(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py",
> line 131, in __call__
>     response = self.app(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
>     return resp(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 130, in __call__
>     resp = self.call_func(req, *args, **self.kwargs)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 195, in call_func
>     return self.func(req, *args, **kwargs)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/wsgi.py",
> line 747, in __call__
>     action_result = self.dispatch(request, action, args)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/wsgi.py",
> line 779, in dispatch
>     return controller_method(request=request, **action_args)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/api_common.py",
> line 104, in the_func
>     return func(*args, **kwargs)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/networks.py",
> line 99, in index
>     return self._items(request, tenant_id)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/networks.py",
> line 80, in _items
>     filter_opts.update(request.str_GET)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/descriptors.py",
> line 116, in fget
>     warn()
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/descriptors.py",
> line 113, in warn
>     3
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/util.py",
> line 51, in warn_deprecation
>     raise DeprecationWarning(text)
> DeprecationWarning: The attribute None is deprecated: disabled starting
> WebOb 1.2, use GET instead
>  from (pid=1015) do_request
> /usr/lib/python2.7/dist-packages/nova/network/quantum/client.py:187
> 2012-03-05 05:04:28,617 ERROR nova.rpc [-] Exception during message handling
> (nova.rpc): TRACE: Traceback (most recent call last):
> (nova.rpc): TRACE:   File
> "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 620, in
> _process_data
> (nova.rpc): TRACE:     rval = node_func(context=ctxt, **node_args)
> (nova.rpc): TRACE:   File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line
> 180, in allocate_for_instance
> (nova.rpc): TRACE:     instance_type_id, host)
> (nova.rpc): TRACE:   File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line
> 207, in get_instance_nw_info
> (nova.rpc): TRACE:     vif['uuid'])
> (nova.rpc): TRACE:   File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/quantum_connection.py",
> line 117, in get_port_by_attachment
> (nova.rpc): TRACE:     net_list_resdict =
> self.client.list_networks(tenant=tenant_id)
> (nova.rpc): TRACE:   File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/client.py", line 81,
> in with_params
> (nova.rpc): TRACE:     ret = self.func(instance, *args)
> (nova.rpc): TRACE:   File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/client.py", line 239,
> in list_networks
> (nova.rpc): TRACE:     return self.do_request("GET", self.networks_path)
> (nova.rpc): TRACE:   File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/client.py", line 202,
> in do_request
> (nova.rpc): TRACE:     % locals()))
> (nova.rpc): TRACE: QuantumServerException: Server 500 error: Traceback (most
> recent call last):
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/eventlet-0.9.16-py2.7.egg/eventlet/wsgi.py",
> line 336, in handle_one_response
> (nova.rpc): TRACE:     result = self.application(self.environ,
> start_response)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py",
> line 203, in __call__
> (nova.rpc): TRACE:     return app(environ, start_response)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
> (nova.rpc): TRACE:     return resp(environ, start_response)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py",
> line 131, in __call__
> (nova.rpc): TRACE:     response = self.app(environ, start_response)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
> (nova.rpc): TRACE:     return resp(environ, start_response)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
> (nova.rpc): TRACE:     return resp(environ, start_response)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py",
> line 131, in __call__
> (nova.rpc): TRACE:     response = self.app(environ, start_response)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
> (nova.rpc): TRACE:     return resp(environ, start_response)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 130, in __call__
> (nova.rpc): TRACE:     resp = self.call_func(req, *args, **self.kwargs)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 195, in call_func
> (nova.rpc): TRACE:     return self.func(req, *args, **kwargs)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/wsgi.py",
> line 747, in __call__
> (nova.rpc): TRACE:     action_result = self.dispatch(request, action, args)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/wsgi.py",
> line 779, in dispatch
> (nova.rpc): TRACE:     return controller_method(request=request,
> **action_args)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/api_common.py",
> line 104, in the_func
> (nova.rpc): TRACE:     return func(*args, **kwargs)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/networks.py",
> line 99, in index
> (nova.rpc): TRACE:     return self._items(request, tenant_id)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/networks.py",
> line 80, in _items
> (nova.rpc): TRACE:     filter_opts.update(request.str_GET)
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/descriptors.py",
> line 116, in fget
> (nova.rpc): TRACE:     warn()
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/descriptors.py",
> line 113, in warn
> (nova.rpc): TRACE:     3
> (nova.rpc): TRACE:   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/util.py",
> line 51, in warn_deprecation
> (nova.rpc): TRACE:     raise DeprecationWarning(text)
> (nova.rpc): TRACE: DeprecationWarning: The attribute None is deprecated:
> disabled starting WebOb 1.2, use GET instead
> (nova.rpc): TRACE:
> (nova.rpc): TRACE:
> 2012-03-05 05:04:28,618 ERROR nova.rpc [-] Returning exception Server 500
> error: Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/eventlet-0.9.16-py2.7.egg/eventlet/wsgi.py",
> line 336, in handle_one_response
>     result = self.application(self.environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py",
> line 203, in __call__
>     return app(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
>     return resp(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py",
> line 131, in __call__
>     response = self.app(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
>     return resp(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
>     return resp(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py",
> line 131, in __call__
>     response = self.app(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__
>     return resp(environ, start_response)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 130, in __call__
>     resp = self.call_func(req, *args, **self.kwargs)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 195, in call_func
>     return self.func(req, *args, **kwargs)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/wsgi.py",
> line 747, in __call__
>     action_result = self.dispatch(request, action, args)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/wsgi.py",
> line 779, in dispatch
>     return controller_method(request=request, **action_args)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/api_common.py",
> line 104, in the_func
>     return func(*args, **kwargs)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/networks.py",
> line 99, in index
>     return self._items(request, tenant_id)
>   File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/networks.py",
> line 80, in _items
>     filter_opts.update(request.str_GET)
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/descriptors.py",
> line 116, in fget
>     warn()
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/descriptors.py",
> line 113, in warn
>     3
>   File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/util.py",
> line 51, in warn_deprecation
>       raise DeprecationWarning(text)
> DeprecationWarning: The attribute None is deprecated: disabled starting
> WebOb 1.2, use GET instead
>  to caller
> 2012-03-05 05:04:28,618 ERROR nova.rpc [-] ['Traceback (most recent call
> last):\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 620, in
> _process_data\n    rval = node_func(context=ctxt, **node_args)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line
> 180, in allocate_for_instance\n    instance_type_id, host)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/manager.py", line
> 207, in get_instance_nw_info\n    vif[\'uuid\'])\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/quantum_connection.py",
> line 117, in get_port_by_attachment\n    net_list_resdict =
> self.client.list_networks(tenant=tenant_id)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/client.py", line 81,
> in with_params\n    ret = self.func(instance, *args)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/network/quantum/client.py", line 239,
> in list_networks\n    return self.do_request("GET", self.networks_path)\n',
> '  File "/usr/lib/python2.7/dist-packages/nova/network/quantum/client.py",
> line 202, in do_request\n    % locals()))\n', 'QuantumServerException:
> Server 500 error: Traceback (most recent call last):\n  File
> "/usr/local/lib/python2.7/dist-packages/eventlet-0.9.16-py2.7.egg/eventlet/wsgi.py",
> line 336, in handle_one_response\n    result =
> self.application(self.environ, start_response)\n  File
> "/usr/local/lib/python2.7/dist-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py",
> line 203, in __call__\n    return app(environ, start_response)\n  File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__\n    return resp(environ, start_response)\n  File
> "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py",
> line 131, in __call__\n    response = self.app(environ, start_response)\n
> File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__\n    return resp(environ, start_response)\n  File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__\n    return resp(environ, start_response)\n  File
> "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py",
> line 131, in __call__\n    response = self.app(environ, start_response)\n
> File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 144, in __call__\n    return resp(environ, start_response)\n  File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 130, in __call__\n    resp = self.call_func(req, *args,
> **self.kwargs)\n  File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/dec.py",
> line 195, in call_func\n    return self.func(req, *args, **kwargs)\n  File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/wsgi.py",
> line 747, in __call__\n    action_result = self.dispatch(request, action,
> args)\n  File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/wsgi.py",
> line 779, in dispatch\n    return controller_method(request=request,
> **action_args)\n  File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/api_common.py",
> line 104, in the_func\n    return func(*args, **kwargs)\n  File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/networks.py",
> line 99, in index\n    return self._items(request, tenant_id)\n  File
> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/api/networks.py",
> line 80, in _items\n    filter_opts.update(request.str_GET)\n  File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/descriptors.py",
> line 116, in fget\n    warn()\n  File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/descriptors.py",
> line 113, in warn\n    3\n  File
> "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b3-py2.7.egg/webob/util.py",
> line 51, in warn_deprecation\n    raise
> DeprecationWarning(text)\nDeprecationWarning: The attribute None is
> deprecated: disabled starting WebOb 1.2, use GET instead\n\n']
>
> Mar 05 04:28:01|00001|vlog|INFO|opened log file
> /var/log/openvswitch/ovs-vswitchd.log
> Mar 05 04:28:01|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock:
> connecting...
> Mar 05 04:28:01|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock:
> connected
> Mar 05 04:28:01|00004|ofproto|INFO|using datapath ID 0000002320a01c2e
> Mar 05 04:28:01|00005|bridge|INFO|created bridge br-int on system@dp0
> Mar 05 04:28:01|00006|bridge|INFO|created port eth1 on bridge br-int
> Mar 05 04:28:01|00007|bridge|INFO|created port br-int on bridge br-int
> Mar 05 04:28:01|00008|ofproto|INFO|datapath ID changed to 000008002759a913
> Mar 05 05:03:24|00009|ofp_util|INFO|normalization changed ofp_match,
> details:
> Mar 05 05:03:24|00010|ofp_util|INFO| pre: wildcards=  0x3820ff
> in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00
> dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0
> nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
> Mar 05 05:03:24|00011|ofp_util|INFO|post: wildcards=  0x3fffff
> in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00
> dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0
> nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
> Mar 05 05:03:24|00012|ofp_util|INFO|normalization changed ofp_match,
> details:
> Mar 05 05:03:24|00013|ofp_util|INFO| pre: wildcards=  0x3820ff
> in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00
> dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0
> nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
> Mar 05 05:03:24|00014|ofp_util|INFO|post: wildcards=  0x3fffff
> in_port=65534  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00
> dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0
> nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
>
>
> From: Brad Hall <brad@xxxxxxxxxx>
> To: jay_s_b <jay_s_b@xxxxxxxxx>
> Sent: Monday, March 5, 2012 11:39 AM
> Subject: Re: [Openstack] quantum list-net list_port throwing exception
> status code 500
>
> Hi Jay,
>
> What plugin are you using?  Do you have any logs from the plugin or
> quantum server output?
>
> Thanks,
> Brad
>
> On Mon, Mar 5, 2012 at 10:26 AM, jay_s_b <jay_s_b@xxxxxxxxx> wrote:
>> Hello,
>> Using quantum :essex-3-2012-1 version
>> [python-quantumclient-2012.1 and quantum-2012.1]
>> I created network/port/interface successfully using
>> create_net/create_port/plug_iface.
>> However, list_nets and list_ports commands always return exception status
>> code 500. [Because of this error VM that is launched is
>> stuck with pending state]. show_net and show_port work fine. I am not sure
>> if this is a bug. Is there a workaround?
>>
>> /usr/local/bin/quantum list_nets tenant2
>> Traceback (most recent call last):
>>   File "./quantum", line 9, in <module>
>>     load_entry_point('python-quantumclient==2012.1', 'console_scripts',
>> 'quantum')()
>>   File
>>
>> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/client/cli.py",
>> line 164, in                 main
>>     commands[cmd]["func"](client, *args)
>>   File
>>
>> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/client/cli_lib.py",
>> line 165,                 in list_nets
>>     res = client.list_networks()
>>   File
>>
>> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/client/__init__.py",
>> line 58,                 in with_params
>>     ret = self.function(instance, *args)
>>   File
>>
>> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/client/__init__.py",
>> line 259                , in list_networks
>>     return self.do_request("GET", self.networks_path)
>>   File
>>
>> "/usr/local/lib/python2.7/dist-packages/quantum-2012.1-py2.7.egg/quantum/client/__init__.py",
>> line 207                , in do_request
>>     raise ex
>> Exception: [{'status_code': 500, 'message': ''}]
>> localadmin@quantum:/usr/local/bin$ ./quantum list_ports tenant2
>> 07979e30-c0c1-47df-85ed-f8d3adb21a7f
>> Exception:<type 'exceptions.Exception'> - [{'status_code': 500, 'message':
>> ''}]
>> Command failed with error code: 500
>> Error message:<missing>
>> mysql> select * from networks;
>>
>> +--------------------------------------+-----------+----------+-----------+
>> | uuid                                 | tenant_id | name     | op_status
>> |
>>
>> +--------------------------------------+-----------+----------+-----------+
>> | 07979e30-c0c1-47df-85ed-f8d3adb21a7f | tenant2   | testnet2 | UP
>> |
>>
>> +--------------------------------------+-----------+----------+-----------+
>> mysql> select * from ports;
>>
>> +--------------------------------------+--------------------------------------+--------------------------------------+--------+-----------+
>> | uuid                                 |
>> network_id                           | interface_id
>> | state  | op_status |
>>
>> +--------------------------------------+--------------------------------------+--------------------------------------+--------+-----------+
>> | fe9c24c6-4691-482e-90ef-5cd1245f9a3d |
>> 07979e30-c0c1-47df-85ed-f8d3adb21a7f |
>> 51e8b007-af9f-49bf-a830-63d2ba7c4347
>> | ACTIVE | DOWN      |
>> Thanks,
>> -Jay
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>

Follow ups

References