Skip to content

Commit

Permalink
e2e: add --yes-i-really-mean-it for pool creation
Browse files Browse the repository at this point in the history
in recent ceph version .nfs pool creation
is failing, as we are sure about creating the
pools in the e2e tests, try to create the pool
with required extra agruments to make it success.

Signed-off-by: Madhu Rajanna <[email protected]>
  • Loading branch information
Madhu-1 committed Aug 15, 2023
1 parent e27fd7e commit 90dad1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/rbd_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,13 +827,13 @@ func createPool(f *framework.Framework, name string) error {
pgCount = 128
size = 1
)
// ceph osd pool create replicapool
cmd := fmt.Sprintf("ceph osd pool create %s %d", name, pgCount)
// ceph osd pool create name
cmd := fmt.Sprintf("ceph osd pool create %s %d --yes-i-really-mean-it", name, pgCount)
_, _, err := execCommandInToolBoxPod(f, cmd, rookNamespace)
if err != nil {
return err
}
// ceph osd pool set replicapool size 1
// ceph osd pool set name size 1
cmd = fmt.Sprintf("ceph osd pool set %s size %d --yes-i-really-mean-it", name, size)
_, _, err = execCommandInToolBoxPod(f, cmd, rookNamespace)

Expand Down

0 comments on commit 90dad1f

Please sign in to comment.