Don't enable all stores by default

Bug #1255556 reported by Flavio Percoco
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Flavio Percoco

Bug Description

Currently glance "tries" to load all stores even though the requirements are not meant. If a store cannot be loaded, it'll be disabled.

Although this is harmless, it is not user-friendly and creates some confusion when reading logs. Instead of trying to load and failing, glance should enable 2 stores by default - filesystem and http - and let the others be enabled manually by the user, which is what GridFS does.

TL;DR: The proposal is to remove all stores but file and http from here[0]

[0] https://git.openstack.org/cgit/openstack/glance/tree/glance/store/__init__.py#n39

Changed in glance:
assignee: nobody → Flavio Percoco (flaper87)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Changed in glance:
status: New → In Progress
Revision history for this message
Sean Dague (sdague) wrote :

This really should be fixed in glance, and honestly just make it so that stores aren't printing scary messages by default

Changed in glance:
importance: Undecided → High
Revision history for this message
Sean Dague (sdague) wrote :

Raising this issue to high because this ends up being a big scary issue in the glance logs all the time. And I think just some control over the way loading happened would clean up the glance logs a lot.

Revision history for this message
Flavio Percoco (flaper87) wrote :

Agreed and that's how it'll be done. Pls, see the Fix proposed for this bug (comment #1). We need the devstack patch anyway, I replied to your comment in the review.

Changed in glance:
milestone: none → icehouse-2
Changed in glance:
milestone: icehouse-2 → icehouse-3
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-3 → icehouse-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/59150
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=1f6381a73f5c99f1f731d6c4f9defb91bd2d042d
Submitter: Jenkins
Branch: master

commit 1f6381a73f5c99f1f731d6c4f9defb91bd2d042d
Author: Flavio Percoco <email address hidden>
Date: Thu Nov 28 16:17:13 2013 +0100

    Don't enable all stores by default

    Glance currently enables all stores by default. This patch changes that
    by removing all stores that require manual configuration and leaving
    those that work right out of the box.

    Current behavior causes a lot of confusion to users since most of those
    stores print errors when they're not configured correctly. All extra
    stores should be enabled explicitly by users.

    This fix makes tests use http locations. All other locations besides the
    default ones should be tested in their own test suites.

    DocImpact
    Closes-bug: #1255556
    Change-Id: I82073352641d3eb2ab3d6e9a6b64afc99a30dcc7

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-rc1 → 2014.1
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.