Skip to content

VM stopped while Migration with Maintenance Mode (KVM) #3720

@svenvogel

Description

@svenvogel
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Management Server
CLOUDSTACK VERSION
Master but maybe 4.8 upwards
CONFIGURATION
OS / ENVIRONMENT

KVM with QEMU 2.12 and libwirtd 5.0.0, i think other other versions are also affected because not always there is the problem.

SUMMARY
STEPS TO REPRODUCE
  1. Set a Host in Maintenance Mode
  2. VM Migration is started
  3. If a VM cant migrate it will hard stopped

after @andrijapanicsb started a discussion on mailing list "VMs crashing/stopped during live migration?" i opened this issue request to track down the problems.

@ustcweizhou gave some interesting hints to this problem.

i picked up specially your point three. i think its most interesting to track this down.

  1. vm is stopped due to some cloudstack bugs. for example, when we put a
    host to maintenance, the vm will be stopped if (1) no other host is Up in
    same cluster, or (2) vm migration fails and no retry in cloudstack, or (3)
    multiple vms are migrated to same destination at the same time but there is
    no enough memory on the destination.
EXPECTED RESULTS
The expected result should be to stop the maintenance mode but dont switch off the virtual machines
ACTUAL RESULTS

virtual machines will be hard stopped

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions