Cannot configure multiple Glance stores

Bug #1481460 reported by Mathieu Gagné
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
puppet-glance
Fix Released
High
Nate Potter

Bug Description

You can't have multiple glance stores configured with puppet-glance or you get duplicated default_store glance_api_config resources.

The default_store config should be moved to glance-api and a logic implement here to auto-detect its value:
- If only one store is configured, use that one as default. (keeping default behavior)
- If multiple stores are configured, require the default_store value to be provided.

We should also rename "known_stores" parameter for "stores" to be consistent with the new config name: glance_store/stores.

Changed in puppet-glance:
status: New → Confirmed
importance: Undecided → High
Nate Potter (ntpttr)
Changed in puppet-glance:
assignee: nobody → Nate Potter (ntpttr)
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/242718

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

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

commit 22231b2d667aa62288fb5a77ce704f7a3d0b3dc4
Author: Nate Potter <email address hidden>
Date: Sat Nov 7 04:12:00 2015 +0000

    Implement multiple store configuration

    This patch moves the default_store config option to the glance::api
    class, and makes it possible to configure more than one store while
    supplying a value for the default store to be used. If only one store
    is given for glance_store/stores, the default store is automatically
    set to be the same value. If multiple stores are given and no default
    store is explicitly set, the config will fail and ask the user to
    provide a default store.

    Change-Id: I28a79ae36e673a3537ea16910d338666b65c80f7
    Closes-bug: #1481460
    Co-Authored-By: Alex Schultz <email address hidden>

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

This issue was fixed in the openstack/puppet-glance 9.0.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.