Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2075852

Summary: nodejs module not enabled causes nodejs downgrade to version 10
Product: Red Hat Enterprise Virtualization Manager Reporter: Andrea Perotti <aperotti>
Component: rhvm-applianceAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: Wei Wang <weiwang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.10CC: ahadas, dfediuck, divshah, emarcus, lsurette, michal.skrivanek, mkalinin, sbonazzo, sgratch, yaniwang
Target Milestone: ovirt-4.5.0-1Keywords: ZStream
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhvm-appliance-4.5-20220505.0.el8ev Doc Type: Bug Fix
Doc Text:
Previously, the nodejs package was downgraded during the RHVM installation. In this release, the correct version of the nodejs package is installed and maintained.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-07 15:22:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1541529, 1986834, 2080505, 2111254    

Description Andrea Perotti 2022-04-15 17:11:53 UTC
Description of problem:


RHV Manager appliance has been shipped with various nodejs releases:

RHV-4.4.6   14.16.0-2.module+el8.3.0+10180+b92e1eb6                     
RHV-4.4.7   14.16.0-2.module+el8.3.0+10180+b92e1eb6
RHV-4.4.8   14.17.3-2.module+el8.4.0+11738+3bd42762

RHV-4.4.9   16.8.0-1.module+el8.5.0+12644+fdab02ff
RHV-4.4.10  16.8.0-1.module+el8.5.0+12644+fdab02ff
RHV-4.4.10  16.8.0-1.module+el8.5.0+12644+fdab02ff


But the installation documentation[1] do not address this fact,
and given in RHEL8 default nodejs module version is 10:

# dnf module list | fgrep nodejs
nodejs               10 [d][e]       common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               12              common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               14              common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               16              common [d], development, minimal, s2i    Javascript runtime 
 
not setting a specific version for that module, unlike i.e. for postgres:

# dnf module -y enable pki-deps
# dnf module -y enable postgresql:12
# dnf distro-sync --nobest

[...]
  Cleanup          : nodejs-1:16.8.0-1.module+el8.5.0+12644+fdab02ff.x86_64                                                            86/86 
  Running scriptlet: nodejs-1:16.8.0-1.module+el8.5.0+12644+fdab02ff.x86_64 

[...]
Enabling module streams:
 javapackages-runtime                     201801                                                                                            
 maven                                    3.5                                                                                               
 nodejs                                   10


Has as consequence that nodejs:10 is enabled - and not nodejs:16 - and the downgrade of nodejs happen.



How reproducible:
Always

Steps to Reproduce:
1. Follow installation documentation as per [1]
2.
3.

[1] https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html/installing_red_hat_virtualization_as_a_standalone_manager_with_local_databases/installing_the_red_hat_virtualization_manager_sm_localdb_deploy#Enabling_the_Red_Hat_Virtualization_Manager_Repositories_install_RHVM


Actual results:
nodejs package is downgraded to nodejs-10 and is not kept up to date with nodejs 16


Expected results:
nodejs module stream 16 to be enabled, and nodejs:16 to be kept update

Probably this is just a documentation issue, since the appliance is shipped with 16, probably eng do not expect to have nodejs downgraded.


Additional info:

Comment 3 Arik 2022-04-19 13:29:33 UTC
Seems specific to hosted-engine

Comment 4 Sandro Bonazzola 2022-04-22 11:45:51 UTC
oVirt engine related packages are build with nodejs:14 module.

It's being enabled within appliance with oVirt 4.5.0 / RHV 4.4 SP1

Comment 6 Andrea Perotti 2022-04-26 15:48:50 UTC
(In reply to Arik from comment #3)
> Seems specific to hosted-engine

It happen also on a plain RHEL installed from scratch:

# dnf install rhvm
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                         32 kB/s | 2.4 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                      36 kB/s | 2.8 kB     00:00    
Fast Datapath for RHEL 8 x86_64 (RPMs)                                                                        33 kB/s | 2.4 kB     00:00    
JBoss Enterprise Application Platform 7.4 (RHEL 8) (RPMs)                                                     32 kB/s | 2.4 kB     00:00    
Red Hat OpenStack Platform 16.2 Cinderlib for RHEL 8 x86_64 (RPMs)                                            31 kB/s | 2.4 kB     00:00    
Red Hat Ceph Storage Tools 4 for RHEL 8 x86_64 (RPMs)                                                         22 kB/s | 2.1 kB     00:00    
Red Hat Virtualization Manager 4.4 for RHEL 8 x86_64 (RPMs)                                                   15 kB/s | 2.4 kB     00:00    
Dependencies resolved.
=============================================================================================================================================
 Package                              Arch   Version                                   Repository                                       Size
=============================================================================================================================================
Installing:
 rhvm                                 noarch 4.4.10.7-0.4.el8ev                        rhv-4.4-manager-for-rhel-8-x86_64-rpms          8.7 k

[...]

Enabling module streams:
 httpd                                       2.4                                                                                            
 javapackages-runtime                        201801                                                                                         
 maven                                       3.5                                                                                            
 nodejs                                      10                                                                                             
 perl                                        5.26                                                                                           
 perl-IO-Socket-SSL                          2.066                                                                                          
 perl-libwww-perl                            6.34                                                                                           
 python36                                    3.6 


And after engine-setup as well, that configuration is not changes:

# engine-setup

[...]

          --== END OF SUMMARY ==--
         
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20220426174207-cswgpt.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20220426174536-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ INFO  ] Execution of setup completed successfully
# dnf module list | fgrep nodejs
Failed to set locale, defaulting to C.UTF-8
nodejs               10 [d][e]       common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               12              common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               14              common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               16              common [d], development, minimal, s2i    Javascript runtime

Comment 13 Wei Wang 2022-05-05 05:49:45 UTC
Test Version:
rhvm-appliance-4.5-20220427.0.el8ev.x86_64

Test Steps:
1. Deploy hosted engine with rhvm-appliance-4.5-20220427.0.el8ev.x86_64
2. # dnf module list | fgrep nodejs
nodejs               10 [d]          common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               12              common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               14              common, development, minimal, s2i        Javascript runtime                                                                                                                                                                                                               
nodejs               16              common, development, minimal, s2i        Javascript runtime

3. Follow installation documentation in comment 0
Enabling module streams:
 javapackages-runtime                                                                        201801                                                                                                                                          
 maven                                                                                       3.5                                                                                                                                             
 nodejs                                                                                      10                                                                                                                                              
 python36                                                                                    3.6  

Result:
nodejs package is downgraded to nodejs-10


Bug is reproduced. Move it to "ASSIGNED"

Comment 19 Wei Wang 2022-05-10 06:58:44 UTC
QE will verify this bug after the new rhvm-appliance build is coming.

Comment 22 Wei Wang 2022-05-30 09:01:09 UTC
Test with rhvm-appliance-4.5-20220529.0.el8ev.x86_64, 

[root@rhevh-hostedengine-vm-xx ~]# dnf module list | fgrep nodejs
nodejs           14 [e]   common, development, minimal, s2i Javascript runtime 

Follow installation documentation in comment 0

[root@rhevh-hostedengine-vm-xx ~]# dnf module list | fgrep nodejs
nodejs               10 [d]          common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               12              common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               14 [e]          common [d], development, minimal, s2i    Javascript runtime                                                                                                                                                                                                               
nodejs               16              common [d], development, minimal, s2i    Javascript runtime 


bug is fixed, move it to "VERIFIED"

Comment 24 errata-xmlrpc 2022-06-07 15:22:53 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 (Moderate: RHV Appliance (rhvm-appliance) security update [ovirt-4.5.0]), 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-2022:4931