<font size=2 face="sans-serif">First off, I apologize for the lengthy
message, but I hope to eventually contribute to this project via code and/or
docs. (I've already updated the Server Setup wiki page where I felt
knowledgeable enough.)</font>
<br>
<br><font size=2 face="sans-serif">I'm loosely following the wiki page[1]
for this process but may have myself confused about what some steps do
and what overall is required. I want a Koji instance for building
internally developed packages. I would rarely, if ever, want to rebuild
a package already provided in Fedora. I've got lots of experience
using rpmbuild and recently a little with mock, but am trying for a full
fledged setup with Koji now to improve my workflow. For now, I am
focusing on builds for F19 only, but will eventually add others to basically
follow Fedora's EoL schedule.</font>
<br>
<br><font size=2 face="sans-serif">Thus far, I have:</font>
<ol>
<li value=1><font size=2 face="sans-serif">A basic setup working and can
now login thanks to Mike's excellent help.</font>
<li value=2><font size=2 face="sans-serif">A "f19" tag and a
child "f19-build" tag for arches i386 and x86_64.</font>
<li value=3><font size=2 face="sans-serif">Successfully imported the SRPMs
for my locally developed packages only. I didn't import any binary
RPMs as I wanted to see that Koji could do that as a test. I also
didn't import anything of the Fedora-provided packages since I'm not interested
in building those.</font>
<li value=4><font size=2 face="sans-serif">A "f19" build target.</font>
<li value=5><font size=2 face="sans-serif">A build group named "build"
associated with my "f19-build" tag.</font>
<li value=6></ol><font size=2 face="sans-serif">I've tried doing a build
of one of my SRPMs that I had imported and keep meeting failure. Examination
of the root.log revealed only a few things, but none that sounded to worrisome:</font>
<br>
<br><font size=2 face="sans-serif">DEBUG util.py:266: There is no
installed groups file.</font>
<br><font size=2 face="sans-serif">DEBUG util.py:266: Warning: Group
build does not have any packages to install.</font>
<br>
<br><font size=2 face="sans-serif">When I got to the mock_output.log however,
I saw this which I'm guessing is the reason for failure:</font>
<br>
<br><font size=2 face="sans-serif">ERROR: Could not find useradd in chroot,
maybe the install failed?</font>
<br>
<br><font size=2 face="sans-serif">Seeing this I figured it was due to
skipping the step for populating the "build" group with packages
to be installed in the minimal buildroot. I skipped this because
the instructions fail for me since I my FAS account isn't set up sufficiently
to let me to auth against the real Fedora Koji instance, i.e., I don't
have a signed user cert. Knowing that my current mock setup can manage
this, I dug into its config and stumbled upon the "buildsys-build"
package name and thus came up with:</font>
<br>
<br><font size=2 face="sans-serif">$ yum group info buildsys-build</font>
<br><font size=2 face="sans-serif">Loaded plugins: langpacks</font>
<br><font size=2 face="sans-serif">There is no installed groups file.</font>
<br><font size=2 face="sans-serif">Maybe run: yum groups mark convert</font>
<br>
<br><font size=2 face="sans-serif">Group: Buildsystem building group</font>
<br><font size=2 face="sans-serif"> Group-Id: buildsys-build</font>
<br><font size=2 face="sans-serif"> Mandatory Packages:</font>
<br><font size=2 face="sans-serif"> bash</font>
<br><font size=2 face="sans-serif"> bzip2</font>
<br><font size=2 face="sans-serif"> coreutils</font>
<br><font size=2 face="sans-serif"> cpio</font>
<br><font size=2 face="sans-serif"> diffutils</font>
<br><font size=2 face="sans-serif"> fedora-release</font>
<br><font size=2 face="sans-serif"> findutils</font>
<br><font size=2 face="sans-serif"> gawk</font>
<br><font size=2 face="sans-serif"> gcc</font>
<br><font size=2 face="sans-serif"> gcc-c++</font>
<br><font size=2 face="sans-serif"> grep</font>
<br><font size=2 face="sans-serif"> gzip</font>
<br><font size=2 face="sans-serif"> info</font>
<br><font size=2 face="sans-serif"> make</font>
<br><font size=2 face="sans-serif"> patch</font>
<br><font size=2 face="sans-serif"> redhat-rpm-config</font>
<br><font size=2 face="sans-serif"> rpm-build</font>
<br><font size=2 face="sans-serif"> sed</font>
<br><font size=2 face="sans-serif"> shadow-utils</font>
<br><font size=2 face="sans-serif"> tar</font>
<br><font size=2 face="sans-serif"> unzip</font>
<br><font size=2 face="sans-serif"> util-linux</font>
<br><font size=2 face="sans-serif"> which</font>
<br><font size=2 face="sans-serif"> xz</font>
<br>
<br><font size=2 face="sans-serif">This looks like a minimal buildroot
to me, so I commenced with that list:</font>
<br>
<br><font size=2 face="sans-serif">$ koji add-group-pkg f19-build build
bash bzip2 coreutils cpio diffutils fedora-release findutils gawk gcc gcc-c++
grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils
tar unzip util-linux which xz</font>
<br>
<br><font size=2 face="sans-serif">I believe these are now "in place"
correctly since:</font>
<br>
<br><font size=2 face="sans-serif">$ koji list-groups f19-build</font>
<br><font size=2 face="sans-serif">build [f19-build]</font>
<br><font size=2 face="sans-serif"> bash: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> bzip2: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> coreutils: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> cpio: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> diffutils: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> fedora-release: None, default
[f19-build]</font>
<br><font size=2 face="sans-serif"> findutils: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> gawk: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> gcc: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> gcc-c++: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> grep: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> gzip: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> info: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> make: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> patch: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> redhat-rpm-config: None, default
[f19-build]</font>
<br><font size=2 face="sans-serif"> rpm-build: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> sed: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> shadow-utils: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> tar: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> unzip: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> util-linux: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> which: None, default [f19-build]</font>
<br><font size=2 face="sans-serif"> xz: None, default [f19-build]</font>
<ol>
<li value=1></ol><font size=2 face="sans-serif">However, when I resubmitted
my build request, it failed and I see the same warnings/errors in the logs.
I also see this in /var/log/kojid.log:</font>
<br>
<br><font size=2 face="sans-serif">2013-10-22 16:48:57,582 [DEBUG] koji.TaskManager:
bins: {'1:noarch': 1, '2:noarch': 1, '1:x86_64': 1, '1:i386': 1, '2:x86_64':
1, '2:i386': 1}</font>
<br><font size=2 face="sans-serif">2013-10-22 16:49:12,598 [DEBUG] koji:
Traceback (most recent call last):</font>
<br><font size=2 face="sans-serif"> File "/usr/lib/python2.7/site-packages/koji/__init__.py",
line 1895, in _callMethod</font>
<br><font size=2 face="sans-serif"> return self._sendCall(handler,
headers, request)</font>
<br><font size=2 face="sans-serif"> File "/usr/lib/python2.7/site-packages/koji/__init__.py",
line 1806, in _sendCall</font>
<br><font size=2 face="sans-serif"> return self._sendOneCall(handler,
headers, request)</font>
<br><font size=2 face="sans-serif"> File "/usr/lib/python2.7/site-packages/koji/__init__.py",
line 1825, in _sendOneCall</font>
<br><font size=2 face="sans-serif"> cnx.send(request)</font>
<br><font size=2 face="sans-serif"> File "/usr/lib64/python2.7/httplib.py",
line 805, in send</font>
<br><font size=2 face="sans-serif"> self.sock.sendall(data)</font>
<br><font size=2 face="sans-serif"> File "/usr/lib/python2.7/site-packages/koji/ssl/SSLConnection.py",
line 111, in sendall</font>
<br><font size=2 face="sans-serif"> self.close()</font>
<br><font size=2 face="sans-serif"> File "/usr/lib/python2.7/site-packages/koji/ssl/SSLConnection.py",
line 82, in close</font>
<br><font size=2 face="sans-serif"> self.shutdown()</font>
<br><font size=2 face="sans-serif"> File "/usr/lib/python2.7/site-packages/koji/ssl/SSLConnection.py",
line 53, in shutdown</font>
<br><font size=2 face="sans-serif"> self.__dict__["conn"].shutdown()</font>
<br><font size=2 face="sans-serif">Error: []</font>
<br>
<br><font size=2 face="sans-serif">2013-10-22 16:49:12,599 [INFO] koji:
Try #1 for call 1328 (listBuildroots) failed: []</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">I suspect I'm really close now, but
have done something silly that's not obvious to me. Any pointers
will be greatly appreciated.</font>
<br>
<br><font size=2 face="sans-serif">[1] </font><a href=https://fedoraproject.org/wiki/Koji/ServerBootstrap><font size=2 face="sans-serif">https://fedoraproject.org/wiki/Koji/ServerBootstrap</font></a>
<br><font size=2 face="sans-serif"><br>
--<br>
John Florian</font>
<br>
<br>