Remove hardcoded usage of v2 authentication in Barbican actions

Bug #1783316 reported by Jose Castro Leon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Medium
Jose Castro Leon

Bug Description

The v2 authentication has been removed in keystone and the barbican actions are still relying on it to authenticate

---
/mistral/actions/openstack/actions.py
@@ class BarbicanAction(base.OpenStackAction):
         LOG.debug("Barbican action security context: %s", context)

         barbican_endpoint = keystone_utils.get_endpoint_for_project('barbican')
         keystone_endpoint = keystone_utils.get_keystone_endpoint_v2()

         auth = identity.v2.Token(
             auth_url=keystone_endpoint.url,
             tenant_name=context.user_name,

             token=context.auth_token,
             tenant_id=context.project_id
         )

         return self._get_client_class()(
---

Changed in mistral:
assignee: nobody → Jose Castro Leon (jose-castro-leon)
summary: - Remove hardcoded usage of v2 authentication in actions
+ Remove hardcoded usage of v2 authentication in Barbican actions
Dougal Matthews (d0ugal)
Changed in mistral:
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → In Progress
milestone: none → rocky-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/585318
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=36f28dec45dd07691995e939e7d04708c59483f4
Submitter: Zuul
Branch: master

commit 36f28dec45dd07691995e939e7d04708c59483f4
Author: Jose Castro Leon <email address hidden>
Date: Tue Jul 24 13:32:07 2018 +0200

    Remove hardcoded usage of v2 authentication in Barbican actions

    There are still some hardcoded v2 authentication in barbican actions.
    This api has been deprecated and removed, so we can change it to use
    instead v3. It also removes the version number from some helper methods.

    Change-Id: I0390daf841463d11cb7c61653897949989b6e6eb
    Closes-bug: #1783316

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 7.0.0.0b3

This issue was fixed in the openstack/mistral 7.0.0.0b3 development milestone.

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.