keystone client doesn't work with default openrc

Bug #1316376 reported by Dmitry Borodaenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Low
Sergii Golovatiuk
5.0.x
Won't Fix
Low
Sergii Golovatiuk

Bug Description

root@node-1:~# . openrc
root@node-1:~# keystone token-get
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
'NoneType' object has no attribute 'has_service_catalog'

root@node-1:~# export SERVICE_TOKEN=
root@node-1:~# export SERVICE_ENDPOINT=
root@node-1:~# keystone token-get
+-----------+----------------------------------+
| Property | Value |
+-----------+----------------------------------+
| expires | 2014-05-07T01:09:52Z |
| id | ******************************** |
| tenant_id | ******************************** |
| user_id | ******************************** |
+-----------+----------------------------------+

All other clients rely on OS_USERNAME and OS_PASSWORD and don't even try SERVICE_TOKEN, that's the only reason they work.

Tags: library
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

And looks like it is still not fixed https://bugs.launchpad.net/keystone/+bug/1002917

Changed in fuel:
status: New → Triaged
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

I understood it wrong. Looks like we should fix from the opposite side instead, i.e. use either SERVICE_* or OS_* in openrc and consider keystone client is ok :)

Revision history for this message
Sergii Golovatiuk (sgolovatiuk) wrote :

There is a patch in Upstream Puppet Openstack manifest

https://github.com/stackforge/puppet-openstack/blob/master/templates/openrc.erb
https://github.com/stackforge/puppet-openstack/blob/master/manifests/auth_file.pp

which generates .openrc without OS_SERVICE_TOKEN if they are not specified.

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Sergii Golovatiuk (sgolovatiuk)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to fuel-library (master)

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

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

Reviewed: https://review.openstack.org/92363
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=df49809aaa791aec2571f98dd8e62e0fb808102a
Submitter: Jenkins
Branch: master

commit df49809aaa791aec2571f98dd8e62e0fb808102a
Author: Sergii Golovatiuk <email address hidden>
Date: Tue May 6 13:01:30 2014 +0000

    Update auth_file to Upstream

    Fixes broken openrc, Some refactoring for different cluster types

    Change-Id: Ieba68c76ece5baed65cdcf1d5d508684ed224280
    Closes-Bug: 1316376

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #278
"build_id": "2014-06-30_00-31-14",
"mirantis": "yes",
"build_number": "278",
"ostf_sha": "7171951202a22d8dfe9b3b76c9824001e2485630",
"nailgun_sha": "bcb3f0795acbd21f4882103c735a64051492cf7f",
"production": "docker",
"api": "1.0",
"fuelmain_sha": "74ee2ba18e29f81917227767bbf77dfc4c9ffc1d",
"astute_sha": "d1d54d57b3ce1b2f975cbc16c354f1ae7b3391ee",
"release": "5.1",
"fuellib_sha": "c6adc9f28e722f3845da49e45f1e1729d6f6b1a0"

root@node-9:~# keystone token-get
+-----------+----------------------------------+
| Property | Value |
+-----------+----------------------------------+
| expires | 2014-06-30T14:56:11Z |
| id | 5700cc50fc82483184b68648b9ee1a24 |
| tenant_id | 5488ab13d19b4675bc66955bda08ee18 |
| user_id | cbd38846e9df4c4bb19cbe45b3e253d7 |
+-----------+----------------------------------+

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/5.0)

Fix proposed to branch: stable/5.0
Review: https://review.openstack.org/113910

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/5.0)

Change abandoned by Sergii Golovatiuk (<email address hidden>) on branch: stable/5.0
Review: https://review.openstack.org/113910

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.