Issue #1798
closeddatabases fail on boot if using iSCSI partitions for /var/lib/pulp and /var/lib/mongodb
Description
From Chris Roberts on bugzilla:
Its seems like after the machine reboot, pulp services and mongodb service were started before iscsi mounted /var/lib/pulp and /var/lib/mongodb directory.
To overcome this issue we tried the below steps but :
================
edit following 3 files on your satellite 6 server.
/etc/systemd/system/multi-user.target.wants/pulp_celerybeat.service
/etc/systemd/system/multi-user.target.wants/pulp_resource_manager.service
/etc/systemd/system/multi-user.target.wants/pulp_workers.service
and add prerequisite to mount /var/lib/pulp first, by adding into [Unit] section as shown below:
*****************************
[Unit]
RequireMountsFor=/var/lib/pulp
RequireMountsFor=/var/lib/mongodb
*****************************
Adding the dependency RequiresMountsFor to systemd services' files postpones pulp and mongodb services start after the directories are already mounted.
==============
Also tried the below steps:
==============
In addition to 'RequireMountsFor=/var/lib/pulp' (use
Requires=var-lib-pulp.mount, which is pretty much the same thing), the
pulp services need to start after remote-fs.target as well.
- -- snip --
[Unit]
Description=Pulp's Celerybeat
After=network.target remote-fs.target
Requires=var-lib-pulp.mount
...
- -- snip --
================
However, the above steps did not helped.
Currently, system is using local partitions at the moment.
Here's the fstab:
#
# /etc/fstab
# Created by anaconda on Wed May 13 20:00:56 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_sys-root / xfs defaults 1 1
UUID=048dad01-bb2a-4133-bc9a-36c6d877cf59 /boot xfs defaults 1 2
/dev/mapper/vg_sys-var /var xfs defaults 1 2
/dev/mapper/vg_sys-swap swap swap defaults 0 0
#------------------------------------------------------------------------------
/dev/mapper/vg_ldisk-pgsql /var/lib/pgsql xfs defaults 0 0
/dev/mapper/vg_ldisk-mongodb /var/lib/mongodb xfs defaults 0 0
/dev/mapper/vg_ldisk-pulp /var/lib/pulp xfs defaults 0 0
#------------------------------------------------------------------------------
# Not using iSCSI partition for Satellite DBs because systemd allows them to
# start before networking and iscsid, which means they're not mounted and fail.
#/dev/mapper/vg_lun-pgsql /mnt/pgsql xfs defaults 0 0
#/dev/mapper/vg_lun-mongodb /mnt/mongodb xfs defaults 0 0
#/dev/mapper/vg_lun-pulp /mnt/pulp xfs defaults 0 0
#------------------------------------------------------------------------------
Updated by rbarlow about 8 years ago
This is likely fixed by this PR:
Updated by mhrivnak about 8 years ago
- Triaged changed from No to Yes
- Tags Easy Fix added
Updated by lzap@redhat.com almost 8 years ago
I've discussed this with RHEL engineers and they are unlikely be adding this kind of statement. Almost every single service can be configured with remote FS. It's up to user to configure this. This is a DOCO only bug. The ideal solution to this is by the way:
Updated by bmbouter about 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by bmbouter about 5 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.