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

Bug 1213795

Summary: Building python-unittest2 for 3.6
Product: Red Hat Enterprise Virtualization Manager Reporter: Sandro Bonazzola <sbonazzo>
Component: Build SubsystemAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: Artyom <alukiano>
Severity: low Docs Contact:
Priority: medium    
Version: 3.6.0CC: adahms, gklein, istein, jboggs, lsurette, oourfali, pstehlik, rbalakri, Rhev-m-bugs, sbonazzo, yeylon, ykaul, ylavi
Target Milestone: ovirt-3.6.0-rcKeywords: Triaged
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-unittest2-0.5.1-7.el7ev Doc Type: Enhancement
Doc Text:
This update provides a new python-unittest2 package, which is a required dependency for the python-mock package.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 19:58:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1212456    

Description Sandro Bonazzola 2015-04-21 10:22:54 UTC
ovirt-hosted-engine-ha requires python-mock as BuildRequires which requires python-unittest2.

Comment 5 Artyom 2015-06-30 07:44:52 UTC
I do not see any python-mock or python-unittest packages after installation of ovirt-hosted-engine-setup, also I ran deployment and it succeed.
So can you provide me steps to verify this bug?

Comment 6 Artyom 2015-06-30 07:45:25 UTC
checked on:
ovirt-hosted-engine-ha-1.3.0-0.0.master.20150615153650.20150615153645.git5f8c290.el7.noarch
ovirt-hosted-engine-setup-1.3.0-0.0.master.20150623153111.git68138d4.el7.noarch

Comment 7 Sandro Bonazzola 2015-06-30 07:54:36 UTC
They're build dependencies so they're not installed by default.
You should be able to download the src.rpm:
 yumdownloader --source ovirt-hosted-engine-ha
install build dependencies:
 yum-builddep ovirt-hosted-engine-ha*src.rpm

and this step should pull in python-mock package.

for python-unittest:
You should be able to download the src.rpm:
 yumdownloader --source pyhton-mock
install build dependencies:
 yum-builddep python-mock*src.rpm

and this step should pull in python-unittest package.

Please note this test should be performed on downstream repository, not on upstream since upstream you'll have python-mock and python-unittest2 provided by EPEL repository. So I suggest to wait for testing this.

Comment 8 Artyom 2015-06-30 13:19:29 UTC
ok thanks Sandro

Comment 9 Artyom 2015-09-01 12:10:05 UTC
Hi Sandro I tried to download some src package, but:
yumdownloader --source ovirt-hosted-engine-ha
Loaded plugins: langpacks, product-id
Repository rhev-72-hypervisor is listed more than once in the configuration
extra_repo                                                                                                | 2.9 kB  00:00:00     
glusterfs-epel                                                                                            | 2.9 kB  00:00:00     
glusterfs-noarch-epel                                                                                     | 2.9 kB  00:00:00     
rhel-7.2                                                                                                  | 4.1 kB  00:00:00     
rhel-72-optional                                                                                          | 3.8 kB  00:00:00     
rhev-72-hypervisor                                                                                        | 2.6 kB  00:00:00     
rhev-master                                                                                               | 2.9 kB  00:00:00     
No source RPM found for ovirt-hosted-engine-ha-1.3.0-0.3.beta.git183a4ff.el7ev.noarch

Can you please provide me all necessary repositories, where I can src pakages?
Thanks

Comment 10 Sandro Bonazzola 2015-09-01 13:00:46 UTC
looks like CI team is not collecting the src.rpm in the test repos.
Joey, can you advise on which repo Artyom can enable in order to get src.rpm from 
rhevm-3.6-rhel-7-candidate tag?

Comment 11 Artyom 2015-09-07 13:59:46 UTC
Verified on packages:
ovirt-hosted-engine-ha-1.3.0-0.4.beta.git1bcfe28.el7ev.src.rpm
python-mock-1.0.1-5.el7ev.src.rpm

yum-builddep python-mock*src.rpm           
Loaded plugins: langpacks, product-id
Repository rhev-72-hypervisor is listed more than once in the configuration
extra_repo                                                                                                                          | 2.9 kB  00:00:00     
rhel-7.2                                                                                                                            | 4.1 kB  00:00:00     
rhel-72-optional                                                                                                                    | 3.8 kB  00:00:00     
rhev-72-hypervisor                                                                                                                  | 2.6 kB  00:00:00     
Getting requirements for python-mock-1.0.1-5.el7ev.src
 --> python-devel-2.7.5-31.el7.x86_64
 --> python-setuptools-0.9.8-4.el7.noarch
 --> python-unittest2-0.5.1-7.el7ev.noarch
--> Running transaction check
---> Package python-devel.x86_64 0:2.7.5-31.el7 will be installed
---> Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed
---> Package python-unittest2.noarch 0:0.5.1-7.el7ev will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================
 Package                                   Arch                           Version                                Repository                           Size
===========================================================================================================================================================
Installing:
 python-devel                              x86_64                         2.7.5-31.el7                           rhel-7.2                            390 k
 python-setuptools                         noarch                         0.9.8-4.el7                            rhel-7.2                            397 k
 python-unittest2                          noarch                         0.5.1-7.el7ev                          rhev-master                         131 k

Transaction Summary
===========================================================================================================================================================
Install  3 Packages


yum-builddep ovirt-hosted-engine-ha*src.rpm                                                                            
Loaded plugins: langpacks, product-id
Repository rhev-72-hypervisor is listed more than once in the configuration
rhev-master                                                                                                                         | 2.9 kB  00:00:00     
rhev-master/7Server/primary_db                                                                                                      |  90 kB  00:00:00     
Getting requirements for ovirt-hosted-engine-ha-1.3.0-0.4.beta.git1bcfe28.el7ev.src
 --> Already installed : python-2.7.5-31.el7.x86_64
 --> python-devel-2.7.5-31.el7.x86_64
 --> python-nose-1.3.0-3.el7.noarch
 --> python-mock-1.0.1-5.el7ev.noarch
 --> Already installed : systemd-219-11.el7.x86_64
 --> autoconf-2.69-11.el7.noarch
 --> automake-1.13.4-3.el7.noarch
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: perl(TAP::Parser) for package: automake-1.13.4-3.el7.noarch
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
---> Package python-devel.x86_64 0:2.7.5-31.el7 will be installed
---> Package python-mock.noarch 0:1.0.1-5.el7ev will be installed
---> Package python-nose.noarch 0:1.3.0-3.el7 will be installed
--> Processing Dependency: python-setuptools for package: python-nose-1.3.0-3.el7.noarch
--> Running transaction check
---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
---> Package python-setuptools.noarch 0:0.9.8-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================
 Package                                   Arch                           Version                                Repository                           Size
===========================================================================================================================================================
Installing:
 autoconf                                  noarch                         2.69-11.el7                            rhel-7.2                            701 k
 automake                                  noarch                         1.13.4-3.el7                           rhel-7.2                            679 k
 python-devel                              x86_64                         2.7.5-31.el7                           rhel-7.2                            390 k
 python-mock                               noarch                         1.0.1-5.el7ev                          rhev-master                          91 k
 python-nose                               noarch                         1.3.0-3.el7                            rhel-7.2                            272 k
Installing for dependencies:
 m4                                        x86_64                         1.4.16-10.el7                          rhel-7.2                            256 k
 perl-Test-Harness                         noarch                         3.28-3.el7                             rhel-7.2                            302 k
 perl-Thread-Queue                         noarch                         3.02-2.el7                             rhel-7.2                             17 k
 python-setuptools                         noarch                         0.9.8-4.el7                            rhel-7.2                            397 k

Transaction Summary
===========================================================================================================================================================
Install  5 Packages (+4 Dependent packages)

Comment 13 errata-xmlrpc 2016-03-09 19:58:46 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.

https://rhn.redhat.com/errata/RHEA-2016-0393.html