Commit 7a366f92 authored by Sofer Athlan-Guyot's avatar Sofer Athlan-Guyot

Make sure pg_num is updated before pgp_num.

We need to order the change because pgp makes a check on the pg
number.

Closes-Bug: #1730457

Change-Id: I2983de1448ce4e4bbbfffb970a1d0f082854d879
parent 9fbdb8c9
......@@ -89,7 +89,7 @@ ceph osd pool set ${name} pgp_num ${pgp_num}",
unless => "/bin/true # comment to satisfy puppet syntax requirements
set -ex
test $(ceph osd pool get ${name} pgp_num | sed 's/.*:\s*//g') -ge ${pgp_num}",
require => Exec["create-${name}"],
require => [Exec["create-${name}"], Exec["set-${name}-pg_num"]],
timeout => $exec_timeout,
}
}
......
......@@ -45,7 +45,7 @@ describe 'ceph::pool' do
)
is_expected.to contain_exec('set-volumes-pgp_num').with(
'command' => "/bin/true # comment to satisfy puppet syntax requirements\nset -ex\nceph osd pool set volumes pgp_num 4"
)
).that_requires('Exec[set-volumes-pg_num]')
is_expected.to contain_exec('set-volumes-size').with(
'command' => "/bin/true # comment to satisfy puppet syntax requirements\nset -ex\nceph osd pool set volumes size 2"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment