Bug 1976118 - Failed to enable unit: Unit file rdma.service does not exist in %post execution
Summary: Failed to enable unit: Unit file rdma.service does not exist in %post execution
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: redhat-release-virtualization-host
Version: 4.4.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.4.7
: 4.4.7
Assignee: Sandro Bonazzola
QA Contact: peyu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-25 09:04 UTC by Sandro Bonazzola
Modified: 2021-07-22 15:07 UTC (History)
13 users (show)

Fixed In Version: redhat-release-virtualization-host-4.4.7-3.el8ev
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-22 15:07:22 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2736 0 None None None 2021-07-22 15:07:42 UTC

Description Sandro Bonazzola 2021-06-25 09:04:56 UTC
While testing fix for bug #1976095 noticed:

```
Running transaction
  Preparing        :                                                                  1/1 
  Upgrading        : redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64  1/2 
  Running scriptlet: redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64  1/2 
Failed to enable unit: Unit file rdma.service does not exist.
  Cleanup          : redhat-release-virtualization-host-content-4.4.7-1.el8ev.x86_64  2/2 
  Verifying        : redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64  1/2 
  Verifying        : redhat-release-virtualization-host-content-4.4.7-1.el8ev.x86_64  2/2 
Persisting: redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64.rpm
Unpersisting: redhat-release-virtualization-host-content-4.4.7-1.el8ev.x86_64.rpm
Installed products updated.

Upgraded:
  redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64                                                                  
```

Looking at systemd units related to rdma I see:
```
/usr/lib/systemd/system/rdma-hw.target
/usr/lib/systemd/system/rdma-load-modules@.service
/usr/lib/systemd/system/rdma-ndd.service
```

The enablement of the rdma service seems to be added in %post section as a workaround for bug #1809618.

Gobinda I understand rdma is not used in RHHI, any other reason for trying to enable the service?
If not, I would go with removing the failing command from %post.

Comment 2 Gobinda Das 2021-06-25 09:36:13 UTC
(In reply to Sandro Bonazzola from comment #0)
> While testing fix for bug #1976095 noticed:
> 
> ```
> Running transaction
>   Preparing        :                                                        
> 1/1 
>   Upgrading        :
> redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64  1/2 
>   Running scriptlet:
> redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64  1/2 
> Failed to enable unit: Unit file rdma.service does not exist.
>   Cleanup          :
> redhat-release-virtualization-host-content-4.4.7-1.el8ev.x86_64  2/2 
>   Verifying        :
> redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64  1/2 
>   Verifying        :
> redhat-release-virtualization-host-content-4.4.7-1.el8ev.x86_64  2/2 
> Persisting:
> redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64.rpm
> Unpersisting:
> redhat-release-virtualization-host-content-4.4.7-1.el8ev.x86_64.rpm
> Installed products updated.
> 
> Upgraded:
>   redhat-release-virtualization-host-content-4.4.7-2.el8ev.x86_64           
> 
> ```
> 
> Looking at systemd units related to rdma I see:
> ```
> /usr/lib/systemd/system/rdma-hw.target
> /usr/lib/systemd/system/rdma-load-modules@.service
> /usr/lib/systemd/system/rdma-ndd.service
> ```
> 
> The enablement of the rdma service seems to be added in %post section as a
> workaround for bug #1809618.
> 
> Gobinda I understand rdma is not used in RHHI, any other reason for trying
> to enable the service?
> If not, I would go with removing the failing command from %post.

I don't think any specific reason, you can remove it.

Comment 3 peyu 2021-07-06 06:19:32 UTC
QE did not reproduce this issue on "redhat-virtualization-host-4.4.7-20210705.0.el8_4"

Test versions:
RHVH: upgrade RHVH from rhvh-4.4.7.1-0.20210624.0+1 to rhvh-4.4.7.2-0.20210705.0+1
RHVM: 4.4.7.6-0.11.el8ev

Test steps:
1. Install redhat-virtualization-host-4.4.7-20210624.0.el8_4
2. Add host to RHVM
3. Login to host, setup local repos and point to "redhat-virtualization-host-4.4.7-20210705.0.el8_4"
4. Manage host to "Maintenance" status, then upgrade RHVH via host side
   # yum update


Test result:
There were no errors related to rdma service during upgrade.

~~~~~~
# yum update
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Red Hat update to latest                                                                          259 kB/s | 1.1 kB     00:00    
Dependencies resolved.
==================================================================================================================================
 Package                                            Architecture      Version                             Repository         Size
==================================================================================================================================
Installing:
 redhat-virtualization-host-image-update            x86_64            4.4.7-20210705.0.el8_4              update            875 M
     replacing  redhat-virtualization-host-image-update-placeholder.noarch 4.4.7-1.el8ev

Transaction Summary
==================================================================================================================================
Install  1 Package

Total download size: 875 M
Is this ok [y/N]: y
Downloading Packages:
redhat-virtualization-host-image-update-latest.rpm                                                 82 MB/s | 875 MB     00:10    
----------------------------------------------------------------------------------------------------------------------------------
Total                                                                                              82 MB/s | 875 MB     00:10     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                          1/1 
  Running scriptlet: redhat-virtualization-host-image-update-4.4.7-20210705.0.el8_4.x86_64                                    1/2 
  Installing       : redhat-virtualization-host-image-update-4.4.7-20210705.0.el8_4.x86_64                                    1/2 
  Running scriptlet: redhat-virtualization-host-image-update-4.4.7-20210705.0.el8_4.x86_64                                    1/2 
  Obsoleting       : redhat-virtualization-host-image-update-placeholder-4.4.7-1.el8ev.noarch                                 2/2 
  Verifying        : redhat-virtualization-host-image-update-4.4.7-20210705.0.el8_4.x86_64                                    1/2 
  Verifying        : redhat-virtualization-host-image-update-placeholder-4.4.7-1.el8ev.noarch                                 2/2 
Unpersisting: redhat-virtualization-host-image-update-placeholder-4.4.7-1.el8ev.noarch.rpm
Installed products updated.

Installed:
  redhat-virtualization-host-image-update-4.4.7-20210705.0.el8_4.x86_64                                                           

Complete!
~~~~~~

Comment 14 errata-xmlrpc 2021-07-22 15:07:22 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 (Important: Red Hat Virtualization Host security and bug fix update [ovirt-4.4.7]), 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/RHSA-2021:2736


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