Bug 1201663
Summary: | The default multi-user.target configured in rhel7.1 images runs /usr/bin/rhsmcertd | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jan Pazdziora (Red Hat) <jpazdziora> | |
Component: | rhel-server-container | Assignee: | Václav Pavlín <vpavlin> | |
Status: | CLOSED WONTFIX | QA Contact: | atomic-bugs <atomic-bugs> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 7.1 | CC: | dwalsh, fedoraproject, jpazdziora, ovasik, vpavlin | |
Target Milestone: | rc | Keywords: | Extras | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1299908 (view as bug list) | Environment: | ||
Last Closed: | 2020-12-15 07:33:39 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: | 1094932, 1209382, 1382308 | |||
Bug Blocks: |
Description
Jan Pazdziora (Red Hat)
2015-03-13 08:46:27 UTC
Adding RUN rm -f /etc/systemd/system/multi-user.target.wants/rhsmcertd.service to my Dockerfile helps but I believe it should be in the base image, unless there is a strong reason to run rhsmcertd by default. Can we change this in systemd-container? I would like to keep kickstart files clean from init process modifications. How can I change this is systemd package? That service is enabled after instalation and it seems not to use presets. Let's rm the symlink for now but leave this bug open waiting for a proper solution. https://bugzilla.redhat.com/show_bug.cgi?id=1299908 Any movement on this bug? It looks like bug 1299908 mentioned waiting for bug 1209382 which was marked as duplicate of bug 1271839 which was resolved in RHEL 7.4. So the question is, can the "workaround" introduced in bug 1299908 be reverted with proper preset-based approach now available? As far as I know, we do not have a packaged container-specific preset file. We almost had one two years ago, but the idea was intentionally canceled without explanation. See bug 1382308. We can try to get a new rpm into rhel7 but that requires an unlikely agreement of a lot of people. Do you have a better suggestion? Can you verify that the problem is still present with current images? IIRC, you can make things conditional in the .service, not to run it in containers. The systemd environment in containers should have sane defaults, so minimize the amount of work that needs to be done to the image by its users. Would be properly solved for all cases by adding to the rhsmcertd.service file: ConditionPathIsDirectoryNotEmpty=!/etc/pki/entitlement-host Problem is that `ConditionPathIsDirectoryNotEmpty` is currently broken: https://github.com/systemd/systemd/issues/16220 It was very late in the evening when I said "ConditionPathIsDirectoryNotEmpty" was broken... that's because the actual option is called "ConditionDirectoryNotEmpty", and it works just fine. I see 2 workable solutions to this issue: 1. Set `ConditionDirectoryNotEmpty=!/etc/pki/entitlement-host` in the [Unit] section of rhsmcertd to avoid service activation when host entitlements are available, or 2. Have a separate set of container presets that avoid enabling this service at all. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |