1,885
edits
Changes
→Start Kojid
[[Category:Fedora ARM Secondary Architecture]][[Category:Winter 2010 SBR600]]= Goal = To configure a Koji Daemon - Builder =builder system (either VM or physical hardware).
Kojid is the build daemon that runs on each of the build machines. Its primary responsibility is polling for incoming build requests and handling them accordingly. Koji also has support for tasks other than building. Creating install images is one example. kojid is responsible for handling these tasks as well. kojid uses mock for building. It also creates a fresh buildroot for every build. kojid is written in Python and communicates with koji-hub via XML-RPC.
* /etc/kojid/kojid.conf - Koji Daemon Configuration
* /etc/sysconfig/kojid - Koji Daemon Switches
== Required Configuration Storage Space ==
Ensure that there is a good amount of space on the ARM system for mock (<code>/var/lib/mock</etccode> and <code>/kojidvar/cache/mock</kojidcode>) before proceeding. You will want a minimum of about 8GB. On the ARM VMs, you may need to increase the VM size.confStop the VM, add additional storage, and then restart the VM: ''This needs to point at your koji-hub.'On the VM:'''<pre> poweroff ; The URL Allow 30 seconds for the xmlrpc serversystem shutdown. '''On HongKong:''' virsh destroy ''domain''server dd if=http:/dev/zero bs=1M count=8192 >>/var/lib/libvirt/images/arm/''domain''.img fsck -f /var/lib/libvirt/images/arm/hongkong''domain''.proximityimg resize2fs /var/lib/libvirt/images/arm/''domain''.onimg virsh start ''domain'' Where ''domain'' is the VM name, such as <code>arm-001-999</code>.ca If using a physical ARM system, ensure that <code>/var/lib/mock</code> and <code>/var/kojihubcache/mock</code> have sufficient space, perhaps by symlinking them to subdirectories of the mountpoint of an external disk, NFS share, or iSCSI block device. == Install kojid == yum install koji-builder
== Koji Configuration ==
/etc/kojid/kojid.conf:
''This needs to point at your koji-hub.''
==== SSL Certificates For Authentication ====
Copy the appropriate certificate(s) from <code>HongKong:/etc/pki/koji/certs/</code>
/etc/kojid/kojid.conf:
;client certificate ; This should reference the builder certificate we created above, for ; kojibuilder1.example.com cert = /etc/kojid/arm-001-008.pem ;certificate of the CA that issued the client certificate ca = /etc/kojid/koji_ca_cert.crt ;certificate of the CA that issued the HTTP server certificate serverca = /etc/kojid/koji_ca_cert.crt ==== Start Kojid ===={{Admon/important|Koji Host Entry|Before starting Kojid, make sure that the entry for your builder is in the database. The command to do this (as ''kojiadmin'' on HongKong) is <code>koji add-host ''hostname'' armv5tel</code>}}
== Testing ==Check <code>/var/log/kojid.log</precode>on the builder to verify that kojid has started successfully.