New install of Quantum failed

Bug #1148133 reported by terryg2012
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Aaron Rosen

Bug Description

root@cld4b1ubuntu:/home/stack# apt-get install quantum-server quantum-plugin-openvswitch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  python-quantum python-quantumclient quantum-common
The following NEW packages will be installed:
  python-quantum python-quantumclient quantum-common quantum-plugin-openvswitch quantum-server
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 966 kB of archives.
After this operation, 6,141 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-trunk-testing/ubuntu/ precise/main p
ython-quantumclient all 2:2.1.2.7.g77ea68e+git201303051731~precise-0ubuntu1 [67.9 kB]
Get:2 http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-trunk-testing/ubuntu/ precise/main p
ython-quantum all 1:2013.1+git201303051802~precise-0ubuntu1 [787 kB]
Get:3 http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-trunk-testing/ubuntu/ precise/main q
uantum-common all 1:2013.1+git201303051802~precise-0ubuntu1 [40.8 kB]
Get:4 http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-trunk-testing/ubuntu/ precise/main q
uantum-plugin-openvswitch all 1:2013.1+git201303051802~precise-0ubuntu1 [35.4 kB]
Get:5 http://ppa.launchpad.net/openstack-ubuntu-testing/grizzly-trunk-testing/ubuntu/ precise/main q
uantum-server all 1:2013.1+git201303051802~precise-0ubuntu1 [35.1 kB]
Fetched 966 kB in 3s (286 kB/s)
Selecting previously unselected package python-quantumclient.
(Reading database ... 62325 files and directories currently installed.)
Unpacking python-quantumclient (from .../python-quantumclient_2%3a2.1.2.7.g77ea68e+git201303051731~p
recise-0ubuntu1_all.deb) ...
Selecting previously unselected package python-quantum.
Unpacking python-quantum (from .../python-quantum_1%3a2013.1+git201303051802~precise-0ubuntu1_all.de
b) ...
Selecting previously unselected package quantum-common.
Unpacking quantum-common (from .../quantum-common_1%3a2013.1+git201303051802~precise-0ubuntu1_all.de
b) ...
Selecting previously unselected package quantum-plugin-openvswitch.
Unpacking quantum-plugin-openvswitch (from .../quantum-plugin-openvswitch_1%3a2013.1+git201303051802
~precise-0ubuntu1_all.deb) ...
Selecting previously unselected package quantum-server.
Unpacking quantum-server (from .../quantum-server_1%3a2013.1+git201303051802~precise-0ubuntu1_all.de
b) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up python-quantumclient (2:2.1.2.7.g77ea68e+git201303051731~precise-0ubuntu1) ...
Setting up python-quantum (1:2013.1+git201303051802~precise-0ubuntu1) ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.7/dist-packages/quantum/plugins/cisco/extensions/
credential.py', 28, 5, '(from quantum.plugins.cisco.extensions import _credential_view as\n'))

dpkg: error processing python-quantum (--configure):
 subprocess installed post-installation script returned error exit status 101
dpkg: dependency problems prevent configuration of quantum-common:
 quantum-common depends on python-quantum (= 1:2013.1+git201303051802~precise-0ubuntu1); however:
  Package python-quantum is not configured yet.
dpkg: error processing quantum-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of quantum-plugin-openvswitch:
 quantum-plugin-openvswitch depends on quantum-common (= 1:2013.1+git201303051802~precise-0ubuntu1);
 however:
  Package quantum-common is not configured yet.
dpkg: error processing quantum-plugin-openvswitch (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of quantum-server:
 quantum-server depends on quantum-common (= 1:2013.1+git201303051802~precise-0ubuntu1); however:
  Package quantum-common is not configured yet.
dpkg: errNo apport report written because the error message indicates its a followup error from a pr
evious failure.
No apport report written because the error message indicates its a followup error from a previous fa
ilure.
No apport report written because MaxReports is reached already
or processing quantum-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-quantum
 quantum-common
 quantum-plugin-openvswitch
 quantum-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@cld4b1ubuntu:/home/stack#

Revision history for this message
terryg2012 (terry-gong) wrote :

The module credential.py found in /usr/lib/python2.7/dist-packages/quantum/plugins/cisco/extensions/ contains a syntax error at line 28 which causes the install to fail.

Revision history for this message
Aaron Rosen (arosen) wrote :

I don't see a syntax error there in the current code base. It does look like that dir is missing an __init__.py though. Does this only happen if you are trying to use the cisco plugin or does it affect all of quantum?

Revision history for this message
dan wendlandt (danwent) wrote :

 from quantum.manager import QuantumManager
 from quantum.plugins.cisco.common import cisco_exceptions as exception
 from quantum.plugins.cisco.common import cisco_faults as faults
-(from quantum.plugins.cisco.extensions import _credential_view as
+from quantum.plugins.cisco.extensions import (_credential_view as
     credential_view)
 from quantum import wsgi

Revision history for this message
dan wendlandt (danwent) wrote :

that will fix the syntax error. odd that pep8 did not complain about the syntax error (neither did the cisco dev who said they would test it... hrmmmm.)

Revision history for this message
dan wendlandt (danwent) wrote :

you'll also need the __init__.py

Aaron Rosen (arosen)
Changed in quantum:
assignee: nobody → Aaron Rosen (arosen)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/23640

Changed in quantum:
status: New → In Progress
Revision history for this message
terryg2012 (terry-gong) wrote :

I was not trying to use the cisco plugin. I was just trying to install the Quantum package using "apt-get install quantum-server quantum-plugin-openvswitch".

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/23638
Committed: http://github.com/openstack/quantum/commit/c56c0fab09bfff67a703e5777d18f71721c96f07
Submitter: Jenkins
Branch: master

commit c56c0fab09bfff67a703e5777d18f71721c96f07
Author: Aaron Rosen <email address hidden>
Date: Tue Mar 5 17:48:35 2013 -0800

    Fix syntax error in credential.py and missing __init__.py

    This patch fixes a syntax error in credential.py and resolves
    the following import error:

    In [1]: from quantum.plugins.cisco.extensions import _credential_view as a
    ---------------------------------------------------------------------------
    ImportError Traceback (most recent call last)
    /opt/stack/quantum/<ipython-input-1-ef3f11a361d0> in <module>()
    ----> 1 from quantum.plugins.cisco.extensions import _credential_view as a

    Fixes bug 1148133

    Change-Id: I22bc7152fcfec6fdc9f2638bc92d2fb1db99a484

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
milestone: none → grizzly-rc1
importance: Undecided → High
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-rc1 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.