[JIRA] (OVIRT-2901) some sync_mirror jobs fail due to cache error of another repo
by Barak Korren (oVirt JIRA)
[ https://ovirt-jira.atlassian.net/browse/OVIRT-2901?page=com.atlassian.jir... ]
Barak Korren commented on OVIRT-2901:
-------------------------------------
I remember talking to [~accountid:557058:caa507e4-2696-4f45-8da5-d2585a4bb794] about this befoe, maybe we already have a ticket on this.
The reason this happens is because the ` {{ data/mirrors-reposync.conf }} ` file is shared between all mirrors, so the ` {{ reposync }} ` command for each mirror tryies to fetch metadate for all mirrors.
The way to solve this is the change the ` {{ mirror_mgr }} ` script to remove the data for all other mirrors when running for a particular mirror (We can do this to the file directly, because each mirror job clones the ` {{ jenkins }} ` repo on its own and therfor has its own local copy of the file).
Its possible to do this with a single ` {{ sed }} ` command, I think we even prototyped it at some point, so please look for previous tickets about this.
> some sync_mirror jobs fail due to cache error of another repo
> -------------------------------------------------------------
>
> Key: OVIRT-2901
> URL: https://ovirt-jira.atlassian.net/browse/OVIRT-2901
> Project: oVirt - virtualization made easy
> Issue Type: Bug
> Reporter: Shlomi Zidmi
> Assignee: infra
> Priority: Low
>
> In the recent days some sync_mirror jobs have been failing with the following error:
> Error setting up repositories: Error making cache directory: /home/jenkins/mirrors_cache/centos-qemu-ev-release-el7 error was: [Errno 17] File exists: '/home/jenkins/mirrors_cache/centos-qemu-ev-release-el7'
> As an example, a build of fedora-updates-fc29 failed with this error:
> https://jenkins.ovirt.org/job/system-sync_mirrors-fedora-updates-fc29-x86...
--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100124)
5 years