Bug #1867

VM migration to the same host is allowed, but it will break the Running VMs counter

Added by Carlos Martín over 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:04/05/2013
Priority:NormalDue date:
Assignee:Carlos Martín% Done:

0%

Category:Core & System
Target version:Release 4.0
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.0

Description

$ onehost list
  ID NAME            CLUSTER   RVM      ALLOCATED_CPU      ALLOCATED_MEM STAT  
   0 localhost       -           1      10 / 200 (5%)   128M / 3.6G (3%) on    
   1 host01          -           0       0 / 200 (0%)     0K / 3.6G (0%) on    
$ onevm list
    ID USER     GROUP    NAME            STAT UCPU    UMEM HOST             TIME
     5 oneadmin oneadmin ttylinux-5      runn   69    128M localhost    0d 00h00
$ onevm migrate --live 5 0
$ onehost list
  ID NAME            CLUSTER   RVM      ALLOCATED_CPU      ALLOCATED_MEM STAT  
   0 localhost       -           0       0 / 200 (0%)     0K / 3.6G (0%) on    
   1 host01          -           0       0 / 200 (0%)     0K / 3.6G (0%) on    
$ onevm list
    ID USER     GROUP    NAME            STAT UCPU    UMEM HOST             TIME
     5 oneadmin oneadmin ttylinux-5      runn   31    128M localhost    0d 00h01

From oned.log:

Fri Apr  5 16:39:37 2013 [VMM][D]: Message received: LOG E 5 migrate: Command "virsh --connect qemu:///system migrate --live one-5 qemu+ssh://localhost/system" failed: error: Requested operation is not valid: domain is already active as 'one-5'

Associated revisions

Revision 7a4e3a4b
Added by Carlos Martín about 8 years ago

Bug #1867: Disable migration to the same host

Revision 983d949f
Added by Carlos Martín about 8 years ago

Bug #1867: Disable migration to the same host

(cherry picked from commit 7a4e3a4be07882f909a44e50a06cb4f7b3cfed4b)

Conflicts:
src/rm/RequestManagerVirtualMachine.cc

History

#1 Updated by Ruben S. Montero about 8 years ago

  • Assignee set to Carlos Martín
  • Target version set to Release 4.0

#2 Updated by Carlos Martín about 8 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF