Bug 1378118

Summary: python-windows-2.7.8 rpm package in ovirt repositories is corrupt
Product: [oVirt] ovirt-distribution Reporter: Rose Dovell <dovellrtest>
Component: GeneralAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED WORKSFORME QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, dovellrtest, oourfali, pstehlik
Target Milestone: ovirt-4.0.5Flags: sbonazzo: needinfo? (dovellrtest)
sbonazzo: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack?
pstehlik: testing_ack+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-22 12:31:32 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:

Description Rose Dovell 2016-09-21 13:55:16 UTC
Description of problem:
python-windows-2.7.8-2.fc23.noarch.rpm is corrupt(on at least several if not all mirrors) of ovirt-engine 4.0 packages, preventing mirroring to local repositories.  This has been tested on several machines running RHEL 7.  This corruption results in failed downloads and odd permission denied errors regardless of the permissions on the rpm file or the SELinux context.

Version-Release number of selected component (if applicable):
2.7.8-2

How reproducible:
Here is a simple example to demonstrate that the package is corrupted, what I am actually trying to do is clone the repo using reposync.

yum install --download-only --downloaddir=/tmp python-windows

Steps to Reproduce:
1. Install the ovirt-release package to install the YUM repository for ovirt-4.0
2. Run yum install --download-only --downloaddir=/tmp python-windows

Actual results:
Total download size: 15 M
Installed size: 16 M
Background downloading packages, then exiting:
python-windows-2.7.8-2.fc23.no FAILED                                          3% [===============================================================-    ] 2.9 MB/s |  14 MB  00:00:00 ETA 
http://ftp.plusline.net/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening file from http://ftp.plusline.net/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://www.gtlib.gatech.edu/pub/oVirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://www.gtlib.gatech.edu/pub/oVirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
ftp://ftp.gtlib.gatech.edu/pub/oVirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from ftp://ftp.gtlib.gatech.edu/pub/oVirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://mirror.linux.duke.edu/ovirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://mirror.linux.duke.edu/ovirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://resources.ovirt.org/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://resources.ovirt.org/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://mirrors.ibiblio.org/ovirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://mirrors.ibiblio.org/ovirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://mirror.isoc.org.il/pub/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://mirror.isoc.org.il/pub/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://mirror.slu.cz/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://mirror.slu.cz/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://mirrors.rit.edu/ovirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://mirrors.rit.edu/ovirt/pub/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://ftp.snt.utwente.nl/pub/software/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://ftp.snt.utwente.nl/pub/software/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.
python-windows-2.7.8-2.fc23.no FAILED                                          
http://ftp.nluug.nl/os/Linux/virtual/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm: [Errno 16] error opening local file from http://ftp.nluug.nl/os/Linux/virtual/ovirt/ovirt-4.0/rpm/el7Workstation/noarch/python-windows-2.7.8-2.fc23.noarch.rpm, IOError: [Errno 1] Operation not permitted: '/tmp/python-windows-2.7.8-2.fc23.noarch.rpm.24465.tmp'
Trying other mirror.



Expected results:
File is downloaded and readable

Additional info:
The package often does not download at all, but when it does, it is corrupt.

Comment 1 Red Hat Bugzilla Rules Engine 2016-09-22 08:17:46 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 2 Sandro Bonazzola 2016-09-22 12:31:32 UTC
I'm not able to reproduce your issue.
Please be sure that your network connection is working correctly

# LC_ALL=C yum install --downloadonly --downloaddir=/tmp python-windows
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * ovirt-4.0: ftp.nluug.nl
 * ovirt-4.0-epel: mirror.switch.ch
Resolving Dependencies
--> Running transaction check
---> Package python-windows.noarch 0:2.7.8-2.fc23 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================
 Package                  Arch             Version                  Repository           Size
==============================================================================================
Installing:
 python-windows           noarch           2.7.8-2.fc23             ovirt-4.0            15 M

Transaction Summary
==============================================================================================
Install  1 Package

Total download size: 15 M
Installed size: 16 M
Background downloading packages, then exiting:
python-windows-2.7.8-2.fc23.noarch.rpm                                 |  15 MB  00:00:29     
exiting because "Download Only" specified



I'm going to close this as Worksforme. Please reopen if you're able to provide a reliable way to reproduce the issue.

About the selinux context, be sure that you've configured correctly selinux on your system, yum need selinux permission for saving content in a directory its not supposed to write to.