-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
The help message says that if no destination host is provided, the scheduler will choose a host. However, I get an error:
❯ osc --version
osc 0.13.5
❯ osce compute server live-migrate -h
Live-Migrate Server (os-migrateLive Action) (microversion = 2.68)
Usage: osc compute server live-migrate268 [OPTIONS] --block-migration <BLOCK_MIGRATION> --host <HOST> <ID>
Options:
-h, --help Print help (see more with '--help')
-V, --version Print version
Path parameters:
<ID> id parameter for /v2.1/servers/{id}/action API
Body parameters:
--block-migration <BLOCK_MIGRATION>
Migrates local disks by using block migration. Set to `auto` which means nova will detect whether source and destination hosts on shared storage. if they are on shared storage, the live-migration won’t be block migration. Otherwise the block migration will be executed. Set to `True`, means the request will fail when the source or destination host uses shared storage. Set to `False` means the request will fail when the source and destination hosts are not on the shared storage [possible values: true, false]
--host <HOST>
The host to which to migrate the server. If this parameter is `None`, the scheduler chooses a host
..
❯ osc compute server live-migrate ee0da048-2e08-459e-91aa-90a1c78456fa
error: the following required arguments were not provided:
--block-migration <BLOCK_MIGRATION>
--host <HOST>
Usage: osc compute server live-migrate268 --block-migration <BLOCK_MIGRATION> --host <HOST> --os-project-name <OS_PROJECT_NAME> --os-region-name <OS_REGION_NAME> <ID>
For more information, try '--help'.
❯ osce compute server live-migrate --block-migration false ee0da048-2e08-459e-91aa-90a1c78456fa
error: the following required arguments were not provided:
--host <HOST>
Usage: osc compute server live-migrate268 --block-migration <BLOCK_MIGRATION> --host <HOST> --os-project-name <OS_PROJECT_NAME> --os-region-name <OS_REGION_NAME> <ID>
For more information, try '--help'.Maybe the following is the reason?
- In the sdk the host is optional:
pub(crate) host: Option<Cow<'a, str>>, - But in the cli not, I think:
host: String,
However I am not sure why this is.
In a similar vein, shouldn't the block-migration be set to auto?
Metadata
Metadata
Assignees
Labels
No labels