← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1629158] [NEW] Set migration status to 'error' on live-migration failure

 

Public bug reported:

https://review.openstack.org/353851
Dear bug triager. This bug was created since a commit was marked with DOCIMPACT.
Your project "openstack/nova" is set up so that we directly report the documentation bugs against it. If this needs changing, the docimpact-group option needs to be added for the project. You can ask the OpenStack infra team (#openstack-infra on freenode) for help if you need to.

commit 8825efa3b263f1334aa78c786b01c9dfdd3ad726
Author: Rajesh Tailor <rajesh.tailor@xxxxxxxxxxx>
Date:   Thu Jul 2 03:22:01 2015 -0700

    Set migration status to 'error' on live-migration failure
    
    (A) In resize, confirm-resize and revert-resize operation, migration status
    is marked as 'error' in case of failure for respective operation.
    
    Migration object support is added in live-migration operation, which mark
    migration status to 'failed' if live-migration operation fails in-between.
    
    To make live-migration consistent with resize, confirm-resize and revert-
    resize operation, it needs to mark migration status to 'error' instead of
    'failed' in case of failure.
    
    (B) Apart from consistency, proposed change fixes issue (similar to [1])
    which might occur on live-migration failure as follows:
    If live-migration fails (which sets migration status to 'failed') after
    copying instance files from source to dest node and then user request for
    instance deletion. In that case, delete api will only remove instance
    files from instance.host and not from other host (which could be either
    source or dest node but not instance.host). Since instance is already
    deleted, instance files will remain on other host (not instance.host).
    
    Set migration status to 'error' on live-migration failure, so that
    periodic task _cleanup_incomplete_migrations [2] will remove orphaned
    instance files from compute nodes after instance deletion in above case.
    
    [1] https://bugs.launchpad.net/nova/+bug/1392527
    [2] https://review.openstack.org/#/c/219299/
    
    DocImpact: On live-migration failure, set migration status to 'error'
    instead of 'failed'.
    
    Change-Id: I7a0c5a32349b0d3604802d22e83a3c2dab4b1370
    Closes-Bug: 1470420
    (cherry picked from commit d61e15818c1d108275b3286a6665fa3e6540e7e7)

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: doc nova

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1629158

Title:
      Set migration status to 'error' on live-migration failure

Status in OpenStack Compute (nova):
  New

Bug description:
  https://review.openstack.org/353851
  Dear bug triager. This bug was created since a commit was marked with DOCIMPACT.
  Your project "openstack/nova" is set up so that we directly report the documentation bugs against it. If this needs changing, the docimpact-group option needs to be added for the project. You can ask the OpenStack infra team (#openstack-infra on freenode) for help if you need to.

  commit 8825efa3b263f1334aa78c786b01c9dfdd3ad726
  Author: Rajesh Tailor <rajesh.tailor@xxxxxxxxxxx>
  Date:   Thu Jul 2 03:22:01 2015 -0700

      Set migration status to 'error' on live-migration failure
      
      (A) In resize, confirm-resize and revert-resize operation, migration status
      is marked as 'error' in case of failure for respective operation.
      
      Migration object support is added in live-migration operation, which mark
      migration status to 'failed' if live-migration operation fails in-between.
      
      To make live-migration consistent with resize, confirm-resize and revert-
      resize operation, it needs to mark migration status to 'error' instead of
      'failed' in case of failure.
      
      (B) Apart from consistency, proposed change fixes issue (similar to [1])
      which might occur on live-migration failure as follows:
      If live-migration fails (which sets migration status to 'failed') after
      copying instance files from source to dest node and then user request for
      instance deletion. In that case, delete api will only remove instance
      files from instance.host and not from other host (which could be either
      source or dest node but not instance.host). Since instance is already
      deleted, instance files will remain on other host (not instance.host).
      
      Set migration status to 'error' on live-migration failure, so that
      periodic task _cleanup_incomplete_migrations [2] will remove orphaned
      instance files from compute nodes after instance deletion in above case.
      
      [1] https://bugs.launchpad.net/nova/+bug/1392527
      [2] https://review.openstack.org/#/c/219299/
      
      DocImpact: On live-migration failure, set migration status to 'error'
      instead of 'failed'.
      
      Change-Id: I7a0c5a32349b0d3604802d22e83a3c2dab4b1370
      Closes-Bug: 1470420
      (cherry picked from commit d61e15818c1d108275b3286a6665fa3e6540e7e7)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1629158/+subscriptions


Follow ups