Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Fix vmStatus ordering #296

Merged
merged 1 commit into from
Apr 2, 2019
Merged

Conversation

pcbailey
Copy link
Contributor

@pcbailey pcbailey commented Mar 28, 2019

This PR changes the ordering of VM statuses in vmStatus to check importing status before running status to avoid the VM reflecting a status of "Off" when it is actually in "Importing" status.

@coveralls
Copy link

coveralls commented Mar 28, 2019

Pull Request Test Coverage Report for Build 1170

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 87.946%

Totals Coverage Status
Change from base Build 1157: 0.002%
Covered Lines: 2980
Relevant Lines: 3247

💛 - Coveralls

@@ -138,12 +138,12 @@ const isWaitingForVmi = vm => {
};

export const getVmStatus = (vm, launcherPod, importerPods, migration) =>
isBeingMigrated(vm, migration) || // must be precceding isRunning() since vm.status.ready is true for a migrating VM
isBeingMigrated(vm, migration) || // must precede isRunning() since vm.status.ready is true for a migrating VM
isBeingImported(vm, importerPods) || // must precede isRunning() since importing status doesn't rely on running status
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mareklibra can you please double check the order here?

@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 29, 2019
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 31, 2019
@pcbailey pcbailey changed the title Export isBeingImported function & fix vmStatus order Fix vmStatus ordering Mar 31, 2019
@mareklibra mareklibra merged commit 51e2ccd into kubevirt:master Apr 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants