Delete consistency group failed

Bug #1366205 reported by Xing Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Xing Yang

Bug Description

In recent testing, delete CG failed because it compares host@backend with host@backend#pool (in delete_consistencygroup in volume/manager.py). So extract_host needs to be called to fix this problem.

Another issue is about deleting a CG with no host. This will throw exception when extract_host(group['host']) is called in delete_consistencygroup in volume/rpcapi.py. The solution is to check the host field in consistencygroup/api.py and delete it from db there.

Tags: cg
Xing Yang (xing-yang)
Changed in cinder:
assignee: nobody → Xing Yang (xing-yang)
status: New → In Progress
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/119493

Xing Yang (xing-yang)
Changed in cinder:
importance: Undecided → High
Jay Bryant (jsbryant)
Changed in cinder:
milestone: none → juno-rc1
tags: added: cg
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/119493
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=764c5ec749821d36bb0215dc6002d3caea95d3b1
Submitter: Jenkins
Branch: master

commit 764c5ec749821d36bb0215dc6002d3caea95d3b1
Author: Xing Yang <email address hidden>
Date: Fri Sep 5 17:48:00 2014 -0400

    Delete consistency group failed

    Delete CG failed because it compares host@backend with host@backend#pool
    (in delete_consistencygroup in volume/manager.py). The fix is to call
    extract_host before doing the comparison.

    Another issue is about deleting a CG with no host. This will throw exception
    when extract_host(group['host']) is called in delete_consistencygroup in
    volume/rpcapi.py. The solution is to check the host field in consistencygroup/
    api.py and delete it from db there.

    Change-Id: Ife28a4f91bd8a4e123c74dac9748ee31cc7b7306
    Closes-Bug: #1366205

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