Bug 2055136
Summary: | virt module is not changed to the correct stream during host upgrade | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Petr Kubica <pkubica> |
Component: | ovirt-engine | Assignee: | Dana <delfassy> |
Status: | CLOSED ERRATA | QA Contact: | Petr Kubica <pkubica> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 4.4.10 | CC: | bugs, delfassy, emarcus, lsvaty, mavital, michal.skrivanek, mkalinin, mperina, pbrilla |
Target Milestone: | ovirt-4.5.0-1 | Keywords: | Automation, AutomationBlocker, ZStream |
Target Release: | 4.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ovirt-engine-4.5.0.6 | Doc Type: | Release Note |
Doc Text: |
With this release, the virt DNF module version is correctly set according to the RHEL version of the host during the host upgrade flow.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-05-26 16:23:53 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Petr Kubica
2022-02-16 10:52:32 UTC
AV change need to happen before upgrading ovirt-host, or it shouldn't be trying o upgrade it to latest (In reply to Michal Skrivanek from comment #1) > AV change need to happen before upgrading ovirt-host, or it shouldn't be > trying o upgrade it to latest Not true, virt module version is change during the upgrade from RHEL 8.m to RHEL 8.n As discussed on the grooming today, repositories are not correct, that's why upgrade fails Repositories are correct. Used standard build (which was used a lot of times for installing host) Also I used the same repositories for upgrading from RHEL 8.4 - virt:av - RHV 4.4.8 to RHEL 8.5 virt:av RHV 4.4.10 and there it worked Non-working scenarios: RHEL 8.2 - virt:8.2 - RHV 4.4.2 RHEL 8.3 - virt:8.3 - RHV 4.4.5 upgrade from 4.4(8.5) to 4.5(8.6) is also failing: "stdout" : "fatal: [FQDN]: FAILED! => {\"msg\": \"The conditional check 'ansible_facts.packages['r edhat-release'].version is version(latest_rh_rel, '!=')' failed. The error was: error while evaluating conditional (ansible_facts.pa ckages['redhat-release'].version is version(latest_rh_rel, '!=')): 'list object' has no attribute 'version'\\n\\nThe error appears t o be in '/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-upgrade/tasks/advanced-virtualization.yml': line 16, column 11, but may\\nbe elsewhere in the file depending on the exact syntax problem.\\n\\nThe offending line appears to be :\\n\\n - block:\\n - name: Reset configuration of advanced virtualization module\\n ^ here\\n\"}", testing from latest live environment (4.4.10) to latest internal build containing ovirt-engine-setup-4.5.0.4-0.1.el8ev.noarch.rpm upgrade of engine itself looks fine and was successful, I will do some more runs to be sure host upgrade from engine GUI - Check for Updgrades > Upgrade is failing, above message was found in ovirt-host-mgmt-ansible... I saw in host upgrade log that all tasks related to av-setup are skipped: 2022-02-15 18:17:48 UTC - TASK [ovirt-host-deploy-facts : Reset configuration of advanced virtualization module] *** 2022-02-15 18:17:48 UTC - TASK [ovirt-host-deploy-facts : Find relevant advanced virtualization module version] *** 2022-02-15 18:17:48 UTC - TASK [ovirt-host-deploy-facts : Enable advanced virtualization module] ********* I checked the conditions for execution av-setup tasks, and found that: - not vdsm_preinstalled|bool is not met: 2022-02-15 18:17:48 UTC - TASK [ovirt-host-deploy-facts : Check if vdsm is preinstalled] ***************** 2022-02-15 18:17:48 UTC - ok: [sat-client-02.rhev.lab.eng.brq.redhat.com] "res" : { "changed" : false, "ansible_facts" : { "vdsm_preinstalled" : true }, in Fetch installed packages: "vdsm" : [ { "name" : "vdsm", "version" : "4.40.50.10", "release" : "1.el8ev", "epoch" : null, "arch" : "x86_64", "source" : "rpm" } ], so this is the reason the version is not changed. Does it really matter is vdsm is preinstalled or can we just remove this condition? in which log, the one from Feb? that's irrelevant. Please fix the _current_ problem, and current change from 4.2/4.3/4.4 to 4.5's virt:rhel Pavol, please attach the log I attached log from upgrade: ovirt-host-mgmt-ansible-20220427111347-FQDN-d4fdda58-bf4e-4dd9-8576-42f7507bc65e.log I tried to generate sos report or ovirt-log-collctor but in both cases size was too big to attach. I contacted also Dana through chat, and provided her with access to environment, so she can also have full picture of env. Current issue which I have is upgrade 4.4.10 > 4.5, ( attempts for upgrade from 4.4.2 or other previous version will come latter ) (In reply to Michal Skrivanek from comment #9) > in which log, the one from Feb? that's irrelevant. Please fix the _current_ > problem, and current change from 4.2/4.3/4.4 to 4.5's virt:rhel > > Pavol, please attach the log It was in the log from February, but that's the issue (I checked it earlier today). I'm creating a fix for it now The patch I added includes fixes both for the original bug & the issue Pavol found Note: I see the docs are already updated with SP1 instructions: https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/upgrade_guide/index#Manually_Updating_Hosts_minor_updates https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/installing_red_hat_virtualization_as_a_self-hosted_engine_using_the_command_line/index#Enabling_the_Red_Hat_Enterprise_Linux_Host_Repositories_SHE_deployment_host So we are good here. Verified in ovirt-engine-4.5.0.6-0.7.el8ev.noarch Tested host upgrade from 4.4.4 (RHEL 8.3) to 4.5 (RHEL 8.6) Module stream was changed from virt:8.3 to virt:rhel during the upgrade 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 Manager (ovirt-engine) [ovirt-4.5.0] security 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/RHSA-2022:4711 |