AIO-SX: Fix adding OSD at runtime hanging when /dev/rbd* are mounted
This mostly happens when stx-openstack application is running
as there are a couple of pods that uses RBD PVCs.
The reason of the hang is that, on AIO-SX, all OSDs are stopped
while new ones are configured. This leads to data on the /dev/rbd*
to be inaccessible when runtime puppet manifests executes
'ceph-disk list' to query the state of all storage devices in
the system.
This commit removes the code that stops existing OSDs on all
deployments. A side effect is a decrease in time needed to
add the OSDs on a node with many OSDs already configured.
For e.g. time for adding an OSD on a system with 7 OSDs can
take more that 2 minutes, while with this change it drops to
around 30 seconds.
Reviewed: https:/ /review. opendev. org/667903 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=4f1dde2c9d1 4692100727b3e61 14da2dd53cad95
Committed: https:/
Submitter: Zuul
Branch: master
commit 4f1dde2c9d14692 100727b3e6114da 2dd53cad95
Author: Ovidiu Poncea <email address hidden>
Date: Thu Jun 27 14:12:00 2019 +0300
AIO-SX: Fix adding OSD at runtime hanging when /dev/rbd* are mounted
This mostly happens when stx-openstack application is running
as there are a couple of pods that uses RBD PVCs.
The reason of the hang is that, on AIO-SX, all OSDs are stopped
while new ones are configured. This leads to data on the /dev/rbd*
to be inaccessible when runtime puppet manifests executes
'ceph-disk list' to query the state of all storage devices in
the system.
This commit removes the code that stops existing OSDs on all
deployments. A side effect is a decrease in time needed to
add the OSDs on a node with many OSDs already configured.
For e.g. time for adding an OSD on a system with 7 OSDs can
take more that 2 minutes, while with this change it drops to
around 30 seconds.
Change-Id: I41a65d42a45a90 b00f65509f4e536 eb1c345a91b
Closes-Bug: 1829855
Signed-off-by: Ovidiu Poncea <email address hidden>