Keystone endpoints sometimes are created with wrong URLS if RadosGW used for objects

Bug #1590700 reported by Rodion Tikunov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
High
Oleksiy Molchanov
7.0.x
Confirmed
High
Oleksiy Molchanov

Bug Description

Keystone endpoints are created with different URLS when swift is deployed using ceph.
"MODULAR: swift/keystone.pp" should not run if Ceph RadosGW used for objects because swift/keystone.pp conflicts with radosgw/keystone.pp.

Steps to reproduce:
1. Create cluster with settings:
Storage Backends
Ceph RBD for volumes (Cinder)
Ceph RadosGW for objects (Swift API)
Ceph RBD for ephemeral volumes (Nova)
Ceph RBD for images (Glance)
Network Neutron with VLAN segmentation
2. Add 1 controller and 1 compute nodes
3. Deploy cluster
4. Go to controller node and run:
source openrc
openstack endpoint show object-store
5. Create new cluster with the same settings (or redeploy the current env)
6. Go to controller node and run:
source openrc
openstack endpoint show object-store

Expected results:
# openstack endpoint show object-store
+--------------+-----------------------------------------+
| Field | Value |
+--------------+-----------------------------------------+
| adminurl | http://192.168.0.2:8080/swift/v1 |
| enabled | True |
| id | 60a1537bbd80406b8dec1632325b1b3b |
| internalurl | http://192.168.0.2:8080/swift/v1 |
| publicurl | https://public.fuel.local:8080/swift/v1 |
| region | RegionOne |
| service_id | 2f8f0a4e3738494bb0f6d65eaad5fe91 |
| service_name | swift |
| service_type | object-store |
+--------------+-----------------------------------------+

Actual result:
Sometimes it will be:
# openstack endpoint show object-store
+--------------+------------------------------------------------------+
| Field | Value |
+--------------+------------------------------------------------------+
| adminurl | http://192.168.0.2:8080/v1/AUTH_%(tenant_id)s |
| enabled | True |
| id | f1915c1f21a54c84a75c74434fcb7f4f |
| internalurl | http://192.168.0.2:8080/v1/AUTH_%(tenant_id)s |
| publicurl | https://public.fuel.local:8080/v1/AUTH_%(tenant_id)s |
| region | RegionOne |
| service_id | 0db671aede4048f4ad81e86c246a332b |
| service_name | swift |
| service_type | object-store |
+--------------+------------------------------------------------------+

Impact:
# swift stat
Account HEAD failed: http://192.168.0.2:8080/v1/AUTH_8e66392ffe4f4b9b95b709d31fba5464 400 Bad Request

VERSION:
7.0 and 8.0

Additional information:
Wrong URLS created when "MODULAR: swift/keystone.pp" runs after "MODULAR: radosgw/keystone.pp".

Changed in fuel:
milestone: none → 8.0-updates
Changed in fuel:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Oleksiy Molchanov (omolchanov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/329076

tags: added: area-library team-bugfix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/7.0)

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/330655

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/379284

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

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/379550

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/7.0)

Reviewed: https://review.openstack.org/379284
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=8e64d190e29b15ed0507b4662046c879bd0c3681
Submitter: Jenkins
Branch: stable/7.0

commit 8e64d190e29b15ed0507b4662046c879bd0c3681
Author: Rodion Tikunov <email address hidden>
Date: Wed Sep 28 18:39:05 2016 +0300

    Fix for all possible storage cases

     * Enable swift only if images and objects ceph are disabled
     * Set S3 endpoint using radosgw task

    Change-Id: Iead5167210c4132badb866afc25d4ef14e27f6b2
    Closes-Bug: #1604879
    Closes-Bug: #1590700
    (cherry picked from commit f1dd09eef838de7093bba9902d7d0bb90fd98d9d)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/8.0)

Reviewed: https://review.openstack.org/379550
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=6c872469529d50ee188c3f35e734a576984f93bf
Submitter: Jenkins
Branch: stable/8.0

commit 6c872469529d50ee188c3f35e734a576984f93bf
Author: Rodion Tikunov <email address hidden>
Date: Wed Sep 28 13:21:21 2016 +0300

    Fix for all possible storage cases

     * Enable swift only if images and objects ceph are disabled
     * Set S3 endpoint using radosgw task

    Change-Id: I8611669217827ccc8aad64b89557783470b3d0b3
    Closes-Bug: #1604879
    Closes-Bug: #1590700
    (cherry picked from commit f1dd09eef838de7093bba9902d7d0bb90fd98d9d)

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

Change abandoned by Tony Breeds (<email address hidden>) on branch: stable/7.0
Review: https://review.openstack.org/330655
Reason: This branch (stable/7.0) is at End Of Life

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

Change abandoned by Andreas Jaeger (<email address hidden>) on branch: stable/8.0
Review: https://review.opendev.org/329076
Reason: This repo is retired now, no further work will get merged.

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.