openstack cinder client help
good afternoon, i am trying to use the openstackclient ( https://docs.openstack.org/newton/user-guide/common/cli-install-openstack-co...), but it seems than I cannot use it to see cinder volume snapshot, even the doc say it is possible ( https://docs.openstack.org/python-openstackclient/latest/cli/decoder.html#ci... ) [image: image.png] it says " (my-virt-env) user@ostack:~$ openstack snapshot list openstack: 'snapshot list' is not an openstack command. See 'openstack --help'. Did you mean one of these? endpoint add project endpoint create endpoint delete endpoint group add project endpoint group create ... " what am i missing? thank you.
On Wed, Dec 13, 2023 at 6:10 AM garcetto <garcetto@gmail.com> wrote:
good afternoon, i am trying to use the openstackclient ( https://docs.openstack.org/newton/user-guide/common/cli-install-openstack-co...), but it seems than I cannot use it to see cinder volume snapshot, even the doc say it is possible
( https://docs.openstack.org/python-openstackclient/latest/cli/decoder.html#ci... ) [image: image.png]
it says " (my-virt-env) user@ostack:~$ openstack snapshot list openstack: 'snapshot list' is not an openstack command. See 'openstack --help'. Did you mean one of these? endpoint add project endpoint create endpoint delete endpoint group add project endpoint group create ... " what am i missing?
All of the cinder (block storage) commands are grouped under the "volume" command group, so you want this: $ openstack volume snapshot list Alan
thank you.
Hi Garcetto, As Alan said, we need to use the "volume " prefix before the snapshot commands. I can see it's missing is all snapshot commands so I've proposed a patch[1] to fix it. [1] https://review.opendev.org/c/openstack/python-openstackclient/+/903594 Thanks Rajat Dhasmana On Wed, Dec 13, 2023 at 7:52 PM Alan Bishop <abishop@redhat.com> wrote:
On Wed, Dec 13, 2023 at 6:10 AM garcetto <garcetto@gmail.com> wrote:
good afternoon, i am trying to use the openstackclient ( https://docs.openstack.org/newton/user-guide/common/cli-install-openstack-co...), but it seems than I cannot use it to see cinder volume snapshot, even the doc say it is possible
( https://docs.openstack.org/python-openstackclient/latest/cli/decoder.html#ci... ) [image: image.png]
it says " (my-virt-env) user@ostack:~$ openstack snapshot list openstack: 'snapshot list' is not an openstack command. See 'openstack --help'. Did you mean one of these? endpoint add project endpoint create endpoint delete endpoint group add project endpoint group create ... " what am i missing?
All of the cinder (block storage) commands are grouped under the "volume" command group, so you want this:
$ openstack volume snapshot list
Alan
thank you.
participants (3)
-
Alan Bishop
-
garcetto
-
Rajat Dhasmana