yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #19284
[Bug 1359092] [NEW] During snapshot create using nova CLI, unable to use optional arguments
Public bug reported:
I am creating a VM snapshot using nova CLI -
Set of operations and error are as below -
1. nova cli help ===>
[raies@localhost cli_services]$ nova help image-create
usage: nova image-create [--show] [--poll] <server> <name>
Create a new image by taking a snapshot of a running server.
Positional arguments:
<server> Name or ID of server.
<name> Name of snapshot.
Optional arguments:
--show Print image info.
--poll Report the snapshot progress and poll until image creation is
complete.
[raies@localhost cli_services]$
2.
[raies@localhost cli_services]$ nova list
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
| 238eb266-5837-4544-a626-287cb3ca98c3 | test-server | ACTIVE | - | Running | public=172.24.4.3 |
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
3.
when used optional argument (--poll) -
[raies@localhost cli_services]$ nova --poll image-create 238eb266-5837-4544-a626-287cb3ca98c3 test-snapshot
usage: nova [--version] [--debug] [--os-cache] [--timings]
[--timeout <seconds>] [--os-auth-token OS_AUTH_TOKEN]
[--os-username <auth-user-name>] [--os-user-id <auth-user-id>]
[--os-password <auth-password>]
[--os-tenant-name <auth-tenant-name>]
[--os-tenant-id <auth-tenant-id>] [--os-auth-url <auth-url>]
[--os-region-name <region-name>] [--os-auth-system <auth-system>]
[--service-type <service-type>] [--service-name <service-name>]
[--volume-service-name <volume-service-name>]
[--endpoint-type <endpoint-type>]
[--os-compute-api-version <compute-api-ver>]
[--os-cacert <ca-certificate>] [--insecure]
[--bypass-url <bypass-url>]
<subcommand> ...
error: unrecognized arguments: --poll
4.
when used optional argument --show -
[raies@localhost cli_services]$ nova --show image-create 238eb266-5837-4544-a626-287cb3ca98c3 test-snapshot
usage: nova [--version] [--debug] [--os-cache] [--timings]
[--timeout <seconds>] [--os-auth-token OS_AUTH_TOKEN]
[--os-username <auth-user-name>] [--os-user-id <auth-user-id>]
[--os-password <auth-password>]
[--os-tenant-name <auth-tenant-name>]
[--os-tenant-id <auth-tenant-id>] [--os-auth-url <auth-url>]
[--os-region-name <region-name>] [--os-auth-system <auth-system>]
[--service-type <service-type>] [--service-name <service-name>]
[--volume-service-name <volume-service-name>]
[--endpoint-type <endpoint-type>]
[--os-compute-api-version <compute-api-ver>]
[--os-cacert <ca-certificate>] [--insecure]
[--bypass-url <bypass-url>]
<subcommand> ...
error: unrecognized arguments: --show
Try 'nova help ' for more information.
5.
When tried with no optional argument -
[raies@localhost cli_services]$ nova image-create
238eb266-5837-4544-a626-287cb3ca98c3 test-snapshot
[raies@localhost cli_services]$
[raies@localhost cli_services]$
[raies@localhost cli_services]$
[raies@localhost cli_services]$ nova image-list
+--------------------------------------+---------------------------------+--------+--------------------------------------+
| ID | Name | Status | Server |
+--------------------------------------+---------------------------------+--------+--------------------------------------+
| 5f785211-590c-48aa-b64c-c9a6a9b60aad | Fedora-x86_64-20-20140618-sda | ACTIVE | |
| 4c5838f1-fce5-422d-a411-401d79f6250a | cirros-0.3.2-x86_64-uec | ACTIVE | |
| b17aa5bf-eed2-4792-8ecb-5e161d0d3aa2 | cirros-0.3.2-x86_64-uec-kernel | ACTIVE | |
| 238742ef-7739-4e0b-9f58-d609f9994ff5 | cirros-0.3.2-x86_64-uec-ramdisk | ACTIVE | |
| c0b1cff7-9251-4b91-a121-2d3c69d8a0fc | test-snapshot | SAVING | 238eb266-5837-4544-a626-287cb3ca98c3 |
+--------------------------------------+---------------------------------+--------+--------------------------------------+
i.e successful
So the problem is we cannot create snapshot if we are using optional arguments with nova image-create CLI.
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1359092
Title:
During snapshot create using nova CLI, unable to use optional
arguments
Status in OpenStack Compute (Nova):
New
Bug description:
I am creating a VM snapshot using nova CLI -
Set of operations and error are as below -
1. nova cli help ===>
[raies@localhost cli_services]$ nova help image-create
usage: nova image-create [--show] [--poll] <server> <name>
Create a new image by taking a snapshot of a running server.
Positional arguments:
<server> Name or ID of server.
<name> Name of snapshot.
Optional arguments:
--show Print image info.
--poll Report the snapshot progress and poll until image creation is
complete.
[raies@localhost cli_services]$
2.
[raies@localhost cli_services]$ nova list
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
| 238eb266-5837-4544-a626-287cb3ca98c3 | test-server | ACTIVE | - | Running | public=172.24.4.3 |
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
3.
when used optional argument (--poll) -
[raies@localhost cli_services]$ nova --poll image-create 238eb266-5837-4544-a626-287cb3ca98c3 test-snapshot
usage: nova [--version] [--debug] [--os-cache] [--timings]
[--timeout <seconds>] [--os-auth-token OS_AUTH_TOKEN]
[--os-username <auth-user-name>] [--os-user-id <auth-user-id>]
[--os-password <auth-password>]
[--os-tenant-name <auth-tenant-name>]
[--os-tenant-id <auth-tenant-id>] [--os-auth-url <auth-url>]
[--os-region-name <region-name>] [--os-auth-system <auth-system>]
[--service-type <service-type>] [--service-name <service-name>]
[--volume-service-name <volume-service-name>]
[--endpoint-type <endpoint-type>]
[--os-compute-api-version <compute-api-ver>]
[--os-cacert <ca-certificate>] [--insecure]
[--bypass-url <bypass-url>]
<subcommand> ...
error: unrecognized arguments: --poll
4.
when used optional argument --show -
[raies@localhost cli_services]$ nova --show image-create 238eb266-5837-4544-a626-287cb3ca98c3 test-snapshot
usage: nova [--version] [--debug] [--os-cache] [--timings]
[--timeout <seconds>] [--os-auth-token OS_AUTH_TOKEN]
[--os-username <auth-user-name>] [--os-user-id <auth-user-id>]
[--os-password <auth-password>]
[--os-tenant-name <auth-tenant-name>]
[--os-tenant-id <auth-tenant-id>] [--os-auth-url <auth-url>]
[--os-region-name <region-name>] [--os-auth-system <auth-system>]
[--service-type <service-type>] [--service-name <service-name>]
[--volume-service-name <volume-service-name>]
[--endpoint-type <endpoint-type>]
[--os-compute-api-version <compute-api-ver>]
[--os-cacert <ca-certificate>] [--insecure]
[--bypass-url <bypass-url>]
<subcommand> ...
error: unrecognized arguments: --show
Try 'nova help ' for more information.
5.
When tried with no optional argument -
[raies@localhost cli_services]$ nova image-create
238eb266-5837-4544-a626-287cb3ca98c3 test-snapshot
[raies@localhost cli_services]$
[raies@localhost cli_services]$
[raies@localhost cli_services]$
[raies@localhost cli_services]$ nova image-list
+--------------------------------------+---------------------------------+--------+--------------------------------------+
| ID | Name | Status | Server |
+--------------------------------------+---------------------------------+--------+--------------------------------------+
| 5f785211-590c-48aa-b64c-c9a6a9b60aad | Fedora-x86_64-20-20140618-sda | ACTIVE | |
| 4c5838f1-fce5-422d-a411-401d79f6250a | cirros-0.3.2-x86_64-uec | ACTIVE | |
| b17aa5bf-eed2-4792-8ecb-5e161d0d3aa2 | cirros-0.3.2-x86_64-uec-kernel | ACTIVE | |
| 238742ef-7739-4e0b-9f58-d609f9994ff5 | cirros-0.3.2-x86_64-uec-ramdisk | ACTIVE | |
| c0b1cff7-9251-4b91-a121-2d3c69d8a0fc | test-snapshot | SAVING | 238eb266-5837-4544-a626-287cb3ca98c3 |
+--------------------------------------+---------------------------------+--------+--------------------------------------+
i.e successful
So the problem is we cannot create snapshot if we are using optional arguments with nova image-create CLI.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1359092/+subscriptions
Follow ups
References