conditional for creating glance-swift user too strict

Bug #1276029 reported by Justin Hopper
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
New
Undecided
Unassigned
Trove Integration
New
Undecided
Unassigned
devstack
In Progress
Undecided
Tong Li

Bug Description

a new user glance-swift was added to the keystone_data.sh. However, it is added only if s-proxy is enabled. Trove declares swift as "swift". the "is_service_enabled" function offered a more flexible way of performing this check. I changed the checks in keystone_data.sh to use this function instead.

Revision history for this message
Sushil Kumar (sushil-kumar2) wrote :

badly affected with the change in devstack for uploading the images .....

Revision history for this message
Thomas Leaman (thomas-leaman) wrote :

Folks looking to get devstack up and running can replace

`enable_service swift`

with

`enable_service s-proxy
enable_service s-object
enable_service s-container
enable_service s-account`

to work around this problem.

Revision history for this message
gordon chung (chungg) wrote :

workaround worked for me.

Changed in devstack:
status: New → Confirmed
Revision history for this message
Tong Li (litong01) wrote :

Actually this work around does not really work. The problem is that it avoided using swift for glance. So glance won't use swift as
its store, it will use file store. The right fix should be in files/keystone_data.sh to change this line:

    if [[ "$ENABLED_SERVICES" =~ "s-proxy" ]]; then

to this:

    if [[ "$ENABLED_SERVICES" =~ "swift" ]]; then

This will make sure that the user glance-swift will be created, everything will work as it should.

The work around will not have glance using swift, not good.

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

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

Changed in devstack:
assignee: nobody → Tong Li (litong01)
status: Confirmed → In Progress
Revision history for this message
gordon chung (chungg) wrote :

this seems to be a dup of bug #1279384. we should probably close one of them.

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

I have marked this one as duplicate because the proposed change is obsolete, it rely on the old way to manage keystone data.

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.