diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/test/cli-integration/rbd/gwcli_delete.t | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/cli-integration/rbd/gwcli_delete.t')
-rw-r--r-- | src/test/cli-integration/rbd/gwcli_delete.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/cli-integration/rbd/gwcli_delete.t b/src/test/cli-integration/rbd/gwcli_delete.t new file mode 100644 index 000000000..5aef9d0e9 --- /dev/null +++ b/src/test/cli-integration/rbd/gwcli_delete.t @@ -0,0 +1,27 @@ +Dismiss the "could not load preferences file .gwcli/prefs.bin" warning +====================================================================== + $ sudo gwcli ls >/dev/null 2>&1 + +Delete the host +=============== + $ sudo gwcli iscsi-targets/iqn.2003-01.com.redhat.iscsi-gw:ceph-gw/hosts delete client_iqn=iqn.1994-05.com.redhat:client + $ sudo gwcli ls iscsi-targets/ | grep 'o- hosts' | awk -F'[' '{print $2}' + Auth: ACL_ENABLED, Hosts: 0] + +Delete the iscsi-targets disk +============================= + $ sudo gwcli iscsi-targets/iqn.2003-01.com.redhat.iscsi-gw:ceph-gw/disks/ delete disk=datapool/block0 + $ sudo gwcli ls iscsi-targets/ | grep 'o- disks' | awk -F'[' '{print $2}' + Disks: 0] + +Delete the target IQN +===================== + $ sudo gwcli iscsi-targets/ delete target_iqn=iqn.2003-01.com.redhat.iscsi-gw:ceph-gw + $ sudo gwcli ls iscsi-targets/ | grep 'o- iscsi-targets' | awk -F'[' '{print $2}' + DiscoveryAuth: None, Targets: 0] + +Delete the disks +================ + $ sudo gwcli disks/ delete image_id=datapool/block0 + $ sudo gwcli ls disks/ | grep 'o- disks' | awk -F'[' '{print $2}' + 0.00Y, Disks: 0] |