RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1478247 - Cannot add dependency job for unit warning reported during Red Hat Enterprise Linux 7.4 installation
Summary: Cannot add dependency job for unit warning reported during Red Hat Enterprise...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lorax
Version: 7.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
Petr Bokoc
URL:
Whiteboard:
Depends On:
Blocks: 1420851 1478303
TreeView+ depends on / blocked
 
Reported: 2017-08-04 06:20 UTC by Simon Reber
Modified: 2020-09-10 11:07 UTC (History)
4 users (show)

Fixed In Version: lorax-19.6.95-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 17:38:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3139581 0 None None None 2017-08-04 06:21:09 UTC
Red Hat Product Errata RHBA-2018:0947 0 None None None 2018-04-10 17:39:16 UTC

Description Simon Reber 2017-08-04 06:20:03 UTC
Description of problem:

When installing Red Hat Enterprise Linux 7.4 from scratch the following warning messages are reported:

16:00:15,997 WARNING systemd:Cannot add dependency job for unit lvm2-monitor.service, ignoring: Unit not found.
16:00:15,997 WARNING systemd:Cannot add dependency job for unit systemd-tmpfiles-clean.timer, ignoring: Unit is masked.
16:00:15,997 WARNING systemd:Cannot add dependency job for unit rhel-configure.service, ignoring: Unit is masked.
16:00:15,998 WARNING systemd:Cannot add dependency job for unit rhel-autorelabel-mark.service, ignoring: Unit is masked.
16:00:15,998 WARNING systemd:Cannot add dependency job for unit rhel-autorelabel.service, ignoring: Unit is masked.
16:00:15,998 WARNING systemd:Cannot add dependency job for unit rhel-loadmodules.service, ignoring: Unit is masked.
[...]
16:00:16,815 WARNING systemd:Cannot add dependency job for unit lvm2-monitor.service, ignoring: Unit not found.
16:00:16,816 WARNING systemd:Cannot add dependency job for unit systemd-tmpfiles-clean.timer, ignoring: Unit is masked.
16:00:16,816 WARNING systemd:Cannot add dependency job for unit rhel-configure.service, ignoring: Unit is masked.
16:00:16,816 WARNING systemd:Cannot add dependency job for unit rhel-autorelabel-mark.service, ignoring: Unit is masked.
16:00:16,817 WARNING systemd:Cannot add dependency job for unit rhel-autorelabel.service, ignoring: Unit is masked.
16:00:16,820 WARNING systemd:Cannot add dependency job for unit rhel-loadmodules.service, ignoring: Unit is masked.

Seems we are missing some dependencies or have other issues with parts of `systemd` in the installer. So far I did not see that these warnings are causing issues, but we should definitely investigate them and address it.

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

 - 21.48.22.121-1

How reproducible:

 - always

Steps to Reproduce:
1. Install Red Hat Enterprise Linux 7.4 using kickstart
2. Inspect `/var/log/anaconda/syslog` after the installation completed
3.

Actual results:

Following messages are being reported when certain `systemd` activity are being triggered.

16:00:16,815 WARNING systemd:Cannot add dependency job for unit lvm2-monitor.service, ignoring: Unit not found.
16:00:16,816 WARNING systemd:Cannot add dependency job for unit systemd-tmpfiles-clean.timer, ignoring: Unit is masked.
16:00:16,816 WARNING systemd:Cannot add dependency job for unit rhel-configure.service, ignoring: Unit is masked.
16:00:16,816 WARNING systemd:Cannot add dependency job for unit rhel-autorelabel-mark.service, ignoring: Unit is masked.
16:00:16,817 WARNING systemd:Cannot add dependency job for unit rhel-autorelabel.service, ignoring: Unit is masked.
16:00:16,820 WARNING systemd:Cannot add dependency job for unit rhel-loadmodules.service, ignoring: Unit is masked.

Expected results:

No warning message to be reported during the installation. Respectively no "Cannot add dependency job for unit" warning message when running `systemd` activtiy.

Additional info:

Comment 2 Jiri Konecny 2017-08-04 08:49:36 UTC
Looks to me like there are missing parts in the installation environment. Lorax is the component responsible for creation of stage2 image.

Changing component to lorax.

Comment 3 Brian Lane 2017-08-10 01:44:31 UTC
https://github.com/rhinstaller/lorax/pull/237

fixes the 'Unit not found.' but there isn't really anything to do about the masked units that's a normal response when you've masked services that cannot be disabled because they are in /usr/lib/systemd/

I've also removed the lvm2-activation-generator which was also logging an error.

Comment 9 errata-xmlrpc 2018-04-10 17:38:04 UTC
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:0947


Note You need to log in before you can comment on or make changes to this bug.