Sheepdog store accept GET and DELETE request still even failed to configure essential option

Bug #1302658 reported by Zhi Yan Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Zhi Yan Liu

Bug Description

Currently if store raise BadStoreConfiguration exception from configure_add method, the glance will just make this store be readonly instead of fully disable, but for the logic of sheepdog configure_add, it contains all essential initial configurations for the store which are necessary for the store be fully functional, so if any one of they get failed the store should be full block up instead of being readonly accessible.

The related test cases need to be handled as well.

Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :

We'd better do the fix after https://bugs.launchpad.net/glance/+bug/1298698 landing.

Changed in glance:
milestone: juno-1 → juno-2
Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :
Changed in glance:
status: New → In Progress
assignee: nobody → Zhi Yan Liu (lzy-dev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/100181
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=0d4524e53cbed8d218c566a4e9c5313137fb537d
Submitter: Jenkins
Branch: master

commit 0d4524e53cbed8d218c566a4e9c5313137fb537d
Author: Zhi Yan Liu <email address hidden>
Date: Mon Jun 16 16:04:04 2014 +0800

    Changing Sheepdog driver to use correct configuration function

    Currently Sheepdog store driver is using configure_add() to handle
    those essential options, which are not only be used for image 'add'
    handling but also for other key functions e.g. 'get_size', 'get' and
    etc. When store driver raises BadStoreConfiguration exception from
    configure_add(), Glance will just makes this store be readonly instead
    of fully disabled, so the handling for all the essential configurations
    should be implemented in configure(), and then if any option of them get
    failure the store will be fully disabled instead of being readonly
    partially.

    Closes-bug: 1302658

    Change-Id: Idaa96036515f04ee8414f30990ee638855ede2d2
    Signed-off-by: Zhi Yan Liu <email address hidden>

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