Closed
Bug 899548
Opened 13 years ago
Closed 12 years ago
set up mock build configs to use mirror lists from the host environment
Categories
(Infrastructure & Operations Graveyard :: CIDuty, task, P2)
Infrastructure & Operations Graveyard
CIDuty
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1022763
People
(Reporter: dustin, Unassigned)
References
Details
Rail noted in bug 895958 that the mock builder configs use 'repos' as the repository hostname. That's no good, since if the puppetmaster that hostname points to is down, mock will fail.
Instead, mock should be using the same mirror lists that the host environment uses.
I filed this in releng because I don't know enough about mock to know how to accomplish this. If there are puppet changes that can help, I'm happy to pitch in.
Comment 1•13 years ago
|
||
The yum mirror lists for mock are managed by puppet e.g.
http://hg.mozilla.org/build/puppet/file/401e2c4bfc39/modules/mockbuild/files/mozilla-centos6-x86_64.cfg
| Reporter | ||
Comment 2•13 years ago
|
||
Well, to be clear, the yum config is managed by puppet. That's using http://repos, not a mirror list.
Mirror lists need to be separate files. Is there a way to add additional files via the mock config?
Comment 3•13 years ago
|
||
The yum.conf man page suggests that separate mirror list files are _not_ needed:
mirrorlist Specifies a URL to a file containing a list of baseurls. This can be used
instead of or with the baseurl option.
baseurl Must be a URL to the directory where the yum repository’s ‘repodata’ direc-
tory lives. Can be an http://, ftp:// or file:// URL. You can specify multiple URLs
in one baseurl statement. The best way to do this is like this:
[repositoryid]
name=Some name for this repository
baseurl=url://server1/path/to/repository/
url://server2/path/to/repository/
url://server3/path/to/repository/
If you list more than one baseurl= statement in a repository you will find yum will
ignore the earlier ones and probably act bizarrely. Don’t do this, you’ve been
warned.
| Reporter | ||
Comment 4•13 years ago
|
||
Oh, cool! Do you want to adjust the generation of the host yum.conf as well as the mock configs, then?
Comment 5•13 years ago
|
||
From what I see on bld-centos6-hp-003, /etc/yum.repos.d/*mirrors are populated already, so we should just need to update the /etc/mock_mozilla/mozilla-centos6*cfg files with extra baseurl values.
| Reporter | ||
Comment 6•13 years ago
|
||
Right, but they should be built the same way - DRY (or at least minimize WET spots, which is often as good as it gets in puppet).
| Assignee | ||
Updated•13 years ago
|
Product: mozilla.org → Release Engineering
| Reporter | ||
Comment 8•12 years ago
|
||
..and is about to close the trees again..
Severity: normal → critical
Comment 9•12 years ago
|
||
Looks like the solution is set out in comment #5, we just need a body to do the work.
Component: Other → Platform Support
Priority: -- → P2
QA Contact: coop
| Reporter | ||
Comment 10•12 years ago
|
||
I'm going to dupe this forward in hopes that bug 1022763 makes it moot.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Updated•8 years ago
|
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Updated•6 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•