[ocata] novaclient .client.Client parameters have changed and auth fails as a result

Bug #1671619 reported by Jason Hobbs
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Tempest Charm (Deprecated)
Fix Released
High
Jason Hobbs

Bug Description

I get this error when running the run-tempest action. This only happens when testing against ocata. This is from cs:~openstack-charmers-next/xenial/tempest

Here is the full log:

Tags: oil oil-2.0 uosci
Revision history for this message
Jason Hobbs (jason-hobbs) wrote :
Ryan Beisner (1chb1n)
summary: - TypeError: __init__() got an unexpected keyword argument 'charm_instance
+ [ocata] TypeError: __init__() got an unexpected keyword argument
+ 'charm_instance
tags: added: uosci
Revision history for this message
Jason Hobbs (jason-hobbs) wrote : Re: [ocata] TypeError: __init__() got an unexpected keyword argument 'charm_instance

Here's a bigger log of the failure:

http://paste.ubuntu.com/24309134/

I think this is caused by changes in python-novaclient in ocata.

https://bugs.launchpad.net/python-novaclient/+bug/1654183

If you look at the release notes (https://docs.openstack.org/releasenotes/python-novaclient/ocata.html), the positional args accepted for novaclient.client.Client are:

version, username, api_key, project_id, auth_url

This is different than previous versions, where project_id was actually tenant/project name, not the tenant/project id.

Changed in charm-tempest:
assignee: nobody → Jason Hobbs (jason-hobbs)
status: New → In Progress
Revision history for this message
Jason Hobbs (jason-hobbs) wrote :

Review for a fix for this: https://review.openstack.org/#/c/452978/

Revision history for this message
Jason Hobbs (jason-hobbs) wrote :
summary: - [ocata] TypeError: __init__() got an unexpected keyword argument
- 'charm_instance
+ [ocata] novaclient .client.Client parameters have changed and auth fails
+ as a result
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-tempest (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-tempest (master)

Change abandoned by Jason Hobbs (<email address hidden>) on branch: master
Review: https://review.openstack.org/452989

Ryan Beisner (1chb1n)
Changed in charm-tempest:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-tempest (master)

Reviewed: https://review.openstack.org/452981
Committed: https://git.openstack.org/cgit/openstack/charm-tempest/commit/?id=12364a109b8eba25507cccf3f496a0fd1773d72a
Submitter: Jenkins
Branch: master

commit 12364a109b8eba25507cccf3f496a0fd1773d72a
Author: Jason Hobbs <email address hidden>
Date: Mon Apr 3 22:23:46 2017 +0000

    Fix novaclient creation for ocata and later.

    novaclient.client.Client's positional args changed in 7.0.0 (ocata),
    breaking this charm. This commit changes the client to use
    keystoneauth1 based session authentication to work around that issue.

    Also enable ocata tests.

    Closes-Bug: #1671619

    Change-Id: I5d24c5351609ef57a3f47233cfbdaf8e4b7d8bc6

Changed in charm-tempest:
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-tempest:
milestone: none → 17.08
James Page (james-page)
Changed in charm-tempest:
status: Fix Committed → Fix Released
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.