Difference between revisions of "Fedora ARM Secondary Architecture/Standard Operating Procedures"
(→Create Koji Builder) |
(→Create Koji Builder) |
||
Line 64: | Line 64: | ||
* on hongkong create a certificate to be used with the new host. Certificates are created from the directory '/etc/pki/koji' by running the 'certscript'. | * on hongkong create a certificate to be used with the new host. Certificates are created from the directory '/etc/pki/koji' by running the 'certscript'. | ||
./certscript <hostname> | ./certscript <hostname> | ||
− | * copy the cert (hostname.pem) and 'koji_ca_local+fedora.crt' to the new host | + | * copy the cert (hostname.pem) and 'koji_ca_local+fedora.crt' to the new host machines '/etc/kojid/' folder. |
* In order for createrepo tasks to work successfully you will need to downgrade the createrepo package that is included in F16. Download [http://kojipkgs.fedoraproject.org/packages/createrepo/0.9.8/5.fc14/noarch/createrepo-0.9.8-5.fc14.noarch.rpm createrepo-0.9.8-5.fc14.noarch.rpm ] | * In order for createrepo tasks to work successfully you will need to downgrade the createrepo package that is included in F16. Download [http://kojipkgs.fedoraproject.org/packages/createrepo/0.9.8/5.fc14/noarch/createrepo-0.9.8-5.fc14.noarch.rpm createrepo-0.9.8-5.fc14.noarch.rpm ] | ||
+ | * edit '/etc/kojid/kojid.conf' |
Revision as of 13:23, 19 January 2012
Contents
Daily Infrastructure Duties
- Monitor builder status
- All machines should be ready and enabled.
- Mount points from Hong Kong - Work Space (builder specific, and /mnt/koji).
- Back-ups - Check all automated back ups
- Back-ups are located on Ireland, New Zealand - /var/koji-backup/
- should contain backups of "/etc" and a postgresql dump, run on a daily basis at midnight. These are cronjobs run as root for "/etc" and as koji for the postgresql dump.
- Ireland should also have a full copy of "/mnt/koji". This is a cronjob run under the root account on Hong Kong.
- Back-ups are located on Ireland, New Zealand - /var/koji-backup/
- Check available disk space on all relevant machines - Hongkong, Ireland and New Zealand.
- /var and /mnt/koji on Hong Kong
Repo Compose and Release
Repo Closure
- Run 'depcheck' to ensure no broken dependencies that can be resolved.
- Fix any issues
Compose
- Run 'mash' to create a repository
mash -o /mnt/koji/mash/beta/f13-arm-2011-05-06 f13-arm
Compose Updates
- Run mash against previously composed repository
mash f13-updates-arm -o /mnt/koji/mash/updates/13/ -p /mnt/koji/tree/updates/13/ -d /mnt/koji/tree/releases/13/Everything/ -f /mnt/koji/tree/releases/13/Everything/arm/os/repodata/fce31f091be8211a394d8942fcf4f6cbeffa3d40d87b61af55a97b1a88b46987-Fedora-13-comps.xml
Sign Packages
- Temporarily done with 'rpm --addsign'. This is done on Hong Kong using Paul's account. Pass phrase is the old root password. You will need to enter the pass phrase about five times as the packages are signed.
ls *.rpm | xargs rpm --addsign
- After packages are signed, you must run createrepo again to include the new metadata. Createrepo should be run from the parent directory of "Packages". Please replace the path to groups file accordingly.
createrepo -g /mnt/koji/mash/beta/f13-arm-2011-05-10/f13-arm/arm/os/comps.xml -d .
- Package signing Standards of Practice Packaging SOP
Create new root filesystem
- On the OpenRD using mkrootfs ( script packaged for rootfs creation, installed on openRD ). You will need to edit the fedora-arm-koji.repo file in /etc/yum.repos.d/ to point to the newly created repo.
mkrootfs-f13
- edit rootfs adding in correct URL for yum pointing to the latest compose.
vi etc/yum.repos.d/fedora.repo
- Add in Pandaboard specific hack to "/etc/rc.d/rc.local"
# horrible hack to respawn serial console #while true #do #/sbin/agetty -L 115200 console vt100 #done
- Currently the root file system is hosted on Scotland. Copy the root file system using scp.
scp username@scotland.proximity.on.ca:/var/www/html/fedora-arm/beta/f13/
Update ARM-VM RPM Package
Release
- Email to ARM mailing list
- Blogpost including links
- Wiki page for the release highlighting changes, notes
Create Koji Builder
- install 'koji-builder' rpm package.
yum install koji-builder
- on hongkong create a certificate to be used with the new host. Certificates are created from the directory '/etc/pki/koji' by running the 'certscript'.
./certscript <hostname>
- copy the cert (hostname.pem) and 'koji_ca_local+fedora.crt' to the new host machines '/etc/kojid/' folder.
- In order for createrepo tasks to work successfully you will need to downgrade the createrepo package that is included in F16. Download createrepo-0.9.8-5.fc14.noarch.rpm
- edit '/etc/kojid/kojid.conf'