traceback on xenial-mitaka

Bug #1712849 reported by Chris MacNaughton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Barbican Charm
Fix Released
High
Alex Kavanagh

Bug Description

15:27:05 DEBUG:runner:Traceback (most recent call last):
15:27:05 DEBUG:runner: File "/tmp/bundletester-zZTghO/barbican/tests/gate-basic-xenial-mitaka-keystone-v3", line 9, in <module>
15:27:05 DEBUG:runner: deployment = BarbicanBasicDeployment(series='xenial', keystone_version=3)
15:27:05 DEBUG:runner: File "/tmp/bundletester-zZTghO/barbican/tests/basic_deployment.py", line 42, in __init__
15:27:05 DEBUG:runner: self._initialize_tests()
15:27:05 DEBUG:runner: File "/tmp/bundletester-zZTghO/barbican/tests/basic_deployment.py", line 112, in _initialize_tests
15:27:05 DEBUG:runner: tenant='admin')
15:27:05 DEBUG:runner: File "/var/lib/jenkins/checkout/0/barbican/build/builds/barbican/.tox/func27/local/lib/python2.7/site-packages/charmhelpers/contrib/openstack/amulet/utils.py", line 428, in authenticate_keystone_admin
15:27:05 DEBUG:runner: admin_port=True)
15:27:05 DEBUG:runner: File "/var/lib/jenkins/checkout/0/barbican/build/builds/barbican/.tox/func27/local/lib/python2.7/site-packages/charmhelpers/contrib/openstack/amulet/utils.py", line 383, in authenticate_keystone
15:27:05 DEBUG:runner: client.auth_ref = auth.get_access(sess)
15:27:05 DEBUG:runner: File "/var/lib/jenkins/checkout/0/barbican/build/builds/barbican/.tox/func27/local/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 135, in get_access
15:27:05 DEBUG:runner: self.auth_ref = self.get_auth_ref(session)
15:27:05 DEBUG:runner: File "/var/lib/jenkins/checkout/0/barbican/build/builds/barbican/.tox/func27/local/lib/python2.7/site-packages/keystoneauth1/identity/v2.py", line 65, in get_auth_ref
15:27:05 DEBUG:runner: authenticated=False, log=False)
15:27:05 DEBUG:runner: File "/var/lib/jenkins/checkout/0/barbican/build/builds/barbican/.tox/func27/local/lib/python2.7/site-packages/keystoneauth1/session.py", line 853, in post
15:27:05 DEBUG:runner: return self.request(url, 'POST', **kwargs)
15:27:05 DEBUG:runner: File "/var/lib/jenkins/checkout/0/barbican/build/builds/barbican/.tox/func27/local/lib/python2.7/site-packages/positional/__init__.py", line 108, in inner
15:27:05 DEBUG:runner: return wrapped(*args, **kwargs)
15:27:05 DEBUG:runner: File "/var/lib/jenkins/checkout/0/barbican/build/builds/barbican/.tox/func27/local/lib/python2.7/site-packages/keystoneauth1/session.py", line 742, in request
15:27:05 DEBUG:runner: raise exceptions.from_response(resp, method, url)
15:27:05 DEBUG:runner:keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-cdd8f514-28ea-456c-bc9a-eef69f82ffa0)
15:27:06 DEBUG:runner:Exit Code: 1

Full amulet run: https://pastebin.ubuntu.com/25383342/

Tags: amulet uosci
Changed in charm-barbican:
assignee: nobody → Alex Kavanagh (ajkavanagh)
milestone: none → 17.08
status: New → Triaged
importance: Undecided → High
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

This is for gate-basic-xenial-mitaka-keystone-v3 which explicitly checks the keystone v3 functionality of barbican. And it's been broken by a recent update:

commit ecfd7a64ad57235714e582edfc788473463160a6
Date: Mon Jul 24 14:54:22 2017 -0700

    Update tests to use keystoneauth1

    With keystoneauth1 sessions the service catalog search function,
    url_for takes argument interface, no longer named endpoint_type.
    This change updates tests to use this argument name.

    Change-Id: Iffa1f576c9dc0742c5fa3536424da0427c4bb35b

Will work out how to fix this.

Changed in charm-barbican:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-barbican (master)

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

Ryan Beisner (1chb1n)
tags: added: amulet uosci
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-barbican (master)

Reviewed: https://review.openstack.org/497945
Committed: https://git.openstack.org/cgit/openstack/charm-barbican/commit/?id=f492bb250c9e6c9873152d79775cc648e22aac30
Submitter: Jenkins
Branch: master

commit f492bb250c9e6c9873152d79775cc648e22aac30
Author: Alex Kavanagh <email address hidden>
Date: Fri Aug 25 15:20:44 2017 +0100

    Add back in keystone v3 support for basic_deployment.py

    A recent commit (ecfd7a64ad57235714e582edfc788473463160a6) tidied up the
    keystone authentication in basic_deployment.py across most of the
    charms. Barbican was a bit different in that it has an explicit v3 test
    as it was implemented a bit odly and so needed a v3 test for the main
    barbican software.

    This fix puts back in keystone v3 support for basic_deployment.py

    Change-Id: Ic689914402b7966632530d5d595d64f87f3e95bf
    Closes-Bug: #1712849

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