StarlingX Integration and packaging
08a571dc86
Ceph initialization script /etc/init.d/ceph was failing to start osd when osd disk is already mounted and the umount fails because disk is in use. The script line has an umount command that fails if the partition is in use. Then, the next mount command will fail returning 32. If the error is that the partition is already mounted, look for 'already mounted on ${fs_path}' text in the output and then ignore the mount error returning success and continuing the start script. An example of error text output: === osd.0 === Mounting xfs on controller-0:/var/lib/ceph/osd/ceph-0 umount: /var/lib/ceph/osd/ceph-0: target is busy. mount: /var/lib/ceph/osd/ceph-0: /dev/nvme2n1p1 already mounted on /var/lib/ceph/osd/ceph-0. failed: 'modprobe xfs ; egrep -q '^[^ ]+ /var/lib/ceph/osd/ceph-0 ' /proc/mounts && umount /var/lib/ceph/osd/ceph-0 ; mount -t xfs -o rw,noatime,inode64,logbufs=8,logbsize=256k /dev/disk/by-path/pci-0000:11:00.0-nvme-1-part1 /var/lib/ceph/osd/ceph-0' Test-Plan: PASS: Validate the new script with partition already mounted on right location in AIO-SX and AIO-DX. PASS: Validate the new script with partition already mounted but on a different location in AIO-SX and AIO-DX. PASS: Validate the new script with partition not mounted in AIO-SX and AIO-DX. Closes-bug: 1999826 Signed-off-by: Felipe Sanches Zanoni <Felipe.SanchesZanoni@windriver.com> Change-Id: I6f0c1a3c2742de62040a690dd3d65785bdc1de73 |
||
---|---|---|
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 | ||
bindep.txt | ||
centos_build_layer.cfg | ||
centos_extra_downloads.lst | ||
centos_guest_image_rt.inc | ||
centos_guest_image.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 | ||
CONTRIBUTORS.wrs | ||
debian_build_layer.cfg | ||
debian_iso_image.inc | ||
debian_pkg_dirs | ||
debian_stable_docker_images.inc | ||
distroless_stable_docker_images.inc | ||
LICENSE | ||
pylint.rc | ||
README.rst | ||
test-requirements.txt | ||
tox.ini |
integ
StarlingX Integration