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

Bug 1083008

Summary: [vdsm] yum downgrade - configurator should not be called
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavel Stehlik <pstehlik>
Component: vdsmAssignee: Yaniv Bronhaim <ybronhei>
Status: CLOSED ERRATA QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: low    
Version: 3.4.0CC: aberezin, bazulay, gklein, iheim, lbopf, lpeer, oourfali, pstehlik, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
VDSM downgrade is supported for 3.4 to 3.3, but not for 3.4 to 3.2.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-09 13:30:05 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 Pavel Stehlik 2014-04-01 10:06:53 UTC
Description of problem:
 Tried yum downgrade vdsm\*

...
  Installing : vdsm-4.13.2-0.11.el6ev.x86_64                                                                                                                                          4/8 
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 143, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 125, in main
    load_modules()
  File "/usr/bin/vdsm-tool", line 74, in load_modules
    module = imp.load_module(mod_name, mod_fobj, mod_absp, mod_desc)
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/configurator.py", line 25, in <module>
    from .. import utils
ValueError: Attempted relative import in non-package
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 143, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 125, in main
    load_modules()
  File "/usr/bin/vdsm-tool", line 74, in load_modules
    module = imp.load_module(mod_name, mod_fobj, mod_absp, mod_desc)
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/configurator.py", line 25, in <module>
    from .. import utils
ValueError: Attempted relative import in non-package
...


Version-Release number of selected component (if applicable):
from vdsm-4.14.2-0.2.el6ev.x86_64   downgrade
to   vdsm-4.13.2-0.11.el6ev.x86_64

How reproducible:


Steps to Reproduce:
1. had local yum repo of 4.14. version
2. in RHN 4.13.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Yaniv Bronhaim 2014-04-08 23:13:03 UTC
this was fixed with http://gerrit.ovirt.org/#/c/23456/.
can you verify with latest tag (4.14.6) ? if works, we'll close the bug on work on current release

thanks

Comment 2 Pavel Stehlik 2014-04-09 13:25:12 UTC
Unfortunately no,
vdsm-4.14.6-0.1.beta3.el6ev

yum downgrade vdsm\*

...
Resolving Dependencies
--> Running transaction check
---> Package vdsm.x86_64 0:4.10.2-30.1.el6ev will be a downgrade
---> Package vdsm.x86_64 0:4.14.6-0.1.beta3.el6ev will be erased
---> Package vdsm-cli.noarch 0:4.10.2-30.1.el6ev will be a downgrade
---> Package vdsm-cli.noarch 0:4.14.6-0.1.beta3.el6ev will be erased
---> Package vdsm-python.x86_64 0:4.10.2-30.1.el6ev will be a downgrade
---> Package vdsm-python.x86_64 0:4.14.6-0.1.beta3.el6ev will be erased
---> Package vdsm-xmlrpc.noarch 0:4.10.2-30.1.el6ev will be a downgrade
---> Package vdsm-xmlrpc.noarch 0:4.14.6-0.1.beta3.el6ev will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================================================================
 Package                                     Arch                                   Version                                             Repository                                   Size
==========================================================================================================================================================================================
Downgrading:
 vdsm                                        x86_64                                 4.10.2-30.1.el6ev                                   rhevm32sf23                                 689 k
 vdsm-cli                                    noarch                                 4.10.2-30.1.el6ev                                   rhevm32sf23                                  54 k
 vdsm-python                                 x86_64                                 4.10.2-30.1.el6ev                                   rhevm32sf23                                  88 k
 vdsm-xmlrpc                                 noarch                                 4.10.2-30.1.el6ev                                   rhevm32sf23                                  28 k

Transaction Summary
==========================================================================================================================================================================================
Downgrade     4 Package(s)

Total download size: 860 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): vdsm-4.10.2-30.1.el6ev.x86_64.rpm                                                                                                                           | 689 kB     00:00     
(2/4): vdsm-cli-4.10.2-30.1.el6ev.noarch.rpm                                                                                                                       |  54 kB     00:00     
(3/4): vdsm-python-4.10.2-30.1.el6ev.x86_64.rpm                                                                                                                    |  88 kB     00:00     
(4/4): vdsm-xmlrpc-4.10.2-30.1.el6ev.noarch.rpm                                                                                                                    |  28 kB     00:00     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                     2.7 MB/s | 860 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : vdsm-python-4.10.2-30.1.el6ev.x86_64                                                                                                                                   1/8 
  Installing : vdsm-xmlrpc-4.10.2-30.1.el6ev.noarch                                                                                                                                   2/8 
  Installing : vdsm-cli-4.10.2-30.1.el6ev.noarch                                                                                                                                      3/8 
  Installing : vdsm-4.10.2-30.1.el6ev.x86_64                                                                                                                                          4/8 
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 143, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 125, in main
    load_modules()
  File "/usr/bin/vdsm-tool", line 74, in load_modules
    module = imp.load_module(mod_name, mod_fobj, mod_absp, mod_desc)
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/configurator.py", line 25, in <module>
    from .. import utils
ValueError: Attempted relative import in non-package
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 143, in <module>
    sys.exit(main())
  File "/usr/bin/vdsm-tool", line 125, in main
    load_modules()
  File "/usr/bin/vdsm-tool", line 74, in load_modules
    module = imp.load_module(mod_name, mod_fobj, mod_absp, mod_desc)
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/configurator.py", line 25, in <module>
    from .. import utils
ValueError: Attempted relative import in non-package
  Cleanup    : vdsm-4.14.6-0.1.beta3.el6ev.x86_64                                                                                                                                     5/8 
warning: /etc/vdsm/vdsm.conf saved as /etc/vdsm/vdsm.conf.rpmsave
  Cleanup    : vdsm-cli-4.14.6-0.1.beta3.el6ev.noarch                                                                                                                                 6/8 
  Cleanup    : vdsm-xmlrpc-4.14.6-0.1.beta3.el6ev.noarch                                                                                                                              7/8 
  Cleanup    : vdsm-python-4.14.6-0.1.beta3.el6ev.x86_64                                                                                                                              8/8 
  Verifying  : vdsm-python-4.10.2-30.1.el6ev.x86_64                                                                                                                                   1/8 
  Verifying  : vdsm-4.10.2-30.1.el6ev.x86_64                                                                                                                                          2/8 
  Verifying  : vdsm-xmlrpc-4.10.2-30.1.el6ev.noarch                                                                                                                                   3/8 
  Verifying  : vdsm-cli-4.10.2-30.1.el6ev.noarch                                                                                                                                      4/8 
  Verifying  : vdsm-python-4.14.6-0.1.beta3.el6ev.x86_64                                                                                                                              5/8 
  Verifying  : vdsm-4.14.6-0.1.beta3.el6ev.x86_64                                                                                                                                     6/8 
  Verifying  : vdsm-xmlrpc-4.14.6-0.1.beta3.el6ev.noarch                                                                                                                              7/8 
  Verifying  : vdsm-cli-4.14.6-0.1.beta3.el6ev.noarch                                                                                                                                 8/8 

Removed:
  vdsm.x86_64 0:4.14.6-0.1.beta3.el6ev     vdsm-cli.noarch 0:4.14.6-0.1.beta3.el6ev     vdsm-python.x86_64 0:4.14.6-0.1.beta3.el6ev     vdsm-xmlrpc.noarch 0:4.14.6-0.1.beta3.el6ev    

Installed:
  vdsm.x86_64 0:4.10.2-30.1.el6ev          vdsm-cli.noarch 0:4.10.2-30.1.el6ev          vdsm-python.x86_64 0:4.10.2-30.1.el6ev          vdsm-xmlrpc.noarch 0:4.10.2-30.1.el6ev

Comment 3 Yaniv Bronhaim 2014-04-13 10:45:28 UTC
this is about downgrade vdsm 3.4 to vdsm 3.2 , the fix was verified between 3.4 to 3.3. putting back bug on new until further check

Comment 7 Pavel Stehlik 2014-04-24 08:36:05 UTC
downgrade is not supported for 3.4 -> 3.2.
3.4 => 3.3 works (4.14.6-0.1.beta3.el6ev => 4.13.2-0.13.el6ev)

Comment 8 errata-xmlrpc 2014-06-09 13:30:05 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0504.html