ceph-csi/internal/rbd
Prasanna Kumar Kalever 9e55f015de rbd: avoid supplying map options on unmap
Thanks to the random unmap failure on my local machine:

I0901 17:08:37.841890 2617035 cephcmds.go:55] ID: 11 Req-ID:
0001-0024-fed5480a-f00f-417a-a51d-31d8a8144c03-0000000000000003-024983f3-0b47-11ec-8fcb-e671f0b9f58e
an error (exit status 22) occurred while running rbd args: [unmap
rbd-pool/csi-vol-024983f3-0b47-11ec-8fcb-e671f0b9f58e --device-type nbd
--options try-netlink --options reattach-timeout=300 --options
io-timeout=0]

Noticed the map args are also getting passed to/as unmap args, which is not
correct. We have separate things for mapOptions and unmapOptions. This PR
makes sure that the map args are not passed at the time of unmap.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2021-09-06 15:59:30 +00:00
..
clone.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
controllerserver_test.go cleanup: resolve parallel test issue 2021-07-13 11:31:39 +00:00
controllerserver.go cleanup: add checkErrAndUndoReserve() for error check,unreserve omap 2021-09-03 12:20:04 +00:00
driver.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
encryption.go cleanup: move KMS functionality into its own package 2021-08-30 16:31:40 +00:00
errors.go rbd: correct the code comment for ErrFlattenInProgress 2020-10-20 08:59:25 +00:00
identityserver.go internal: reformat long lines in internal/rbd package to 120 chars 2021-06-28 14:43:49 +00:00
mirror.go rbd: add helper function to get local state 2021-08-16 17:38:25 +00:00
nodeserver_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
nodeserver.go cleanup: introduce populateVolOptions(), to fill rbdVol from stage req 2021-09-06 07:49:03 +00:00
rbd_attach.go rbd: avoid supplying map options on unmap 2021-09-06 15:59:30 +00:00
rbd_healer.go util: NewK8sClient() should not panic on non-Kubernetes clusters 2021-09-02 11:22:14 +00:00
rbd_journal.go rbd: check for clusterid mapping in RegenerateJournal() 2021-08-31 14:30:06 +00:00
rbd_util_test.go rbd: move GetMappedID() to util package 2021-08-31 14:30:06 +00:00
rbd_util.go rbd: avoid supplying map options on unmap 2021-09-06 15:59:30 +00:00
replicationcontrollerserver_test.go rbd: consider empty mirroring mode 2021-08-09 11:05:05 +00:00
replicationcontrollerserver.go rbd: use String() method of MirrorImageState in return error 2021-09-03 16:02:53 +00:00
snapshot.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00