Merge pull request #3347 from ioito/hotfix/qx-guest-status-sync

fix: 更正stopping状态
This commit is contained in:
yunion-ci-robot
2019-10-24 14:10:09 +08:00
committed by GitHub
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -20,6 +20,7 @@ import (
const (
CloudVMStatusRunning = "running"
CloudVMStatusStopping = "stopping"
CloudVMStatusSuspend = "suspend"
CloudVMStatusStopped = "stopped"
CloudVMStatusChangeFlavor = "change_flavor"
+1 -1
View File
@@ -666,7 +666,7 @@ func (self *SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost(ctx context.
case api.VM_STARTING:
status = cloudprovider.CloudVMStatusStopped
case api.VM_STOPPING:
status = cloudprovider.CloudVMStatusRunning
status = cloudprovider.CloudVMStatusStopping
case api.VM_CHANGE_FLAVOR:
status = cloudprovider.CloudVMStatusChangeFlavor
case api.VM_DEPLOYING:
+1 -1
View File
@@ -514,7 +514,7 @@ func (self *SInstance) GetStatus() string {
case "running":
return api.VM_RUNNING
case "stopping":
return api.VM_START_STOP
return api.VM_STOPPING
case "starting":
return api.VM_STARTING
case "deleting":