Bug 1378883
Summary: | oc adm diagnostics checks not existing systemd units | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Mike Fiedler <mifiedle> | |
Component: | oc | Assignee: | Luke Meyer <lmeyer> | |
Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> | |
Severity: | low | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.3.0 | CC: | aos-bugs, jkaur, jokerman, mifiedle, mmccomas, rcook, xiaocwan | |
Target Milestone: | --- | |||
Target Release: | 3.9.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause:
The systemd units for masters changed without the diagnostics for same being updated.
Consequence:
The diagnostics silently checked for master systemd units that don't exist instead of the ones that do. So problems with the correct units that might have been reported, weren't.
Fix:
Diagnostics now check for correct master unit names.
Result:
Problems with master systemd units / logs may be found.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1547245 1547246 (view as bug list) | Environment: | ||
Last Closed: | 2018-03-28 14:05:01 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1547245, 1547246 |
Description
Mike Fiedler
2016-09-23 12:57:06 UTC
This is a regression. It's supposed to quietly skip units that aren't actually there; I think perhaps systemctl is returning an error code where it didn't before, but in any case, this needs a fix. (BTW it *is* checking for atomic-openshift-node but needs to be updated to handle the split in the master units.) systemd.x86_64 219-30.el7 Red Hat hasn't released systemd-219-30.el7 AFAICS. Should we expect to see this in the wild soon? I don't see this with released version systemd-219-19.el7_2.13. If I run `systemctl show something-bogus`, I get back a unit description (for a non-existent unit) and no error. That version is from the ops mirror repo: https://mirror.openshift.com/enterprise/rhel/rhel7next/os Should be in the wild in RHEL 7.3 Looks like docker-1.12 brings this level of systemd along as well. I think this is being counted as a regression in systemd and addressed in https://bugzilla.redhat.com/show_bug.cgi?id=1380259 - as such I'm inclined not to try to work around the changed systemctl behavior. *** Bug 1432221 has been marked as a duplicate of this bug. *** The original report was due to a regression in systemctl which was eventually addressed in a systemd update. Checking for both Origin and OCP units is normal; it was just the error received in doing so that was a problem. However I still needed to update the master unit names for the split into -controllers and -api. https://github.com/openshift/origin/pull/18542 does that. Backports: 3.8: https://github.com/openshift/origin/pull/18555 3.7: https://github.com/openshift/origin/pull/18556 3.6: https://github.com/openshift/origin/pull/18557 It does not seem worth filing bugs for earlier releases, nor backporting earlier than 3.6, but both can be done as needed. Not reproduced on oc/openshift v3.9.0-0.47.0 systemd units are quietly skipped, only display one hint "[Note] Performing systemd discovery" Checked for back ports. The issue is not reproduced, same result as 3.9. oc/openshift v3.6.173.0.104 oc/openshift v3.7.31 Checked on oc/openshift v3.8.32 also has the Note info "[Note] Performing systemd discovery" It could be verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0489 |