Exception raised: 'ClientManager' object has no attribute 'auth'

Bug #1687032 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Steve Baker

Bug Description

When promoting TripleO CI to a repo from April 28th, it fails to deploy the overcloud:

2017-04-28 12:17:35.584537 | tripleo.sh -- Deploy command arguments: --libvirt-type=qemu -t 80 -e /usr/share/openstack-tripleo-heat-templates/environments/debug.yaml -e /opt/stack/new/tripleo-ci/test-environments/enable-tls.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/tls-endpoints-public-ip.yaml -e /opt/stack/new/tripleo-ci/test-environments/inject-trust-anchor-hiera.yaml --ceph-storage-scale 1 -e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml -e /opt/stack/new/tripleo-ci/test-environments/worker-config.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/low-memory-usage.yaml --templates --validation-warnings-fatal
2017-04-28 12:17:35.584592 | #################
2017-04-28 12:17:38.245239 | Exception raised: 'ClientManager' object has no attribute 'auth'

http://logs.openstack.org/15/359215/94/check-tripleo/gate-tripleo-ci-centos-7-ovb-nonha/38a2082/console.html#_2017-04-28_12_17_38_245239

Tags: alert ci
Revision history for this message
Emilien Macchi (emilienm) wrote :
Revision history for this message
Emilien Macchi (emilienm) wrote :
Revision history for this message
Emilien Macchi (emilienm) wrote :

trying a revert just to confirm that this is the patch that broke us: https://review.openstack.org/#/c/461069/

In the meantime, I'm adding more debug in tripleo logs to see the full trace:
https://review.openstack.org/#/c/457037/

Revision history for this message
Emilien Macchi (emilienm) wrote :
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

I think I've found the issue, see my comment in the osc_lib revert:
https://review.openstack.org/#/c/461069/1/osc_lib/shell.py

I'll follow up with a tripleoclient workaround

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

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

Changed in tripleo:
assignee: nobody → Steve Baker (steve-stevebaker)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/461336
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=2cdbee82e99f1a22fecce2b9f8ef42c23122ef43
Submitter: Jenkins
Branch: master

commit 2cdbee82e99f1a22fecce2b9f8ef42c23122ef43
Author: Steve Baker <email address hidden>
Date: Mon May 1 14:52:05 2017 +1200

    Defer calls to tripleoclient.object_store

    With a recent osc-lib[1] change it is no longer possible to make
    auth-requiring calls in the command __init__.

    This change defers calls to tripleoclient.object_store so that it is
    made when auth is properly setup.

    [1] I72ae6154268bdf26be6054c0fef6a4c67c71119c
    Closes-Bug: #1687032

    Change-Id: If640da00d9b8d49ff935209e3b31dcf0f327ad63

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
Emilien Macchi (emilienm) wrote :

re-opening it. Bug is still there.

Changed in tripleo:
status: Fix Released → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

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

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

Reviewed: https://review.openstack.org/461507
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=c2460f45af7557191c897f1b487e7fe55d5cede7
Submitter: Jenkins
Branch: master

commit c2460f45af7557191c897f1b487e7fe55d5cede7
Author: Steve Baker <email address hidden>
Date: Tue May 2 08:49:13 2017 +1200

    Defer setup of all clients until take_action()

    This change replaces all of the DeployOvercloud __init__ method with a
    _setup_clients method that is called from take_action.

    Hopefully this defers auth long enough for the new osc-lib behaviour,
    and the recommendation from dtroyer[1] that command __init__ methods
    shouldn't be used for this kind of setup.

    [1] https://review.openstack.org/#/c/461069/1/osc_lib/shell.py
    Change-Id: If21d97c09d7c5081306f0005a34eef8dbca4c458
    Closes-Bug: #1687032

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 7.1.0

This issue was fixed in the openstack/python-tripleoclient 7.1.0 release.

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.