xenapi: clean up step decorator fake steps

Bug #1235108 reported by John Garbutt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Sahid Orentino

Bug Description

In migrate_disk_resize_up in VMOps we have a "fake step".

We should just add something to increment the initial count, thats much neater, and stops us having unreached code, etc.

Tags: xenserver
Revision history for this message
guillaume thouvenin (guillaume-thouvenin) wrote :

I take this bug report in order to familiarize myself with the code and with the hope to help fixing it but I don't see any function migrate_disk_resize_up in the current code.

Is this bug up-to-date?

Revision history for this message
Bob Ball (bob-ball) wrote :

Not quite - it seems as though things have been moved / renamed.

The step is in vmops.py and called "fake_step_to_be_executed_by_finish_migration".

Changed in nova:
assignee: nobody → sahid (sahid-ferdjaoui)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: Triaged → In Progress
Revision history for this message
Sahid Orentino (sahid-ferdjaoui) wrote :

I also add in the review a missing test for a successful resize_down.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/63109
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=794027c520935d9a6ba1475aaa128b281b924630
Submitter: Jenkins
Branch: master

commit 794027c520935d9a6ba1475aaa128b281b924630
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Thu Dec 19 13:06:18 2013 +0000

    xenapi: clean up step decorator fake steps

    In vmops.py there are some fake methods to adjust the number
    of steps used for a resize up/down.

     + This patch adds to the method used to create steps a new parameter
       'total_offset' to adjust the offset of total steps.
     + This patch also adds a missing test for a successful resize down.

    Change-Id: I506045442d893e91b03ce33e4aab9930966c8ec2
    Closes-Bug: 1235108

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-3
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.1
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.