b629db6b9f
This change is part of the solution to resolve the scenario where Ceph MON starts without having data in sync when there is no communication with the peer, leading to PG issues. Improvements: Removed starting Ceph MON and MDS from ceph.sh script called by mtcClient for AIO-DX: - Ceph MDS was not being managed, only started by ceph.sh script called from mtcClient. Now it will be managed by PMON. - Ceph MON will continue to be managed by SM. Ceph-init-wrapper script will verify some conditions to start Ceph MON safely: - First, check if drbd-cephmon role is Primary. - Then, check if drbd-cephmon partition is mounted correctly. - Check flags (inside drbd-cephmon path) for last active Ceph MON process (Controller-0 or Controler-1). This flag will be created by the last Ceph MON successful start. - If the last active monitor is the other one, check if drbd-cephmon is UpToDate/UpToDate, meaning that data is synchronized between controllers. We also made some improvements to /etc/init.d/ceph script to be able to stop Ceph OSD even if Ceph MON was not available. Stopping OSD without a Ceph Monitor was hanging when the command to flush the journal would wait forever to communicate to any available Ceph Monitor. Test Plan: PASS: system host-swact. PASS: Ceph recovery after mgmt network outage for few minutes even when rebooting controllers. PASS: Ceph recovery after rebooting active controller. PASS: Ceph recovery after case of dead office recovery (DOR). PASS: Running shellcheck on ceph-base.ceph.init, ceph.sh, and ceph-init-wrapper.sh files without any complaints about the lines related to the changes. Closes-bug: 2004183 Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com> Change-Id: Id09432aecef68b39adabf633c74545f2efa02e99 |
||
---|---|---|
base | ||
bmc/Redfishtool | ||
centos-debian-compat | ||
ceph/ceph | ||
config | ||
database | ||
devstack | ||
doc | ||
docker/python-docker | ||
filesystem | ||
golang-github-dev | ||
gpu/gpu-operator | ||
grub | ||
kubernetes | ||
ldap | ||
livepatch/kpatch/debian | ||
logging/logrotate/centos | ||
networking | ||
ostree | ||
python | ||
releasenotes | ||
requests-toolbelt | ||
security | ||
storage-drivers | ||
tools | ||
virt | ||
.gitignore | ||
.gitreview | ||
.yamllint | ||
.zuul.yaml | ||
CONTRIBUTORS.wrs | ||
LICENSE | ||
README.rst | ||
bindep.txt | ||
centos_build_layer.cfg | ||
centos_extra_downloads.lst | ||
centos_guest_image.inc | ||
centos_guest_image_rt.inc | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
centos_pkg_dirs_installer | ||
centos_pkg_dirs_rt | ||
centos_srpms_3rdparties.lst | ||
centos_srpms_centos.lst | ||
centos_stable_docker_images.inc | ||
centos_stable_wheels.inc | ||
centos_tarball-dl.lst | ||
debian_build_layer.cfg | ||
debian_iso_image.inc | ||
debian_pkg_dirs | ||
debian_stable_docker_images.inc | ||
distroless_stable_docker_images.inc | ||
pylint.rc | ||
test-requirements.txt | ||
tox.ini |
README.rst
integ
StarlingX Integration