e2e: improve the debug logs for rbd-nbd

Ceph’s logging levels operate on a scale of 1 to 20, where 1 is terse
and 20 is verbose.

Format:
debug-{subsystem} = {log-level}

Setting `rbd` loglevel to 20 at our e2e tests.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2021-08-16 15:49:25 +05:30 committed by mergify[bot]
parent 7da796dfc1
commit 18f4a51a15

View File

@ -410,7 +410,10 @@ var _ = Describe("RBD", func() {
f,
defaultSCName,
nil,
map[string]string{"mounter": "rbd-nbd"},
map[string]string{
"mounter": "rbd-nbd",
"mapOptions": "debug-rbd=20",
},
deletePolicy)
if err != nil {
e2elog.Failf("failed to create storageclass with error %v", err)
@ -447,7 +450,10 @@ var _ = Describe("RBD", func() {
f,
defaultSCName,
nil,
map[string]string{"mounter": "rbd-nbd"},
map[string]string{
"mounter": "rbd-nbd",
"mapOptions": "debug-rbd=20",
},
deletePolicy)
if err != nil {
e2elog.Failf("failed to create storageclass with error %v", err)
@ -489,7 +495,10 @@ var _ = Describe("RBD", func() {
f,
defaultSCName,
nil,
map[string]string{"mounter": "rbd-nbd"},
map[string]string{
"mounter": "rbd-nbd",
"mapOptions": "debug-rbd=20",
},
deletePolicy)
if err != nil {
e2elog.Failf("failed to create storageclass with error %v", err)
@ -640,7 +649,11 @@ var _ = Describe("RBD", func() {
f,
defaultSCName,
nil,
map[string]string{"mounter": "rbd-nbd", "encrypted": "true"},
map[string]string{
"mounter": "rbd-nbd",
"mapOptions": "debug-rbd=20",
"encrypted": "true",
},
deletePolicy)
if err != nil {
e2elog.Failf("failed to create storageclass with error %v", err)
@ -993,7 +1006,11 @@ var _ = Describe("RBD", func() {
f,
defaultSCName,
nil,
map[string]string{"imageFeatures": "layering,journaling,exclusive-lock", "mounter": "rbd-nbd"},
map[string]string{
"imageFeatures": "layering,journaling,exclusive-lock",
"mounter": "rbd-nbd",
"mapOptions": "debug-rbd=20",
},
deletePolicy)
if err != nil {
e2elog.Failf("failed to create storageclass with error %v", err)