stack.sh script failed to run with quantum

Asked by Neelakantam

I took the latest version of the devstack and created the localrc file as shown below:

HOST_IP=192.168.2.210
FLAT_INTERFACE=eth0
FIXED_RANGE=10.0.0.0/24
FIXED_NETWORK_SIZE=256
FLOATING_RANGE=10.0.1.128/28
MULTI_HOST=${MULTI_HOST:-True}
MYSQL_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_TOKEN=secret
SERVICE_PASSWORD=secret
ADMIN_PASSWORD=secret
LOGFILE=stack.sh.log
ENABLED_SERVICES="$ENABLED_SERVICES,quantum,q-svc,q-agt"
SWIFT_HASH=secret

When I run the stack.sh script, I am getting the following error.

+ cd /opt/stack/quantum
+ sudo python setup.py develop
running develop
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running egg_info
creating quantum.egg-info
writing requirements to quantum.egg-info/requires.txt
writing quantum.egg-info/PKG-INFO
writing eager_resources to quantum.egg-info/eager_resources.txt
writing top-level names to quantum.egg-info/top_level.txt
writing dependency_links to quantum.egg-info/dependency_links.txt
writing entry points to quantum.egg-info/entry_points.txt
writing manifest file 'quantum.egg-info/SOURCES.txt'
reading manifest file 'quantum.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'quantum.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python2.7/dist-packages/quantum.egg-link (link to .)
quantum 2012.2 is already the active version in easy-install.pth
Installing quantum-linuxbridge-agent script to /usr/local/bin
Installing quantum-openvswitch-agent script to /usr/local/bin
Installing quantum-ryu-agent script to /usr/local/bin
Installing quantum-server script to /usr/local/bin

Installed /opt/stack/quantum
Processing dependencies for quantum==2012.2
Searching for python-quantumclient
Best match: python-quantumclient [unknown version]
Downloading git+https://review.openstack.org/p/openstack/python-quantumclient#egg=python-quantumclient
error: Download error for git+https://review.openstack.org/p/openstack/python-quantumclient: unknown url type: git+https
++ failed
++ local r=1
++ set +o xtrace

Is there anything wrong in my configuration? Please help me to solve this problem.

Question information

Language:
English Edit question
Status:
Solved
For:
devstack Edit question
Assignee:
No assignee Edit question
Solved by:
David Lapsley
Solved:
Last query:
Last reply:
Revision history for this message
Jorge Henrique de Barros Assumpção (o-jbarros) said :
#1

hi

I am with the same problem.
Help us , please.

Revision history for this message
Shweta P (shweta-ap05) said :
#2

Hi Jorge,

I dont know what the fix is but this was how i got around it.

Run the setup.py in python-quantumclient after the devstack failure
In /opt/stack/python-quantumclient
python setup.py develop
Then run devstack again. It worked for me.

Revision history for this message
Best David Lapsley (dlapsley) said :
#3

The problem is because of an issue in the packaging for quantum. We changed from using pip to install the python-quantumclient dependency in quantum to using the CI-based install. I believe someone is currently looking into this.

In the meantime, the workaround I use is to manually install the quantum dependencies:

cd /opt/stack/quantum
pip install -r tools/pip-requires

(Actually, I add the line above into the stack.sh script in the appropriate place.)

Revision history for this message
Rohit Agarwalla (rohitagarwalla) said :
#4

Thanks for solving it guys !

Revision history for this message
Neelakantam (neelugaddam) said :
#5

Thanks for the solution.

Revision history for this message
Neelakantam (neelugaddam) said :
#6

Thanks David Lapsley, that solved my question.