Glance on the overcloud with Swift backend is broken

Bug #1532352 reported by Ben Nemec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-glance
Fix Released
Critical
Ben Nemec
tripleo
Fix Released
Critical
Ben Nemec

Bug Description

If you try to add an image to glance on a deployed overcloud with the swift backend (the default), it will fail due to a configuration error. You will see the following in the glance api logs:

2016-01-08 21:41:38.755 2778 ERROR glance_store._drivers.swift.store [-] A value for swift_store_auth_address is required.
2016-01-08 21:41:38.756 2778 WARNING glance_store.driver [-] Failed to configure store correctly: A value for swift_store_auth_address is required. Disabling add method.

This is because the value for swift_store_config_file is set in the [DEFAULT] section instead of the [glance_store] section like it should be. Will post a patch to the puppet module shortly.

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

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

Changed in puppet-glance:
assignee: nobody → Ben Nemec (bnemec)
status: New → In Progress
Changed in puppet-glance:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-glance (master)

Reviewed: https://review.openstack.org/265470
Committed: https://git.openstack.org/cgit/openstack/puppet-glance/commit/?id=c324788ff680f1020b960be95c31a09eab8d18e0
Submitter: Jenkins
Branch: master

commit c324788ff680f1020b960be95c31a09eab8d18e0
Author: Ben Nemec <email address hidden>
Date: Fri Jan 8 23:07:58 2016 +0000

    Fix Swift store configuration

    The swift_store_config_file option is being set in the DEFAULT
    group instead of the glance_store group where it is actually
    defined in Glance. This causes configuration of the Swift store
    backend to fail because the configuration is not found by the
    check here:
    https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/swift/utils.py#L66

    Moving the option to glance_store makes the Swift backend work again.

    Change-Id: I3af198e5015df1d626c4a5aaccb3b4e5781f56b8
    Closes-Bug: 1532352

Changed in puppet-glance:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-glance (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/265838

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-glance (stable/liberty)

Reviewed: https://review.openstack.org/265838
Committed: https://git.openstack.org/cgit/openstack/puppet-glance/commit/?id=66abdfea280a68edae92c291e194df542b5f64da
Submitter: Jenkins
Branch: stable/liberty

commit 66abdfea280a68edae92c291e194df542b5f64da
Author: Ben Nemec <email address hidden>
Date: Fri Jan 8 23:07:58 2016 +0000

    Fix Swift store configuration

    The swift_store_config_file option is being set in the DEFAULT
    group instead of the glance_store group where it is actually
    defined in Glance. This causes configuration of the Swift store
    backend to fail because the configuration is not found by the
    check here:
    https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/swift/utils.py#L66

    Moving the option to glance_store makes the Swift backend work again.

    Change-Id: I3af198e5015df1d626c4a5aaccb3b4e5781f56b8
    Closes-Bug: 1532352
    (cherry picked from commit c324788ff680f1020b960be95c31a09eab8d18e0)

tags: added: in-stable-liberty
Revision history for this message
Ben Nemec (bnemec) wrote :

Marking the tripleo bug fix released because the puppet module has been fixed. Thanks for the quick turnaround!

Changed in tripleo:
status: Triaged → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/puppet-glance 7.1.0

This issue was fixed in the openstack/puppet-glance 7.1.0 release.

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.