IceHouse support - puppet keystone API v2.0 usage issue

Bug #1304263 reported by Bogdan Dobrelya
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Bogdan Dobrelya

Bug Description

{"build_id": "2014-04-04_15-40-33", "mirantis": "yes", "build_number": "234", "nailgun_sha": "212ab310db2b91ad06b3f81eac435a252c2cb1c2", "ostf_sha": "17f2fe6e56452f8e2f01a385be4c4b87bf3698a8", "fuelmain_sha": "96d23f737be22e0b9c138f0748e1621df83f9b8e", "astute_sha": "183fe05cd59a5ce6d154fa263a5a8bf5f27db0ec", "release": "5.0", "fuellib_sha": "9cc637c4f95676928063185ad91b3bed4250c1fe"}

To reproduce:
1) Deploy HA with 1 controller node (since it is supported now to replace simple mode):
* Centos, Neutron+GRE, tagged all
* Savanna, Murano, Ceilometer
* Roles: Controller, Cinder LVM

Issue
Looks like in IceHouse we cannot use anymore our obsolete keystone module for puppet because of the following:

grep -r "returned 2: usage: keystone" /var/log/remote/node-1.test.domain.local

And errors will be like this (<*> means for all operations/Openstack services involved for token <foo> and Keytone API v2.0 endpoint <IP>):

Error: /Stage[main]/<*>::Keystone::Auth/Keystone_<*>[<*>]: Could not evaluate: Execution of '/usr/bin/keystone --token <foo> --endpoint http://<IP>:35357/v2.0/ service-list' returned 2: usage: keystone [--version] [--timeout <seconds>]
(...skipped...) keystone: error: argument <subcommand>: invalid choice: '<foo>' (choose from 'bash_completion', 'help', 'tenant-get', 'user-list', 'discover', 'ec2-credentials-create', 'user-role-add', 'user-delete', 'tenant-delete', 'endpoint-delete', 'role-create', 'endpoint-create', 'password-update', 'service-create', 'tenant-update', 'user-create', 'endpoint-list', 'ec2-credentials-delete', 'user-role-remove', 'role-get', 'tenant-list', 'ec2-credentials-list', 'user-get', 'bash-completion', 'catalog', 'user-role-list', 'role-delete', 'user-update', 'endpoint-get', 'ec2-credentials-get', 'bootstrap', 'role-list', 'user-password-update', 'tenant-create', 'token-get', 'service-delete', 'service-get', 'service-list')

Tags: icehouse
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Changed in fuel:
status: New → Confirmed
tags: added: icehouse
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Reproduced on #261, Centos simple+Neutron GRE tagged: 1 controller 1 compute

Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

workaround :
1. mysql -e "ALTER TABLE keystone.migrate_version CONVERT TO CHARACTER SET 'utf8';"
2. keystone-manage db_sync
3. /usr/bin/keystone --os-token <token> --os-endpoint http://<ip>.3:35357/v2.0/ tenant-list

reps is empty(as expected after sync db) but commands works

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Bogdan Dobrelya (bogdando)
status: Confirmed → In Progress
Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

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

commit c2c067796dadbce656560e2de4527db40cb1e45e
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Apr 10 17:01:59 2014 +0300

    Fix deprecated endpoint/token usage for keystone provider

    Closes-bug:#1304263

    Change-Id: I8e356aef74f983d57a794c113b0c8af06f2ea1e4
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

verified on 112 iso

summary: - IceHouse MOS support - puppet keystone API v2.0 usage issue
+ IceHouse support - puppet keystone API v2.0 usage issue
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.