StarlingX Integration and packaging
Go to file
Felipe Sanches Zanoni 08a571dc86 Enable ceph init script to use already mounted osd filesystem
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
2023-01-20 17:06:47 +00:00
base Merge "Enable sssd service in systemd-presets" 2022-12-15 20:24:31 +00:00
bmc/Redfishtool Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
centos-debian-compat debian: Split out system presets into separate pkg 2022-09-27 08:21:20 +00:00
ceph/ceph Enable ceph init script to use already mounted osd filesystem 2023-01-20 17:06:47 +00:00
config Increase timeout for openstack commands 2022-10-20 10:34:03 -03:00
database Fix the stx-mariadb docker build errors 2022-08-18 13:39:29 +00:00
devstack Relocated some packages to repo 'utilities' 2019-09-05 20:31:36 -04:00
doc Switch to newer openstackdocstheme and reno versions 2020-06-04 14:28:48 +02:00
docker/python-docker meta_data.yaml: add sha256sum checksum 2022-03-03 14:30:40 +08:00
filesystem debian: Create /drbd directory 2022-06-06 06:27:54 +00:00
golang-github-dev debian-pkg: Uprev cni plugins 2022-10-07 15:01:49 +00:00
gpu/gpu-operator Debian: Do not install gpu-operator into ISO 2022-09-21 14:25:50 +00:00
grub Debian: grub-efi: porting from LAT 2022-10-08 21:50:14 -04:00
kubernetes Merge "Revert "clean up feature gates on k8s upgrade"" 2022-12-15 15:04:57 +00:00
ldap Merge "Remove nslcd and related packages on Debian" 2022-08-26 19:06:05 +00:00
livepatch/kpatch/debian kpatch: Allowing passing in KEYDIR and SRCDIR 2022-12-13 20:51:07 -05:00
logging/logrotate/centos Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
networking debian: Fix openvswitch-vtep shutdown 2022-10-20 09:30:36 -04:00
ostree Make root and var filesystems LVM based 2022-11-22 12:51:47 +02:00
python Create Debian zerorpc-python package 2022-11-14 15:43:13 -03:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:28:48 +02:00
requests-toolbelt Add auto-versioning to starlingx/integ packages 2020-06-24 09:48:28 +08:00
security Merge "Debian: shim-unsigned: porting from LAT" 2022-10-17 17:52:29 +00:00
storage-drivers Upgrade Trident to 22.07.0 version. 2022-10-19 08:22:41 -04:00
tools Merge "CentOS: kdump: remove unnecessary bootargs" 2022-12-01 11:00:40 +00:00
virt Port stx-libvirt base image to stx-debian 2022-12-14 11:05:01 -03:00
.gitignore Add Docker Registry Token Server 2019-01-08 11:42:04 -05:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:31 +00:00
.yamllint Add .yamllint file 2021-09-09 19:05:36 +03:00
.zuul.yaml Remove Legacy-resolver and changed constraints 2022-08-22 15:04:43 +00:00
bindep.txt Fix pylint zuul jobs failing due to libvirt-python and pkgconfig 2019-07-04 14:14:39 -05:00
centos_build_layer.cfg Build layering, add layer build config file and srpm and tarball lst 2019-10-21 09:24:22 +08:00
centos_extra_downloads.lst Move mellanox userspace from integ repo 2020-05-06 19:58:38 -04:00
centos_guest_image_rt.inc Subdirectory kernel relocated to new repo starlingx/kernel 2020-04-11 13:08:18 -04:00
centos_guest_image.inc Subdirectory kernel relocated to new repo starlingx/kernel 2020-04-11 13:08:18 -04:00
centos_iso_image.inc Removing unused package python-ryu 2022-08-12 17:53:49 +00:00
centos_pkg_dirs Removing unused package python-ryu 2022-08-12 17:53:49 +00:00
centos_pkg_dirs_installer Config file changes for packages being relocated to repo 'compile' 2019-09-05 20:28:59 -04:00
centos_pkg_dirs_rt Move mellanox userspace from integ repo 2020-05-06 19:58:38 -04:00
centos_srpms_3rdparties.lst networking: Update keepalived from 1.3.5 to 2.1.5 2021-11-12 12:12:16 -05:00
centos_srpms_centos.lst CentOS: tzdata: upversion to 2022a 2022-07-12 14:01:21 -04:00
centos_stable_docker_images.inc Remove k8s-cni-sriov docker image 2022-06-07 21:52:00 -04:00
centos_stable_wheels.inc Add libvirt module to stable wheels for image build 2019-04-04 22:54:04 -04:00
centos_tarball-dl.lst Merge "Upgrade Trident to 22.07.0 version." 2022-10-19 17:43:53 +00:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:36:35 -07:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:08:19 -04:00
debian_iso_image.inc integ: update debian_iso_image.inc 2022-12-07 15:09:05 +08:00
debian_pkg_dirs Debian: Add build structure for virt/libvirt 2022-11-18 18:10:54 -03:00
debian_stable_docker_images.inc Port stx-libvirt base image to stx-debian 2022-12-14 11:05:01 -03:00
distroless_stable_docker_images.inc Remove k8s-plugin-sriov-network-device image 2022-08-31 14:03:22 -04:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:35 -07:00
pylint.rc Updating the pylint tox target to reflect its targets 2021-11-04 10:22:24 -05:00
README.rst Followup opendev cleanup and test jobs 2019-04-21 09:23:19 -05:00
test-requirements.txt Add default test framework 2018-06-11 13:45:22 -05:00
tox.ini Remove Legacy-resolver and changed constraints 2022-08-22 15:04:43 +00:00

integ

StarlingX Integration