Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1926046

Summary: The realmd daemon is not restarted after package update
Product: Red Hat Enterprise Linux 8 Reporter: shridhar <sgadekar>
Component: realmdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: shridhar <sgadekar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: dlavu, sgadekar
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: realmd-0.16.3-23.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:45:14 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: 1903942    

Comment 6 shridhar 2021-06-14 09:57:28 UTC
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   TEST PROTOCOL
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    Test run ID   : 149932001
    Package       : realmd
    Installed     : realmd-0.16.3-23.el8.x86_64
    beakerlib RPM : beakerlib-1.27-1.el8bkr.noarch
    bl-redhat RPM : beakerlib-redhat-1-33.el8bkr.noarch
    Test name     : /CoreOS/realmd/Regression/bz1274368-The-realmd-daemon-is-not-restarted-after-package
    Test version  : 1.0
    Test started  : 2021-06-14 05:55:37 EDT
    Test finished : 2021-06-14 05:56:10 EDT (still running)
    Test duration : 33 seconds
    Distro        : Red Hat Enterprise Linux release 8.5 Beta (Ootpa)
    Hostname      : ci-vm-10-0-139-42.hosted.upshift.rdu2.redhat.com
    Architecture  : x86_64
    CPUs          : 1 x Intel Xeon Processor (Skylake, IBRS)
    RAM size      : 1817 MB
    HDD size      : 19.98 GB

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test description
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

PURPOSE of /CoreOS/realmd/Regression/bz1274368-The-realmd-daemon-is-not-restarted-after-package
Description: Test for BZ#1274368 (The realmd daemon is not restarted after package)
Author: Marek Marusic <mmarusic>
Bug summary: The realmd daemon is not restarted after package upgrade
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1274368


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 05:55:38 ] :: [   PASS   ] :: Checking for the presence of realmd rpm 
:: [ 05:55:38 ] :: [   LOG    ] :: Package versions:
:: [ 05:55:38 ] :: [   LOG    ] ::   realmd-0.16.3-23.el8.x86_64
:: [ 05:55:38 ] :: [   PASS   ] :: Creating tmp directory (Expected 0, got 0)
:: [ 05:55:38 ] :: [   PASS   ] :: Command 'pushd /tmp/tmp.e1MJiotCTS' (Expected 0, got 0)
:: [ 05:55:39 ] :: [   PASS   ] :: Command 'yumdownloader realmd' (Expected 0, got 0)
:: [ 05:55:39 ] :: [   LOG    ] :: Backup rpm of realmd successfully downloaded
:: [ 05:55:39 ] :: [   LOG    ] :: rlFetchSrcForInstalled: Fetching source rpm for installed realmd-0.16.3-23.el8
:: [ 05:55:39 ] :: [   LOG    ] :: trying download from 'http://download.devel.redhat.com/brewroot/packages/realmd/0.16.3/23.el8/src/realmd-0.16.3-23.el8.src.rpm'
:: [ 05:55:40 ] :: [   PASS   ] :: Extract rpm to chrooted directory (Expected 0, got 0)
:: [ 05:55:40 ] :: [   PASS   ] :: Change release version (Expected 0, got 0)
:: [ 05:56:06 ] :: [   PASS   ] :: Build the new rpms (Expected 0, got 0)
:: [ 05:56:06 ] :: [   INFO   ] :: Sending realmd-build.log as realmd-build.log
:: [ 05:56:06 ] :: [   LOG    ] :: File '/tmp/tmp.kTZInuciBc/realmd-build.log' stored here: /var/tmp/BEAKERLIB_149932001_STORED_realmd-build.log
:: [ 05:56:06 ] :: [   PASS   ] :: Command 'realmdPidAfter=' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 28s
::   Assertions: 8 good, 0 bad
::   RESULT: PASS (Setup)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 05:56:06 ] :: [   PASS   ] :: Command 'realmdPidAfter=' (Expected 0, got 0)
:: [ 05:56:06 ] :: [   PASS   ] :: Command 'realm list' (Expected 0, got 0)
:: [ 05:56:06 ] :: [   PASS   ] :: Check if the realmd is running (Expected 0, got 0)
:: [ 05:56:08 ] :: [   PASS   ] :: Command 'yum --disablerepo=\* -y update /tmp/tmp.e1MJiotCTS/root/rpmbuild//RPMS/x86_64/realmd-*' (Expected 0, got 0)
:: [ 05:56:08 ] :: [   PASS   ] :: Command 'realmdPidAfter=13049' (Expected 0, got 0)
:: [ 05:56:08 ] :: [   PASS   ] :: The realmd should be restarted (Assert: "13049" should not equal "12997")
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 2s
::   Assertions: 6 good, 0 bad
::   RESULT: PASS (Test)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 05:56:10 ] :: [   PASS   ] :: Command 'yum --disablerepo=\* -y downgrade ./realmd-*' (Expected 0, got 0)
:: [ 05:56:10 ] :: [   PASS   ] :: Command 'popd' (Expected 0, got 0)
:: [ 05:56:10 ] :: [   PASS   ] :: Removing tmp directory (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 2s
::   Assertions: 3 good, 0 bad
::   RESULT: PASS (Cleanup)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   /CoreOS/realmd/Regression/bz1274368-The-realmd-daemon-is-not-restarted-after-package
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 05:56:10 ] :: [   LOG    ] :: File '/var/tmp/beakerlib-149932001/journal.xml' stored here: /var/tmp/BEAKERLIB_149932001_STORED_journal.xml
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 33s
::   Phases: 3 good, 0 bad
::   OVERALL RESULT: PASS (/CoreOS/realmd/Regression/bz1274368-The-realmd-daemon-is-not-restarted-after-package)

Comment 8 errata-xmlrpc 2021-11-09 19:45:14 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 (realmd 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-2021:4430