<br><tt><font size=2>Thank You, Dan.  My answers are below... </font></tt>
<br><tt><font size=2> </font></tt>
<br><tt><font size=2>> Dan Williams <dcbw@redhat.com> wrote on
07/06/2006 09:59:33 AM:<br>
<br>
> On Tue, 2006-07-04 at 09:58 -0400, Joe Todaro wrote:<br>
> > <br>
> > Hi,  <br>
> > I'm having a problem *not* being able to build 'i686' packages
(i.e.<br>
> > optional_arches=i686) anymore *after* having upgraded our plague<br>
> > server/builder (Opteron x86_64) a couple of weeks ago from<br>
> > plague-0.4.3 to *plague-0.5.0*. The problem happens only with
i686<br>
> > (optional_arches=i686) -- not with i386 (base_arches=i386) which<br>
> > continues to work flawlessly.   <br>
> <br>
> Sounds like a bug; do the builder logs show anything, i.e. does the<br>
> server farm the job out to builders?  </font></tt>
<br>
<br><tt><font size=2>The builder log shows nothing--the job is definitely
*not* farmed out to the builder.</font></tt>
<br>
<br><tt><font size=2>> Note that as of Jun 21st, I<br>
> committed a fix to the builders that was causing stuff that needed<br>
> setarch to not work correctly, but that doesn't sound like this problem.</font></tt>
<br>
<br><tt><font size=2>I know--I installed your builder/BuilderMock.py updates
on June 28th hoping that might help.</font></tt>
<br>
<br><tt><font size=2>Also, a few days ago I upgraded Mock to the latest
version, mock-0.6-1, hoping that might help.</font></tt>
<br>
<br><tt><font size=2>I also forgot to mention sooner that we only use Passive
Buliders -- not Active Builders.</font></tt>
<br><tt><font size=2> <br>
> <br>
> If the job doesn't go to the builder, there are some known issues
where<br>
> plague will just not farm the job out to anyone if the builder config<br>
> files aren't just right.  The builder doesn't think it supports
a<br>
> particular target and so of course the server won't try to build on
that<br>
> target.  Try double-checking your plague-builder targets config
files<br>
> and make _sure_ they support every architecture you want to build
on<br>
> (i386, i686, i586, etc).</font></tt>
<br>
<br>
<br><tt><font size=2>Hopefully these next five sections will help shed
more light...   </font></tt>
<br><tt><font size=2>- - - - -</font></tt>
<br><tt><font size=2>(1 of 5) Here's what our /etc/plague/builder/plague-builder.cfg
file looks like (with hostname/server changes to protect the innocent--that's
me;):</font></tt>
<br><tt><font size=2>- - - - -</font></tt>
<br><tt><font size=2>[Active]</font></tt>
<br><tt><font size=2>fileserver_port = 8889</font></tt>
<br><tt><font size=2>xmlrpc_port = 8888</font></tt>
<br>
<br><tt><font size=2>[Passive]</font></tt>
<br><tt><font size=2>fileserver_port = 8889</font></tt>
<br><tt><font size=2>xmlrpc_port = 8888</font></tt>
<br>
<br><tt><font size=2>[Directories]</font></tt>
<br><tt><font size=2>target_configs_dir = /etc/plague/builder/targets</font></tt>
<br><tt><font size=2>builder_work_dir = /build/builder_work</font></tt>
<br>
<br><tt><font size=2>[SSL]</font></tt>
<br><tt><font size=2>builder_key_and_cert_dir = /etc/plague/builder/certs</font></tt>
<br><tt><font size=2>use_ssl = yes</font></tt>
<br><tt><font size=2>ca_cert = /etc/plague/builder/certs/ca_cert.pem</font></tt>
<br>
<br><tt><font size=2>[General]</font></tt>
<br><tt><font size=2>builder_cmd = /usr/bin/mock</font></tt>
<br><tt><font size=2>builder_user = plague-builder</font></tt>
<br><tt><font size=2>hostname = lnxbuild1.abc.com</font></tt>
<br><tt><font size=2>server = lnxbuild1.abc.com</font></tt>
<br><tt><font size=2>debug = yes</font></tt>
<br><tt><font size=2>comm_type = passive</font></tt>
<br>
<br><tt><font size=2>- - - - -<br>
(2 of 5) Here's what our /etc/plague/builder/targets/lnxaddons-100-i386-install.cfg
file looks like (with distro change to protect the innocent):</font></tt>
<br><tt><font size=2>- - - - -</font></tt>
<br><tt><font size=2>[General]</font></tt>
<br><tt><font size=2>distro=lnxaddons</font></tt>
<br><tt><font size=2>target=100</font></tt>
<br><tt><font size=2>basearch=i386</font></tt>
<br><tt><font size=2>repo=install</font></tt>
<br><tt><font size=2>mock_config=lnxaddons-100-i386-install</font></tt>
<br>
<br><tt><font size=2>- - - - -</font></tt>
<br><tt><font size=2>(3 of 5) Here's what our /etc/mock/lnxaddons-100-i386-install.cfg
file looks like (with baseurl changes to protect the innocent):</font></tt>
<br><tt><font size=2>- - - - -</font></tt>
<br><tt><font size=2>#!/usr/bin/python -tt</font></tt>
<br>
<br><tt><font size=2>import os</font></tt>
<br>
<br><tt><font size=2>config_opts['root'] = 'lnxaddons-100-i386'</font></tt>
<br><tt><font size=2>config_opts['basedir'] = '/var/lib/mock/'</font></tt>
<br><tt><font size=2>config_opts['chroot'] = '/usr/sbin/mock-helper chroot'</font></tt>
<br><tt><font size=2>config_opts['mount'] = '/usr/sbin/mock-helper mount'</font></tt>
<br><tt><font size=2>config_opts['umount'] = '/usr/sbin/mock-helper umount'</font></tt>
<br><tt><font size=2>config_opts['rm'] = '/usr/sbin/mock-helper rm'</font></tt>
<br><tt><font size=2>config_opts['mknod'] = '/usr/sbin/mock-helper mknod'</font></tt>
<br><tt><font size=2>config_opts['yum'] = '/usr/sbin/mock-helper yum'</font></tt>
<br><tt><font size=2>config_opts['runuser'] = '/sbin/runuser'</font></tt>
<br><tt><font size=2>config_opts['buildgroup'] = 'build'</font></tt>
<br><tt><font size=2>config_opts['chrootuser'] = 'aobuild'</font></tt>
<br><tt><font size=2>config_opts['chrootgroup'] = 'aobuild'</font></tt>
<br><tt><font size=2>config_opts['chrootuid'] = os.geteuid()</font></tt>
<br><tt><font size=2>config_opts['chrootgid'] = os.getegid()</font></tt>
<br><tt><font size=2>config_opts['chroothome'] = '/builddir'</font></tt>
<br><tt><font size=2>config_opts['clean'] = True</font></tt>
<br><tt><font size=2>config_opts['target_arch'] = 'i386'</font></tt>
<br>
<br><tt><font size=2>config_opts['yum.conf'] = """</font></tt>
<br><tt><font size=2>[main]</font></tt>
<br><tt><font size=2>cachedir=/var/cache/yum</font></tt>
<br><tt><font size=2>debuglevel=1</font></tt>
<br><tt><font size=2>logfile=/var/log/yum.log</font></tt>
<br><tt><font size=2>reposdir=/dev/null</font></tt>
<br><tt><font size=2>retries=20</font></tt>
<br><tt><font size=2>obsoletes=1</font></tt>
<br><tt><font size=2>gpgcheck=0</font></tt>
<br><tt><font size=2>assumeyes=1</font></tt>
<br>
<br><tt><font size=2># repos</font></tt>
<br>
<br><tt><font size=2>[install]</font></tt>
<br><tt><font size=2>name=install</font></tt>
<br><tt><font size=2>baseurl=http://.../rhel4/i386/install/</font></tt>
<br>
<br><tt><font size=2>[updates]</font></tt>
<br><tt><font size=2>name=updates</font></tt>
<br><tt><font size=2>baseurl=http://.../rhel4/updates/</font></tt>
<br>
<br><tt><font size=2>[updates-rhel]</font></tt>
<br><tt><font size=2>name=updates-rhel</font></tt>
<br><tt><font size=2>baseurl=http://.../rhel4/updates/</font></tt>
<br>
<br><tt><font size=2>[groups]</font></tt>
<br><tt><font size=2>name=groups</font></tt>
<br><tt><font size=2>baseurl=file:///build/buildgroups/i386/</font></tt>
<br>
<br><tt><font size=2>[plague]</font></tt>
<br><tt><font size=2>name=plague</font></tt>
<br><tt><font size=2>baseurl=file:///build/yum/lnxaddons-100-install/i386/</font></tt>
<br>
<br><tt><font size=2>"""</font></tt>
<br><tt><font size=2>- - - - -</font></tt>
<br><font size=2 face="sans-serif">(4 of 5) Here's the e-mail that plague
sends to my inbox each time I try to build the i686 (optional arch) e1000
package:</font>
<br><font size=2 face="sans-serif">- - - - -</font>
<br><font size=2 face="sans-serif">Subject: Prep Error (Job 618): /afs/.../SRPMS/e1000/e1000-7.0.38-1_rhel4.src.rpm
on lnxaddons-100-install</font>
<br><tt><font size=2>Package /afs/.../SRPMS/e1000/e1000-7.0.38-1_rhel4.src.rpm
does not build on any architectures this build system supports.<br>
    Package: ['i686']<br>
    Build System: ['i386', 'i386']</font></tt>
<br>
<br><tt><font size=2>- - - - -</font></tt>
<br><tt><font size=2>(5 of 5) Here are all the arches our builders think
they support--i got this info by clicking on the [Builder Status] button
of the web interface: </font></tt>
<br><tt><font size=2>- - - - -</font></tt>
<br>
<br><tt><font size=2>lnxbuild1.abc.com  (0/1)<br>
x86_64, amd64, ia32e, noarch, i386, i486, i586, i686, athlon </font></tt>
<br>
<br><tt><font size=2>lnxppc.abc.com  (0/8)<br>
ppc64, noarch </font></tt>
<br>
<br><tt><font size=2>> <br>
> I'll see if I can look a bit more over the weekend.<br>
> <br>
> Dan<br>
> <br>
> > PLAGUE-0.4.3 / PLAGUE 0.5.0 ARCHES CONFIGURATION: <br>
> > Here's what the Arches section looks like in all<br>
> > the /etc/plague/server/targets/*.cfg files: <br>
> >   [Arches] <br>
> >   base_arches=i386 <br>
> >   optional_arches=i686 noarch <br>
> > <br>
> > PLAGUE-0.4.3 SERVER LOG:  <br>
> > Here's an example of how things used to work (snipped<br>
> > from /var/log/plague-server.log) whenever an i686 package-build<br>
> > request was submitted to our PLAGUE-0.4.3 server: <br>
> >   Request to enqueue 'e1000' tag<br>
> > '/afs/pok/projects/devel/SRPMS/e1000/e1000-7.0.38-1_rhel4.src.rpm'
for<br>
> > target 'ao100' (user 'jstodaro@abc.com') <br>
> >   503 (e1000): Starting tag<br>
> > '/afs/pok/projects/devel/SRPMS/e1000/e1000-7.0.38-1_rhel4.src.rpm'
on<br>
> > target 'lnxaddons-100-install' <br>
> >   503 (e1000): Requesting depsolve... <br>
> >   503 (e1000): Starting depsolve for arches: ['i686']. <br>
> >   503 (e1000): Finished depsolve (successful), requesting
archjobs. <br>
> >   503 (e1000/i686): https://lnxbuild1.abc.com:8888 - UID
is<br>
> > d90078ec928db631ae8f590e6d5491d514cfe4a8 <br>
> >   503 (e1000/i686): Build result files - [ 'mockconfig.log',<br>
> > 'build.log', 'root.log',<br>
> > 'kernel-module-e1000-7.0.38-1.6.9_34.EL_2_rhel4.i686.rpm', 'job.log',<br>
> > 'e1000-7.0.38-1_rhel4.src.rpm',<br>
> > 'kernel-smp-module-e1000-7.0.38-1.6.9_34.EL_2_rhel4.i686.rpm'
] <br>
> >   Repo 'lnxaddons-100-install': updating repository metadata...
<br>
> >   503 (e1000): Job finished. <br>
> > <br>
> > PLAGUE-0.5.0 SERVER LOG:  <br>
> > But here's what happens (snipped from /var/log/plague-server.log)
now,<br>
> > whenever the above i686 package-build request gets submitted
to our<br>
> > "upgraded" plague server/builder running PLAGUE-0.5.0
(absolutely<br>
> > nothing!) <br>
> >   Request to enqueue 'e1000' tag<br>
> > '/afs/pok/projects/devel/SRPMS/e1000/e1000-7.0.38-1_rhel4.src.rpm'
for<br>
> > target 'ao100' (user 'jstodaro@abc.com') <br>
> >   508 (e1000): Starting tag<br>
> > '/afs/pok/projects/devel/SRPMS/e1000/e1000-7.0.38-1_rhel4.src.rpm'
on<br>
> > target 'lnxaddons-100-install' <br>
> >   508 (e1000): Job finished. <br>
> > <br>
> > OBSERVATIONS: <br>
> > o The "last" function executed in the 'PackageJob.py'
module (before<br>
> > it returned to 'BuildMaster.py') was 'arch_handling(self, ba,<br>
> > exclusive, exclude)'. <br>
> > o Adding the following section to /etc/plague/server/targets/*.cfg<br>
> > (including server/builder restart, request resubmit) did *not*
help<br>
> > 'PackageJob.py' to progress any further than the 'arch_handling(self,<br>
> > ba, exclusive, exclude)' function. <br>
> >    [Additional Package Arches] <br>
> >    kernel=i686 <br>
> > o Moving 'i686' from the 'optional_arches' line up to the<br>
> > 'base_arches' line (including server/builder restart, request<br>
> > resubmit) *did* in fact cause 'i686' to be recognized by<br>
> > 'PackageJob.py' (but only as a "base arch" -- not as
an "optional<br>
> > arch" like we need it to be) <br>
> > <br>
> > MY QUESTIONS:  <br>
> > 1. Why is the *optional_arches* tag -- in the [Arches] section
of<br>
> > our /etc/plague/server/*.cfg files -- *no longer* recognized
*after*<br>
> > upgrading to plague-0.5.0?  <br>
> > 2. What are some things I can try, that might help resolve the
above<br>
> > (i.e. getting *plague-0.5.0* to recognize 'i686' as an *optional<br>
> > arch*?) <br>
> > <br>
> > Any help will be much appreciated! .. I have run out of ideas,
and<br>
> > things to try... ;-(  <br>
> > <br>
> > Thanks, <br>
> > --Joe<br>
> > --<br>
> > Fedora-buildsys-list mailing list<br>
> > Fedora-buildsys-list@redhat.com<br>
> > https://www.redhat.com/mailman/listinfo/fedora-buildsys-list<br>
> <br>
</font></tt>
<br><tt><font size=2>-Joe</font></tt>