Bug 1525539 - teach ovirt-engine-hyper-upgrade to know 4.2-beta
Summary: teach ovirt-engine-hyper-upgrade to know 4.2-beta
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-fast-forward-upgrade
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
urgent
low
Target Milestone: ovirt-4.2.4
: ---
Assignee: Douglas Schilling Landgraf
QA Contact: Jiri Belka
URL:
Whiteboard:
Depends On:
Blocks: 1366900
TreeView+ depends on / blocked
 
Reported: 2017-12-13 14:18 UTC by Jiri Belka
Modified: 2019-05-16 13:06 UTC (History)
7 users (show)

Fixed In Version: ovirt-fast-forward-upgrade-1.0.0-1.el7ev
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-28 06:58:43 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jiri Belka 2017-12-13 14:18:43 UTC
Description of problem:

to improve future, it would be nice if ovirt-engine-hyper-upgrade would know 4.2-beta. it should be be available only via --upgrade-to-rhv=4.2beta...

# grep 'REPOS = ' /usr/sbin/ovirt-engine-hyper-upgrade
RHV_40_REPOS = [
RHV_41_REPOS = [
RHV_42_REPOS = [

Version-Release number of selected component (if applicable):
ovirt-engine-hyper-upgrade-1.0.0-3.el7ev.noarch.rpm

How reproducible:
100%

Steps to Reproduce:
1. when 4.2beta is out, try the tool to ugprade from 4.1 to 4.2beta
2.
3.

Actual results:
not possible, the tool does not know about 4.2beta

Expected results:
should work, we know 4.2beta and the tool can use it

Additional info:

Comment 1 Douglas Schilling Landgraf 2017-12-14 19:01:16 UTC
Jiri, do you mind to share the repos for the beta here please?

Comment 2 Douglas Schilling Landgraf 2017-12-14 22:08:56 UTC
I have tried:

diff --git a/src/ovirt-engine-hyper-upgrade b/src/ovirt-engine-hyper-upgrade
index df30ec0..72c96da 100755
--- a/src/ovirt-engine-hyper-upgrade
+++ b/src/ovirt-engine-hyper-upgrade
@@ -41,6 +41,14 @@ RHV_41_REPOS = [
     "jb-eap-7-for-rhel-7-server-rpms"
 ]
 
+RHV_42_BETA_REPOS = [
+    "rhel-7-server-supplementary-rpms",
+    "rhel-7-server-rpms",
+    "rhel-7-server-rhv-4-beta-rpms",
+    "rhel-7-server-rhv-4-tools-beta-rpms",
+    "jb-eap-7-for-rhel-7-server-rpms"
+]
+
 RHV_42_REPOS = [
     "rhel-7-server-supplementary-rpms",
     "rhel-7-server-rpms",
@@ -60,8 +68,8 @@ CHECK_RELEASES['repos'] = [
     },
     {
         'version': '4.1',
-        'repo_to_enable': set(RHV_42_REPOS) - set(RHV_41_REPOS),
-        'repo_to_disable': set(RHV_41_REPOS) - set(RHV_42_REPOS)
+        'repo_to_enable': set(RHV_42_BETA_REPOS) - set(RHV_41_REPOS),
+        'repo_to_disable': set(RHV_41_REPOS) - set(RHV_42_BETA_REPOS)
     }
 ]

However, I don't see rhevm-4.2 packages.

# yum update
Loaded plugins: product-id, search-disabled-repos, subscription-manager, versionlock
No packages marked for update
[root@engine ~]# rpm -qa | grep rhevm
rhevm-branding-rhev-4.1.8-1.el7ev.noarch
rhevm-setup-plugins-4.1.3-1.el7ev.noarch
rhevm-4.1.8.2-0.1.el7.noarch
rhevm-doc-4.1.8-1.el7ev.noarch
rhevm-dependencies-4.1.1-1.el7ev.noarch

Comment 3 Jiri Belka 2017-12-15 08:23:55 UTC
Pavol, what's 4.2 repo and when the packages will be available in 4.2 beta channel? Thx.

Comment 4 Pavol Brilla 2017-12-15 08:50:47 UTC
This is more viable question for Aviv

@Aviv, could you please confirm repos names, which will be populated with 4.2 Beta today? I am not 100%, if I am right here:

rhel-7-server-rhv-4.2-manager-beta-rpms
rhel-7-server-rhv-4-manager-tools-beta-rpms

Comment 8 Jiri Belka 2017-12-18 14:43:14 UTC
ok

# rpm -q ovirt-engine-hyper-upgrade
ovirt-engine-hyper-upgrade-1.0.0-4.el7ev.noarch

# grep 'REPOS = ' /usr/sbin/ovirt-engine-hyper-upgrade
RHV_40_REPOS = [
RHV_41_REPOS = [
RHV_42_BETA_REPOS = [
RHV_42_REPOS = [

Comment 12 Franta Kust 2019-05-16 13:06:16 UTC
BZ<2>Jira Resync


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