mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-22 13:00:19 +00:00
e2e: add --yes-i-really-mean-it for pool creation
in recent ceph version .nfs pool creation is failing, as we are sure about creating the pools in the e2e tests, tring to create the pool with required extra agruments to make it successful. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
03cf97c9ff
commit
e76e2f88b1
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user