Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9596

migrateVirtualMachine API does not respect affinity group assignment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.8.0
    • Fix Version/s: None
    • Component/s: API
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None
    • Environment:
      RHEL 6.7 + XenServer 6.5

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ypzhang Yiping Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: