Bug 1470732
Summary: | nova assumes block migration is needed when using ceph volumes for instances and live migration fails | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Eduard Barrera <ebarrera> |
Component: | python-novaclient | Assignee: | Eoghan Glynn <eglynn> |
Status: | CLOSED NOTABUG | QA Contact: | Joe H. Rahme <jhakimra> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 9.0 (Mitaka) | CC: | awaugama, berrange, dasmith, eglynn, jruzicka, kchamart, mschuppe, mwitt, pablo.iranzo, sbauza, sferdjao, sgordon, srevivo, vromanso |
Target Milestone: | --- | Keywords: | ZStream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-07-17 12:46:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eduard Barrera
2017-07-13 14:24:03 UTC
This isn't related to the openstackclient bug [1] because the command 'nova live-migration [instance-name] [target-hostname]' is novaclient, not openstackclient. It looks like in OSP 9 (Mitaka), a new REST API microversion 2.25 [2] added the ability for an "auto" value for --block-migrate and novaclient with microversion 2.25 defaults --block-migrate to "auto". In the previous microversion 2.24, the --block-migrate option defaulted to False. The error message is saying that if you make a request with REST API microversion 2.25 and with --block-migrate "auto" it will be rejected until all computes are upgraded to OSP 9 (Mitaka). To make it work, you either need to issue the command passing False for block live migration: 'nova live-migration --block-migrate False [instance-name] [target-hostname]' or specify the earlier REST API microversion 2.24 when you issue the command: 'nova --os-compute-api-version 2.24 nova live-migration [instance-name] [target-hostname]' [1] https://bugs.launchpad.net/python-openstackclient/+bug/1518059 [2] https://docs.openstack.org/nova/latest/api_microversion_history.html#maximum-in-mitaka [3] https://github.com/openstack/python-novaclient/blob/mitaka-eol/novaclient/v2/shell.py#L3808-L3821 (In reply to melanie witt from comment #3) > 'nova --os-compute-api-version 2.24 nova live-migration [instance-name] > [target-hostname]' Sorry, there's accidentally an extra 'nova' in the above command. It should be: 'nova --os-compute-api-version 2.24 live-migration [instance-name] [target-hostname]' (In reply to melanie witt from comment #3) > 'nova live-migration --block-migrate False [instance-name] > [target-hostname]' And apparently the above won't work because the --block-migrate option is a 'store_true' argument and there's not a way to switch it to False. So to amend my original comment, to make live migration work in this situation, you must specify the earlier REST API microversion 2.24 when you issue the command: 'nova --os-compute-api-version 2.24 live-migration [instance-name] [target-hostname]' We have documented this in https://access.redhat.com/solutions/3115911 . Closing this BZ. |