Attribute error exception in failover_host on VolumeDriverException

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

Bug Description

If a driver raised VolumeDriverException during failover_host then the service will remain in "failing-over" replication status and we would see an AttributeError exception in the logs.

That is because we were trying to set the "status" field in a service, and that field doesn't exist.

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/397359

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/397359
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=4fb420c136fb853587b37b73676b9ecf3c9f08d7
Submitter: Jenkins
Branch: master

commit 4fb420c136fb853587b37b73676b9ecf3c9f08d7
Author: Gorka Eguileor <email address hidden>
Date: Mon Nov 7 12:16:01 2016 +0100

    Fix status after a VolumeDriverException

    If a driver raised VolumeDriverException during failover_host then the
    service would remain in "failing-over" replication status and we would
    see an AttributeError exception in the logs.

    That is because we were trying to set the "status" field in a service,
    and that field doesn't exist.

    This patch fixes this by setting the replication_status field to error
    instead and by disabling the service.

    We had no failover_host manager tests, and this patch doesn't try to add
    all the tests that we should have, it just adds the tests pertinent for
    this patch to avoid regressions and test this specific functionality.
    Missing tests should be added in another patch.

    Closes-Bug: #1641716
    Change-Id: I374a8a187b93da5f946f0243c841ba0b54273401

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 10.0.0.0b3

This issue was fixed in the openstack/cinder 10.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.