Can you open a jira issue on this?

Simon Weller/ENA
(615) 312-6068

-----Original Message-----
From: Yiping Zhang [[email protected]]
Received: Tuesday, 08 Nov 2016, 8:03PM
To: [email protected] [[email protected]]
Subject: API migrateVirtualMachine does not respect affinity group assignment

Hi,

It seems that the API migrateVirtualMachine does not respect instance’s 
affinity group assignment.  Is this intentional?

To reproduce:

Assigning two VM instances running on different hosts, say v1 running on h1 and 
v2 running on h2, to the same affinity group.  In GUI, it won’t let you migrate 
v1 and v2 to the same host, but if you use cloudmonkey,  you are able to move 
both instances to h1 or h2 with migrateVirtualMachine API call.

IMHO, the API call should return with an error message that the migration is 
prohibited by affinity group assignment. However, if the current behavior is 
desirable in some situations, then a parameter like ignore-affinity-group=true 
should be passed to the API call (or vice versa, depending on which behavior is 
chosen as the default)

Yiping

Reply via email to