OS_AUTH_URL in overcloudrc points to keystone API v2.0

Bug #1727454 reported by Alfredo Moralejo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Dougal Matthews

Bug Description

Periodic OVB jobs in master are failing in "overcloud-deploy : Run post-deploy script" task wit error [1]:

2017-10-25 17:32:52 | (http://192.168.24.8:5000/v2.0/tokens): The resource could not be found. (HTTP 404) (Request-ID: req-bd730f45-0618-4976-b294-1bbc8353b9d0)

The problem seems to be that overcloudrc file is still using keystone api v2.0 for OS_AUTH_URL [2]while v2.0 has been removed from keystone.

[1] https://logs.rdoproject.org/openstack-periodic-4hr/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-master/3042841/undercloud/home/jenkins/overcloud_deploy_post.log.txt.gz
[2] https://logs.rdoproject.org/openstack-periodic-4hr/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-master/3042841/undercloud/home/jenkins/overcloudrc.gz

tags: added: alert ci promotion-blocker
Changed in tripleo:
milestone: none → queens-2
status: New → Triaged
Changed in tripleo:
importance: Undecided → Critical
tags: added: tech-debt
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-quickstart-extras (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/515161

Changed in tripleo:
assignee: nobody → Dougal Matthews (d0ugal)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/515161
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=a4c0b13dc90c3ad09483963d05c74498def65258
Submitter: Zuul
Branch: master

commit a4c0b13dc90c3ad09483963d05c74498def65258
Author: Emilien Macchi <email address hidden>
Date: Wed Oct 25 11:15:40 2017 -0700

    Provide a quick workaround for 1727454

    Tripleo-common provides an overcloudrc and an overcloudrc.v3 by default.
    Problem is that Keystone v2 API was removed in Queens, so we can't rely
    on overcloudrc file anymore.

    Until we fix that in tripleo-common, let's source the overcloudrc.v3
    after Pike, so we can promote to Queens.

    This is technical debt that will be cleaned asap.

    Change-Id: If795dfe6953dd7a68bbf075f476f8687c06420a1
    Related-Bug: #1727454

Revision history for this message
Dougal Matthews (d0ugal) wrote :

tripleo-common gets the KeystoneURL from Heat with https://github.com/openstack/tripleo-common/blob/master/tripleo_common/utils/overcloudrc.py#L48.

We have use a nasty hack for some time to make the /v3 version.

https://github.com/openstack/tripleo-common/blob/master/tripleo_common/utils/overcloudrc.py#L115

So I think this needs to be fixed in t-h-t? I am trying to track down where this value comes from.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-quickstart-extras (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/515390

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart-extras (master)

Change abandoned by Alfredo Moralejo (<email address hidden>) on branch: master
Review: https://review.openstack.org/515390
Reason: in favor of https://review.openstack.org/#/c/515388/

tags: removed: alert
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/515351
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=50a67e1b4b3d337ec02166967d49564c95c94b95
Submitter: Zuul
Branch: master

commit 50a67e1b4b3d337ec02166967d49564c95c94b95
Author: Dougal Matthews <email address hidden>
Date: Thu Oct 26 11:09:35 2017 +0100

    Make KeystoneURL versionless

    Now that Keystone v2 has been removed, we can update this to a versionless
    path. This output is used by tripleo-common to populate the overcloudrc file.

    Closes-Bug: #1727454
    Change-Id: I482f77443ed6255fb9f1b67241dd6260be574e7f

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b2 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.