Disk not found causes ceph osd bootstrap to fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Medium
|
Unassigned | ||
Rocky |
Fix Released
|
Medium
|
Unassigned | ||
Stein |
Fix Released
|
Medium
|
Unassigned | ||
Train |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I am deploying a ceph cluster using the following configuration:
```
ceph-node1 mon/mgr/osd disk:sdb/sdc/sdd
ceph-node2 mon/osd disk:sdb/sdc/sdd
ceph-node3 mon/osd disk:sdb/sdc/sdd
```
The command to initialize the disk is as follows:
```
sudo sgdisk --zap-all -- /dev/sdb
sudo sgdisk --zap-all -- /dev/sdc
sudo sgdisk --zap-all -- /dev/sdd
sudo /sbin/parted /dev/sdb -s -- mklabel gpt mkpart KOLLA_CEPH_
sudo /sbin/parted /dev/sdc -s -- mklabel gpt mkpart KOLLA_CEPH_
sudo /sbin/parted /dev/sdd -s -- mklabel gpt mkpart KOLLA_CEPH_
```
But in the deployment, there will be some osd bootstrap failures:
```
"stderr": "+ sudo -E kolla_set_configs\n
INFO:__
INFO:__
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS\n
INFO:__
INFO:__
INFO:__
INFO:__
INFO:__
INFO:__
++ cat /run_command\n
+ CMD='/usr/
+ ARGS=\n
+ [[ ! -n '' ]]\n
+ . kolla_extend_
++ [[ ! -d /var/log/kolla/ceph ]]\n
+++ stat -c %a /var/log/
++ [[ 2755 != \\7\\5\\5 ]]\n
++ chmod 755 /var/log/
++ [[ -n 0 ]]\n
++ CEPH_JOURNAL_
++ CEPH_OSD_
++ CEPH_OSD_
++ CEPH_OSD_
++ ceph quorum_status\n
++ [[ False == \\F\\a\\l\\s\\e ]]\n
++ [[ bluestore == \\b\\l\
++ [[ /dev/sdd =~ /dev/loop ]]\n
++ sgdisk --zap-all -- /dev/sdd1\n
++ '[' -n '' ']'\n
++ sgdisk --zap-all -- /dev/sdd\n
++ sgdisk --new=1:0:+100M --mbrtogpt -- /dev/sdd\n
++ sgdisk --largest-new=2 --mbrtogpt -- /dev/sdd\n
++ sgdisk --zap-all -- /dev/sdd2\n
Problem opening /dev/sdd2 for reading! Error is 2.\n
The specified file does not exist!\n
Problem opening '' for writing! Program will now terminate.\n
Warning! MBR not overwritten! Error is 2!\n",
```
The kolla code is as follows(
```
```
Here should add a partprobe command to re-read the partition:
```
```
Changed in kolla: | |
milestone: | none → 9.0.0 |
importance: | Undecided → Medium |
https:/ /review. openstack. org/652612
This commit fixes this problem