[openstack-dev] [infra][python3][congress] locally successful devstack setup fails in check-job
ekcs.openstack at gmail.com
Wed Jul 19 22:07:39 UTC 2017
On 7/19/17, 1:11 PM, "Clark Boylan" <cboylan at sapwetik.org> wrote:
>On Tue, Jul 18, 2017, at 12:47 PM, Eric K wrote:
>> Hi all, looking for some hints/tips. Thanks so much in advance.
>> My local python3 devstack setup  succeeds, but in check-job a
>> configured devstack setup  fails for not installing congress client.
>> [ERROR] /opt/stack/new/devstack/inc/python:401 The following
>> were not installed correct: python-congressclient
>> It seems that the devstack setup in check-job never attempted to install
>> congress client. Comparing the log  in my local run to the log in
>> check-job , all these steps in my local log are absent from the
>> check-job log:
>> Cloning into '/opt/stack/python-congressclient'?
>You won't see this logged by devstack because devstack-gate does all of
>the git repo setup beforehand to ensure that the correct git refs are
>> Check python version for : /opt/stack/python-congressclient
>> Automatically using 3.5 version to install
>> /opt/stack/python-congressclient based on classifiers
>> Installing collected packages: python-congressclient
>> Running setup.py develop for python-congressclient
>> Successfully installed python-congressclient
>>  Check-job config:
>>  Local devstack local.conf:
>>  Check-job devstack log:
>>  Local devstack log:
>My best guess of what is happening here is that python-congressclient is
>being installed to python2 from source so then when devstack checks if
>python-congressclient is installed properly against python3 it fails.
>You'll want to make sure that whatever is installing
>python-congressclient is doing so against the appropriate python.
Thanks a lot Clark!
Now pursuing the guess that install was done in wrong python version.
I was actually looking at the wrong log. Here is the correct one.
In this log, I see it successfully installing congress client here:
| Installing collected packages: python-congressclient
| Running setup.py develop for python-congressclient
| Successfully installed python-congressclient
| + ./stack.sh:main:941 : use_library_from_git python-openstackclient
| + inc/python:use_library_from_git:378 : local enabled=1
| + inc/python:use_library_from_git:379 : [[ python-congressclient =
| + inc/python:use_library_from_git:379 : [[ ,python-congressclient, =~
| + inc/python:use_library_from_git:380 : return 1
>From then on there is nothing noteworthy re: congress client until it says
the client is not installed correctly:
| + inc/python:check_libs_from_git:395 : lib_installed_from_git
| + inc/python:check_libs_from_git:401 : die 401 'The following
LIBS_FROM_GIT were not installed correct: python-congressclient’
Is there a way to tell from these logs whether the install is being done
in python2 or python3? From this line in the log it seems to be doing the
| Automatically using 3.5 version to install
/opt/stack/new/python-congressclient based on classifiers
>OpenStack Development Mailing List (not for usage questions)
>Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
More information about the OpenStack-dev