python-magnumclient not installing under devstack

Bug #1642409 reported by Paul Michali
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
New
Undecided
Unassigned

Bug Description

Using the Getting Started directions on Ubuntu 14.04 (both bare metal and VM on MacOS), when DevStack is processing, the following error message is seen:

2016-11-15 19:28:32.583 | [ERROR] /home/pcm/devstack/inc/python:221 The following LIBS_FROM_GIT were not installed correct: python-magnumclient

Looking in /usr/local/lib/python2.7/dist-packages/ there is an egg file for the client (nothing else). Doing "pip show python-magnumclient" does not show this package.

Revision history for this message
Paul Michali (pcm) wrote :

I had tried RHEL7 and Ubuntu 16.04, both on bare-metal, and did not see this issue.

Revision history for this message
Paul Michali (pcm) wrote :

It seems that it is not a magnum issue. From what I can tell, during stacking, it tries to remove the existing Python-magnum client, and fails (saying no files found). It then says install is successful, but it has not installed the client.

I can manually pip install the client, but then, when stacking, it will fail, as it is looking to see that it is installed, and is installed via git (-e git).

Not sure how to resolve the issue, or how to make the process more robust, but that seems to be the issue that I'm seeing on (coincidentally) two Ubuntu 14.04 systems.

Revision history for this message
yatin (yatinkarel) wrote :

@pcm, I tried installing again using the dev guide and i could successfully install over Ubuntu 14.04.
ubuntu@ubuntubase:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"

ubuntu@ubuntubase:/opt/stack$ pip freeze 2>/dev/null | grep -- "magnumclient"
-e git://git.openstack.org/openstack/python-magnumclient.git@19e61f295ec22139c8f25f5e1cec09fa92e28647#egg=python_magnumclient

ubuntu@ubuntubase:~$ cat /usr/local/lib/python2.7/dist-packages/python-magnumclient.egg-link
/opt/stack/python-magnumclient
ubuntu@ubuntubase:/opt/stack$ pip show python-magnumclient
Name: python-magnumclient
Version: 2.3.1.dev30
Summary: Client library for Magnum API
Home-page: http://docs.openstack.org/developer/python-magnumclient
Author: OpenStack
Author-email: <email address hidden>
License: UNKNOWN
Location: /opt/stack/python-magnumclient
Requires: pbr, Babel, six, keystoneauth1, stevedore, requests, oslo.i18n, oslo.serialization, oslo.utils, os-client-config, PrettyTable, cryptography, decorator

<<< it tries to remove the existing Python-magnum client, and fails (saying no files found). It then says install is successful, but it has not installed the client.

>> I also got this but still magnumclient got installed, this may be because it's installed from git:
2016-11-21 03:17:28.940 | Installing collected packages: python-magnumclient
2016-11-21 03:17:28.940 | Found existing installation: python-magnumclient 2.3.1.dev30
2016-11-21 03:17:28.943 | Can't uninstall 'python-magnumclient'. No files were found to uninstall.
2016-11-21 03:17:28.944 | Running setup.py develop for python-magnumclient
2016-11-21 03:17:36.020 | Successfully installed python-magnumclient-2.3.2.dev2

But as you said you faced the issue on Two systems, then there may be some differences between your and mine environment.
Have you done anything apart from referring the dev guide,

Not sure, but may be setuptools issue:-
ubuntu@ubuntubase:/opt/stack$ pip show setuptools
Name: setuptools
Version: 28.8.0
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: <email address hidden>
License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires:

Can you check version in your environment. I saw a similar bug in setuptools 25(reference: https://review.openstack.org/#/c/346545/). May be Spyros can give more input here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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