API doesn't fail on Down Service for manage/get_manageable volumes/snapshots

Bug #1605109 reported by Gorka Eguileor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Gorka Eguileor

Bug Description

Existing code will fail at API level if a service is disabled and we try to manage/get_manageable volumes/snapshots on that service, but it won't fail at API level if the service is down, and the message will wait in the message queue until the service is up again, which is misleading.

We should fail at API level when the service is down.

Gorka Eguileor (gorka)
Changed in cinder:
assignee: nobody → Gorka Eguileor (gorka)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

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

Reviewed: https://review.openstack.org/345245
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=889947c622245e143b369a908c5dcbd7c3371b1f
Submitter: Jenkins
Branch: master

commit 889947c622245e143b369a908c5dcbd7c3371b1f
Author: Gorka Eguileor <email address hidden>
Date: Thu Jul 21 10:11:30 2016 +0200

    Fail manage operations if service is down

    Existing code will fail at API level if a service is disabled and we try
    to manage/get_manageable volumes/snapshots on that service, but it won't
    fail at API level if the service is down, and the message will wait in
    the message queue until the service is up again, which is misleading.

    This patch changes this behavior and makes manage_existing,
    manage_existing_snapshot, get_manageable_volumes, and
    get_manageable_snapshots, fail at the API if the service is down.

    Change-Id: Ifd56a46fce9ac2fe72a30820c05a5cf9adee229f
    Closes-Bug: #1605109

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/cinder 9.0.0.0b3

This issue was fixed in the openstack/cinder 9.0.0.0b3 development milestone.

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.