← Back to team overview

openstack team mailing list archive

quantum list-net list_port throwing exception status code 500

 

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