Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1619472

Summary: non-ceph deployments execute ceph-disk /etc/cron.hourly/subman and exhaust system resources
Product: Red Hat OpenStack Reporter: Robin Cernin <rcernin>
Component: rhosp-director-imagesAssignee: Mike Burns <mburns>
Status: CLOSED DUPLICATE QA Contact: Gurenko Alex <agurenko>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: abishop, cjeanner, eharney, pgrist, pmannidi
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-17 17:17:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Cernin 2018-08-21 00:35:42 UTC
Description of problem:

This subman cronjob executes ceph-disks:

etc/cron.hourly/subman:
...
disks = json.loads(subprocess.check_output("ceph-disk list --format json", shell=True))
...
facts_file = os.environ.get("CEPH_FACTS_FILE", "/etc/rhsm/facts/ceph_usage.facts")

ceph-disks executes blkid which have no timeout see https://bugzilla.redhat.com/show_bug.cgi?id=1591603

And it tends to hang forever if customer uses multipath and any of the path fails.

That exhausts the system resources during the time and ending up running like 600 processes of blkid, load average goes to 100s.

That slows down the system, the file should not be required for non-ceph environments

Version-Release number of selected component (if applicable):

OSP10

Expected:

This file should not be part of overcloud.qcow image unless ceph is enabled

Currently:

This file is part of overcloud images and used even ceph is disabled

Comment 2 Alan Bishop 2018-09-17 17:17:02 UTC
The cron job is included in the ceph-osd package, which we know is included in
the default overcloud image in releases prior to OSP-13. I manually tested a
fresh OSP-10 installation and confirmed the cron job is removed when the
ceph-osd package is removed.

For releases prior to OSP-13, the ceph-osd package is automatically removed
from an overcloud node when the node does not require the package (see bug
#1405881). This is done by upgrading the undercloud, followed by performing a
minor update of the overcloud nodes. The update procedure will remove the
ceph-osd package from all nodes that do not require it.

I looked at an sosreport in the customer case, it it's apparent that a few
specific packages have been manually updated, but the ceph-osd package is
still installed. From this I conclude a full update has not been performed on
the overcloud nodes.

I'm marking this BZ a duplicate of the one that handles removal of the
ceph-osd package. If the customer does not wish to update the overcloud nodes,
then an alternative would be to manually remove the ceph-osd package on at
least the compute nodes. This will remove the ceph-disk cron job.

*** This bug has been marked as a duplicate of bug 1405881 ***