Bug 1857183

Summary: Failed to get unit file state for initial-setup-graphical.service: No such file or directory
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: initial-setupAssignee: Martin Kolman <mkolman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: high    
Version: 8.3CC: jkonecny
Target Milestone: rc   
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: initial-setup-0.3.81.6-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:36:18 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: 1812825    

Description Jan Stodola 2020-07-15 11:12:53 UTC
Description of problem:
The following errors are printed when updating initial-setup:

[root@localhost ~]# yum update initial-setup
...
  Upgrading        : anaconda-core-33.16.3.10-1.el8.x86_64                          9/24 
  Upgrading        : anaconda-gui-33.16.3.10-1.el8.x86_64                          10/24 
  Running scriptlet: initial-setup-0.3.81.5-1.el8.x86_64                           11/24 
Failed to get unit file state for initial-setup-graphical.service: No such file or directory
Failed to get unit file state for initial-setup-text.service: No such file or directory

  Upgrading        : initial-setup-0.3.81.5-1.el8.x86_64                           11/24 
  Running scriptlet: initial-setup-0.3.81.5-1.el8.x86_64                           11/24 
  Running scriptlet: initial-setup-gui-0.3.81.5-1.el8.x86_64                       12/24 
Failed to get unit file state for initial-setup-graphical.service: No such file or directory
Failed to get unit file state for initial-setup-text.service: No such file or directory

  Upgrading        : initial-setup-gui-0.3.81.5-1.el8.x86_64                       12/24 
  Cleanup          : initial-setup-gui-0.3.62.1-1.el8.x86_64

Version-Release number of selected component (if applicable):
initial-setup-0.3.81.5-1.el8

How reproducible:
always

Steps to Reproduce:
1. Install RHEL-8.2 GA (make sure initial-setup and initial-setup-gui are installed)
2. Configure RHEL-8.3 repositories
3. yum update initial-setup

Actual results:
Error messages while updating initial-setup/initial-setup-gui.

Expected results:
No error messages.

Comment 1 Martin Kolman 2020-07-15 13:18:47 UTC
Looks like the %pre scriptlet returning these error messages is no longer needed on RHEL8 and can be removed.

PR: https://github.com/rhinstaller/initial-setup/pull/107

Comment 2 Martin Kolman 2020-07-17 13:35:13 UTC
Installed a RHEL 8.2 VM, then:

- installed IS without this fix, error messages show up at upgrade time
- rolled VM back, installed scratch build of IS with the fix from comment 1, no error messages at package upgrade time

Comment 5 Jan Stodola 2020-08-18 08:26:21 UTC
This is fixed in initial-setup-0.3.81.6-1.el8, thanks.

Moving to VERIFIED.

Comment 8 errata-xmlrpc 2020-11-04 03:36:18 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 (initial-setup bug fix and enhancement update), 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-2020:4754