Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1481

Allow Nova adminServerApi to auto-select destination host (via Nova scheduler) in Live Migration

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: jclouds-labs-openstack
    • Labels:
      None

      Description

      The current liveMigration function under Nova's adminServerApi doesn't support auto-select of destination host (via Nova scheduler), unlike OpenStack API where we do so by passing a null for the host value:

      curl -g -i -X POST https://{identity-endpoint}/v2.1/servers/{UUID}/action
             -H "Accept: application/json"
             -H "Content-Type: application/json"
             -H "OpenStack-API-Version: compute 2.53"
             -H "User-Agent: python-novaclient"
             -H "X-OpenStack-Nova-API-Version: 2.53"
             -d '{"os-migrateLive": {"block_migration": true, "host": null}}'
             -H "X-Auth-Token: {TOKEN}"
      

       

      Currently the function throws a NPE if we pass null, can this be fixed/updated?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mudblood Somnath Shekhar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: