You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Marc-Aurèle Brothier (JIRA)" <ji...@apache.org> on 2016/11/15 09:16:58 UTC

[jira] [Commented] (CLOUDSTACK-9596) migrateVirtualMachine API does not respect affinity group assignment

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-9596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15666609#comment-15666609 ] 

Marc-Aurèle Brothier commented on CLOUDSTACK-9596:
--------------------------------------------------

I would leave the command as it is, but the 'findHostForMigration' command should return a list of suitable hosts with respect to the anti-affinity groups too, not only the capacity. Then the admin can decide what to do if the returned list is empty (meaning no host could be found to respect the anti-affinity and the capacity). What do you think?

> migrateVirtualMachine API  does not respect affinity group assignment
> ---------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9596
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9596
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.8.0
>         Environment: RHEL 6.7 + XenServer 6.5
>            Reporter: Yiping Zhang
>
> Using  migrateVirtualMachine API, for example using cloudmonkey, one can move two VM instances in the same anti-host affinity group on to the same host.
> There are two possible outcomes for the migration of instances belonging to the same anti-host affinity groups onto the same host:
> 1) ignore affinity group assignment, migration succeeds (current api behavior)
> 2) respect affinity group assignment, migration fails with message that action is  forbidden by affinity group assignment.
> The best solution is to add another parameter to the API call to toggle api's behavior.   For example, if the second behavior is chosen as default, then a parameter "force=true" ( where default value is false for param "force") will force the migration to ignore affinity group assignment



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)