Keystone endpoints default to v2 in Newton

Bug #1695933 reported by Amy Marrich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Packstack
New
Undecided
Unassigned

Bug Description

Even with answers.txt configured for Keystone v3:

# Identity service API version string. ['v2.0', 'v3']
CONFIG_KEYSTONE_API_VERSION=v3

Endpoints are created as v2:

openstack endpoint list --service keystone
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------+
| 302ce541b95848ee9f9887c74a0f2f13 | RegionOne | keystone | identity | True | admin | http://XX.XX.XX.XX:35357/v2.0 |
| 7550772dab594953a05275f8a810eb14 | RegionOne | keystone | identity | True | public | http://XX.XX.XX.XX:5000/v2.0 |
| 947ca345c4e84206bc0f3894ebe86283 | RegionOne | keystone | identity | True | internal | http://XX.XX.XX.XX:5000/v2.0 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------------+

keystonerc files and local_settings files are set for Keystone v3.
keystonerc_admin
unset OS_SERVICE_TOKEN
    export OS_USERNAME=admin
    export OS_PASSWORD=openstack
    export OS_AUTH_URL=http://XX.XX.XX.XX:5000/v3
    export PS1='[\u@\h \W(keystone_admin)]\$ '

export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3

local_settings
OPENSTACK_API_VERSIONS = {
  'identity': 3,

}

packstack version - openstack-packstack-9.0.2-1.el7.noarch

relevant commits:
https://github.com/openstack/packstack/commit/3a7e88c80d0c8935b0eb964567e774fc6ba370c2
https://github.com/openstack/packstack/blob/stable/newton/packstack/puppet/modules/packstack/manifests/keystone.pp#L74-L75

Revision history for this message
Amy Marrich (amy-marrich) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to packstack (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/471791

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

Change abandoned by Javier Peña (<email address hidden>) on branch: master
Review: https://review.openstack.org/471062
Reason: I'm abandoning the review on master and just keeping the one for stable/newton [1]. Since we need to have a keystone v3 endpoint for the Nova Placement API to work, this doesn't make much sense on master. I'll check the options to remove keystone v2 support completely in Pike/Queens.

[1] https://review.openstack.org/471791

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to packstack (stable/newton)

Reviewed: https://review.openstack.org/471791
Committed: https://git.openstack.org/cgit/openstack/packstack/commit/?id=4a7f8d80beb6dbeb6c8bb1cc60143f613b5ac5cd
Submitter: Jenkins
Branch: stable/newton

commit 4a7f8d80beb6dbeb6c8bb1cc60143f613b5ac5cd
Author: Javier Pena <email address hidden>
Date: Mon Jun 5 19:06:04 2017 +0200

    Set Keystone endpoint version according to answer file

    Previously, we were hardcoding the keystone endpoint version in the
    catalog (v2.0). Let's use the version provided in the answer file instead.

    Change-Id: Ic36bab6ee0cb0105703f556d5933b16962e6bfeb
    Closes-Bug: #1695933

tags: added: in-stable-newton
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.