Bug 2090670 - Host upgrade 4.4.[23] to 4.4 SP1 failed on network-scripts-openvswitch2.1x conflict
Summary: Host upgrade 4.4.[23] to 4.4 SP1 failed on network-scripts-openvswitch2.1x co...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.5.0
Hardware: All
OS: All
high
high
Target Milestone: ovirt-4.5.1-1
: ---
Assignee: Dana
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-26 10:12 UTC by Pavol Brilla
Modified: 2022-07-14 12:54 UTC (History)
7 users (show)

Fixed In Version: ovirt-engine-4.5.1.3
Doc Type: Bug Fix
Doc Text:
The network-scripts-openvswitch2.11 package is now uninstalled during host upgrade to prevent conflicts with OVS 2.15.
Clone Of:
Environment:
Last Closed: 2022-07-14 12:54:56 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 413 0 None Merged remove network-scripts-openvswitch 2.11 package before upgrading packages 2022-07-04 07:31:24 UTC
Github oVirt ovirt-engine pull 510 0 None open Remove network-scripts-openvswitch 2.11 package before installing ovirt-host 2022-07-04 08:49:21 UTC
Github oVirt ovirt-engine pull 512 0 None open Backport: "Remove network-scripts-openvswitch 2.11 package before installing ovirt-host" 2022-07-04 09:32:44 UTC
Red Hat Issue Tracker RHV-46127 0 None None None 2022-05-26 11:18:11 UTC
Red Hat Product Errata RHBA-2022:5586 0 None None None 2022-07-14 12:54:58 UTC

Description Pavol Brilla 2022-05-26 10:12:16 UTC
Description of problem:
host upgrade with big jumps:
4.4.2 > 4.4 SP1
4.4.3 > 4.4 SP1

Version-Release number of selected component (if applicable):
RHV Version 4.5.0.7-0.9.el8ev

How reproducible:
100%

Steps to Reproduce:
1. create old host in old cluster ( 4.4.2 in 4.4 )
2. add 4.4 SP1 repos to host
3. try host upgrade
4. upgrade fails, if I check host and yum history it fails on 
network-scripts-openvswitch2.11 vs network-scripts-openvswitch2.15 conflict


Actual results:
host upgrade failed

Expected results:
host upgrade successed

Additional info:
Error: Transaction test error:
  file /etc/sysconfig/network-scripts/ifdown-ovs conflicts between attempted installs of network-scripts-openvswitch2.11-2.11.3-94.el8fdp.x86_64 and network-scripts-openvswitch2.15-2.15.0-101.el8fdp.x86_64
  file /etc/sysconfig/network-scripts/ifup-ovs conflicts between attempted installs of network-scripts-openvswitch2.11-2.11.3-94.el8fdp.x86_64 and network-scripts-openvswitch2.15-2.15.0-101.el8fdp.x86_64

Comment 1 Michael Burman 2022-05-26 10:25:48 UTC
Hi Pavol,

Is it blocking automation? upgrade flow?

Comment 2 Ales Musil 2022-05-26 11:39:26 UTC
For the time being the WA is to remove the network-scripts-openvswitch2.11 package and do the upgrade.

Comment 3 Martin Perina 2022-06-01 07:43:32 UTC
Adding Obsoletes to ovirt-openvswitch might be too strong, it would be better to uninstall network-scripts-openvswitch2.11 during  host upgrade. Because of that moving to engine

Comment 4 Ales Musil 2022-06-01 07:57:36 UTC
There is variable 'ovirt_openvswitch_pre' in ansible that might be useful e.g. remove the package only if "ovirt_openvswitch_pre.version is version('2.11', '==')".

Comment 5 Pavol Brilla 2022-06-06 08:09:19 UTC
Hi Pavol,

Is it blocking automation? upgrade flow?

==========

Not in current state, I discovered it during manual try, automation for host upgrade, which will be blocked by this, is on the way, but as WA is simple I will implement WA to automation with bugzilla comment.

Comment 8 Pavol Brilla 2022-07-01 16:24:53 UTC
Host upgrade failed 4.4.2 > 4.5.1

Software Version:4.5.1.2-0.11.el8ev

2022-07-01 18:56:43 IDT - TASK [ovirt-host-upgrade : Install ovirt-host package if it isn't installed] ***
2022-07-01 18:57:13 IDT - {
  "uuid" : "09a5891a-ef4c-4660-a8c5-5940161924e2",
  "counter" : 148,
  "stdout" : "fatal: [HOST_FQDN]: FAILED! => {\"changed\": false, \"failures\": [], \"msg\": \"Unknown Error occurred: Transaction test error:\\n  file /etc/sysconfig/network-scripts/ifdown-ovs from install of network-scripts-openvswitch2.15-2.15.0-109.el8fdp.x86_64 conflicts with file from package network-scripts-openvswitch2.11-2.11.3-66.el8fdp.x86_64\\n  file /etc/sysconfig/network-scripts/ifup-ovs from install of network-scripts-openvswitch2.15-2.15.0-109.el8fdp.x86_64 conflicts with file from package network-scripts-openvswitch2.11-2.11.3-66.el8fdp.x86_64\\n\", \"rc\": 1, \"results\": []}",
  "start_line" : 143,
  "end_line" : 144,
  "runner_ident" : "cd0f39ae-6732-4c05-ba9a-ba76c3f2307d",
  "event" : "runner_on_failed",
  "pid" : 524082,
  "created" : "2022-07-01T15:57:12.976301",
  "parent_uuid" : "001a4aa0-0100-62f3-4f8c-000000000023",
  "event_data" : {
    "playbook" : "ovirt-host-upgrade.yml",
    "playbook_uuid" : "a0a6201f-9259-4ca0-ae1f-49840bfa97fc",
    "play" : "all",
    "play_uuid" : "001a4aa0-0100-62f3-4f8c-000000000006",
    "play_pattern" : "all",
    "task" : "Install ovirt-host package if it isn't installed",
    "task_uuid" : "001a4aa0-0100-62f3-4f8c-000000000023",
    "task_action" : "yum",
    "task_args" : "",
    "task_path" : "/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-host-upgrade/tasks/main.yml:11",
    "role" : "ovirt-host-upgrade",
    "host" : "HOST_FQDN",
    "remote_addr" : "HOST_IP",
    "res" : {
      "failures" : [ ],
      "results" : [ ],
      "rc" : 1,
      "msg" : "Unknown Error occurred: Transaction test error:\n  file /etc/sysconfig/network-scripts/ifdown-ovs from install of network-scripts-openvswitch2.15-2.15.0-109.el8fdp.x86_64 conflicts with file from package network-scripts-openvswitch2.11-2.11.3-66.el8fdp.x86_64\n  file /etc/sysconfig/network-scripts/ifup-ovs from install of network-scripts-openvswitch2.15-2.15.0-109.el8fdp.x86_64 conflicts with file from package network-scripts-openvswitch2.11-2.11.3-66.el8fdp.x86_64\n",

Comment 9 Martin Perina 2022-07-01 17:29:58 UTC
Could you please attach logs?

Comment 10 Pavol Brilla 2022-07-04 07:44:50 UTC
Provided whole environment to devel

Comment 14 Pavol Brilla 2022-07-11 15:30:55 UTC
Upgrade of host passed with:

 Installed Packages
ovirt-engine.noarch                                                                                                       4.5.1.3-0.28.el8ev

Comment 16 errata-xmlrpc 2022-07-14 12:54:56 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 (RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and 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-2022:5586


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