OSTF fails due to new version of python-novaclient

Bug #1653693 reported by Oleksiy Molchanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Critical
Vladimir Khlyunev

Bug Description

Starting from 28.12

https://product-ci.infra.mirantis.net/view/11.0/job/11.0.test_all/

Dec 27 17:52:02 Installed: 1:python-novaclient-5.0.0-1.el7~mos22.noarch
Dec 28 17:54:20 Installed: 1:python-novaclient-7.0.0-1.el7~mos2.noarch

Tags: area-qa
summary: - OSTF failes due to new version of python-novaclient
+ OSTF fails due to new version of python-novaclient
Revision history for this message
Vladimir Khlyunev (vkhlyunev) wrote :

There is an issue in python-novaclient==7.0.0 package/

I installed 7.0 package on controller and tried to use client manually: http://paste.openstack.org/show/594000/

So there is nothing with OSTF itself

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Vladimir,

Client() expects a project id, not a project name.

Revision history for this message
Vladimir Khlyunev (vkhlyunev) wrote :

@Roman, as I mentioned - 6.0.0 works fine and it uses "project_id" too - https://github.com/openstack/python-novaclient/blob/6.0.0/novaclient/client.py#L836

There is an issue in novaclient somewhere in session initialization. Fast solution is to pin novaclient<7.0 version, good fix - move OSTF to keystone session instead of user-password auth (and pin novaclient>=7.0 after this)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ostf (master)

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

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Vladimir Khlyunev (vkhlyunev)
status: Confirmed → In Progress
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

>>> There is an issue in novaclient somewhere in session initialization. Fast solution is to pin novaclient<7.0 version, good fix - move OSTF to keystone session instead of user-password auth (and pin novaclient>=7.0 after this)

All I'm saying is that your example works if you pass a project id. That being said, I agree that you should be using session instead.

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

Reviewed: https://review.openstack.org/417858
Committed: https://git.openstack.org/cgit/openstack/fuel-ostf/commit/?id=e71059ac4d6546c153b7229d4d7763564c6cdf1f
Submitter: Jenkins
Branch: master

commit e71059ac4d6546c153b7229d4d7763564c6cdf1f
Author: Vladimir Khlyunev <email address hidden>
Date: Mon Jan 9 16:31:37 2017 +0400

    Update Nova client initialization according to 7.0.0 version

    python-novaclient was updated and now newest version contains
    bug in username-password auth. Switching to session-based auth
    will allow to fix it (and also its openstack way to use shared session)

    Change-Id: If48f8f96843023f4f36e737cd818761db9184884
    Closes-bug:1653693

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-ostf 11.0.0.0rc1

This issue was fixed in the openstack/fuel-ostf 11.0.0.0rc1 release candidate.

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.