[ 
https://ovirt-jira.atlassian.net/browse/OVIRT-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38745#comment-38745
 ] 

Barak Korren commented on OVIRT-2641:
-------------------------------------

Maybe we have some sort of a race condition there - AFAIR that cache directory 
is not supposed to be kept around over time... or maybe it does and there was a 
change of behaviour in yum since I wrote the script...

If you feel like trying to debug this, the script is at 
{{scripts/mirror_mgr.sh}} in the jenkins repo.

> mirror_mgr.sh - Build error
> ---------------------------
>
>                 Key: OVIRT-2641
>                 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-2641
>             Project: oVirt - virtualization made easy
>          Issue Type: Bug
>          Components: CI Mirrors
>            Reporter: Liora Milbaum
>            Assignee: infra
>
> From job run:
> [https://jenkins.ovirt.org/blue/organizations/jenkins/system-sync_mirrors-epel-el6-x86_64/detail/system-sync_mirrors-epel-el6-x86_64/2193/pipeline]
> {code}+ jenkins/scripts/mirror_mgr.sh resync_yum_mirror epel-el6 x86_64 
> jenkins/data/mirrors-reposync.conf
> Checking if mirror needs a resync
> Traceback (most recent call last):
>   File "/usr/bin/reposync", line 343, in <module>
>     main()
>   File "/usr/bin/reposync", line 175, in main
>     my.doRepoSetup()
>   File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 681, in 
> doRepoSetup
>     return self._getRepos(thisrepo, True)
>   File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 721, in 
> _getRepos
>     self._repos.doSetup(thisrepo)
>   File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup
>     self.retrieveAllMD()
>   File "/usr/lib/python2.7/site-packages/yum/repos.py", line 88, in 
> retrieveAllMD
>     dl = repo._async and repo._commonLoadRepoXML(repo)
>   File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1465, in 
> _commonLoadRepoXML
>     local  = self.cachedir + '/repomd.xml'
>   File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 774, in 
> <lambda>
>     cachedir = property(lambda self: self._dirGetAttr('cachedir'))
>   File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 757, in 
> _dirGetAttr
>     self.dirSetup()
>   File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 735, in 
> dirSetup
>     self._dirSetupMkdir_p(dir)
>   File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 712, in 
> _dirSetupMkdir_p
>     raise Errors.RepoError, msg
> yum.Errors.RepoError: Error making cache directory: 
> /home/jenkins/mirrors_cache/centos-updates-el7 error was: [Errno 17] File 
> exists: '/home/jenkins/mirrors_cache/centos-updates-el7'
> {code}



--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100096)
_______________________________________________
Infra mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/SXOHGJR2KHCWCIJWXA6B4QTKE5RZFTDV/

Reply via email to