Fix for OSD activation

We have a rare situation when after 'osd prepare' command marked osd
as active but actually it is not up. This patch activate OSD after each
time it is being prepared.

Change-Id: Ic0e60ed196f9b8f876fe002f171d27878bac55a0
Closes-Bug: 1573133
This commit is contained in:
Oleksiy Molchanov 2016-05-18 15:12:58 +03:00
parent 5b0c5702c3
commit 08e0381fd0
2 changed files with 1 additions and 4 deletions

View File

@ -31,10 +31,9 @@ define ceph::osds::osd () {
tries => 3,
logoutput => true,
timeout => 0,
onlyif => "ceph-disk list | fgrep -q -e '${data_device_name} ceph data, prepared'",
}
Exec <| title == 'ceph-deploy gatherkeys' |> ->
Exec["ceph-deploy osd prepare ${deploy_device_name}"] ->
Exec["ceph-deploy osd prepare ${deploy_device_name}"] ~>
Exec["ceph-deploy osd activate ${deploy_device_name}"]
}

View File

@ -24,7 +24,6 @@ describe 'ceph::osds::osd', :type => :define do
'tries' => 3,
'logoutput' => true,
'timeout' => 0,
'onlyif' => "ceph-disk list | fgrep -q -e '/dev/svv ceph data, prepared'",
)
}
end
@ -47,7 +46,6 @@ describe 'ceph::osds::osd', :type => :define do
'tries' => 3,
'logoutput' => true,
'timeout' => 0,
'onlyif' => "ceph-disk list | fgrep -q -e '/dev/sdd ceph data, prepared'",
)
}
end