mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
e2e: set rbd-nbd mounter tests cephLogStrategy to preserve
This is to preserve the rbd-nbd logs post unmap, so that the CI can dump the available logs from logdir. Fixes: #2451 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
parent
90ecd2d7e8
commit
a01b9821ee
32
e2e/rbd.go
32
e2e/rbd.go
@ -60,7 +60,8 @@ var (
|
|||||||
snapshotPath = rbdExamplePath + "snapshot.yaml"
|
snapshotPath = rbdExamplePath + "snapshot.yaml"
|
||||||
defaultCloneCount = 10
|
defaultCloneCount = 10
|
||||||
|
|
||||||
nbdMapOptions = "debug-rbd=20"
|
nbdMapOptions = "debug-rbd=20"
|
||||||
|
e2eDefaultCephLogStrategy = "preserve"
|
||||||
)
|
)
|
||||||
|
|
||||||
func deployRBDPlugin() {
|
func deployRBDPlugin() {
|
||||||
@ -477,8 +478,9 @@ var _ = Describe("RBD", func() {
|
|||||||
defaultSCName,
|
defaultSCName,
|
||||||
nil,
|
nil,
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"mounter": "rbd-nbd",
|
"mounter": "rbd-nbd",
|
||||||
"mapOptions": nbdMapOptions,
|
"mapOptions": nbdMapOptions,
|
||||||
|
"cephLogStrategy": e2eDefaultCephLogStrategy,
|
||||||
},
|
},
|
||||||
deletePolicy)
|
deletePolicy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -513,8 +515,9 @@ var _ = Describe("RBD", func() {
|
|||||||
defaultSCName,
|
defaultSCName,
|
||||||
nil,
|
nil,
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"mounter": "rbd-nbd",
|
"mounter": "rbd-nbd",
|
||||||
"mapOptions": nbdMapOptions,
|
"mapOptions": nbdMapOptions,
|
||||||
|
"cephLogStrategy": e2eDefaultCephLogStrategy,
|
||||||
},
|
},
|
||||||
deletePolicy)
|
deletePolicy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -558,8 +561,9 @@ var _ = Describe("RBD", func() {
|
|||||||
defaultSCName,
|
defaultSCName,
|
||||||
nil,
|
nil,
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"mounter": "rbd-nbd",
|
"mounter": "rbd-nbd",
|
||||||
"mapOptions": nbdMapOptions,
|
"mapOptions": nbdMapOptions,
|
||||||
|
"cephLogStrategy": e2eDefaultCephLogStrategy,
|
||||||
},
|
},
|
||||||
deletePolicy)
|
deletePolicy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -712,9 +716,10 @@ var _ = Describe("RBD", func() {
|
|||||||
defaultSCName,
|
defaultSCName,
|
||||||
nil,
|
nil,
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"mounter": "rbd-nbd",
|
"mounter": "rbd-nbd",
|
||||||
"mapOptions": nbdMapOptions,
|
"mapOptions": nbdMapOptions,
|
||||||
"encrypted": "true",
|
"cephLogStrategy": e2eDefaultCephLogStrategy,
|
||||||
|
"encrypted": "true",
|
||||||
},
|
},
|
||||||
deletePolicy)
|
deletePolicy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -1069,9 +1074,10 @@ var _ = Describe("RBD", func() {
|
|||||||
defaultSCName,
|
defaultSCName,
|
||||||
nil,
|
nil,
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"imageFeatures": "layering,journaling,exclusive-lock",
|
"imageFeatures": "layering,journaling,exclusive-lock",
|
||||||
"mounter": "rbd-nbd",
|
"mounter": "rbd-nbd",
|
||||||
"mapOptions": nbdMapOptions,
|
"mapOptions": nbdMapOptions,
|
||||||
|
"cephLogStrategy": e2eDefaultCephLogStrategy,
|
||||||
},
|
},
|
||||||
deletePolicy)
|
deletePolicy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user