Fix the problem of osd initialization failed

When deploying osd, if the user does not use the extra block
partition, the kolla will automatically partition the disk and then
clean up the data on the disk partition. Sometimes the disk partition
will not be updated, there will be an error not finding the partition.

This commit fixes the problem.

Change-Id: I14708f38614dcb75268c2f460ae3d921748c2d10
Closes-bug: #1824787
This commit is contained in:
wangwei 2019-04-15 19:13:47 +09:00
parent 32693b8338
commit ddab09fdd8
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
sgdisk --zap-all -- "${OSD_BS_DEV}"
sgdisk --new=1:0:+100M --mbrtogpt -- "${OSD_BS_DEV}"
sgdisk --largest-new=2 --mbrtogpt -- "${OSD_BS_DEV}"
partprobe || true
sgdisk --zap-all -- "${OSD_BS_DEV}"2
fi