owned this note
owned this note
Published
Linked with GitHub
# Cloud SIG OKD RPM working doc
Notes on building and maintaining the Cloud SIG rpms for OKD.
Build Targets:
- c9s-sig-cloud-okd-4.13
- c9s-sig-cloud-okd-4.14
Requires:
- https://git.centos.org/centos-git-common checked out in $PATH
- `centos-packager` RPM installed
- Run through https://sigs.centos.org/guide/cbs/ to add required permissions to your user
## RPM table
| Package | Repo Branches | Build Target | Build Tags |
| -------- | -------- | -------- | -------- |
| centos-release-cloud ✅ | c9s-sig-cloud | extras9s-extras-common-el9s | extras9s-extras-common-{candidate,testing,release} |
| centos-release-okd-<VERSION> ✅ | c9s-sig-cloud-okd-<VERSION> | extras9s-extras-common-el9s | extras9s-extras-common-{candidate,testing,release} |
| capnproto ✅ | c9s-sig-cloud | cloud9s-okd-<VERSION>-el9s | cloud9s-okd-<VERSION>-{candidate,testing,release} |
| conmon-rs ✅ | c9s-sig-cloud | cloud9s-okd-<VERSION>-el9s | cloud9s-okd-<VERSION>-{candidate,testing,release} |
| cri-tools ✅ | c9s-sig-cloud-okd-<VERSION> | cloud9s-okd-<VERSION>-el9s | cloud9s-okd-<VERSION>-{candidate,testing,release} |
| cri-o ✅ | c9s-sig-cloud-okd-<VERSION> | cloud9s-okd-<VERSION>-el9s | cloud9s-okd-<VERSION>-{candidate,testing,release} |
| golang-github-akavel-rsrc ✅ | c9s-sig-cloud | cloud9s-okd-<VERSION>-el9s | cloud9s-okd-<VERSION>-{candidate,testing,release} |
| golang-github-josephspurrier-goversioninfo ✅ | c9s-sig-cloud | cloud9s-okd-<VERSION>-el9s | cloud9s-okd-<VERSION>-{candidate,testing,release} |
| openshift-clients ✅ | c9s-sig-cloud-okd-<VERSION> | cloud9s-okd-<VERSION>-el9s | cloud9s-okd-<VERSION>-{candidate,testing,release} |
| openshift-hyperkube | c9s-sig-cloud-okd-<VERSION> | cloud9s-okd-<VERSION>-el9s | cloud9s-okd-<VERSION>-{candidate,testing,release} |
## SOP
```bash=
# RPM spec and sources upload
sha512sum --tag <SOURCE>.tar.gz >> sources
echo "/<SOURCE>.tar.gz" >> .gitignore
lookaside_upload_sig -f <SOURCE>.tar.gz -n <pkg_name>
# Koji build
cbs list-permissions --mine
for level in candidate testing release ; do
cbs add-pkg --owner=<FAS_NAME> cloud9s-okd-<VERSION>-${level} <pkg_name>
done
cbs build <TARGET> git+https://git.centos.org/rpms/<pkg_name>.git#<commit_hash>
for level in testing release ; do
cbs tag-build cloud9s-okd-<VERSION>-${level} <pkg_nvr>
done
```
### https://git.centos.org/rpms/centos-release-cloud/tree/c9s-sig-cloud
```bash=
cbs add-pkg --owner=lorbus extras9s-extras-common-candidate centos-release-cloud
cbs add-pkg --owner=lorbus extras9s-extras-common-testing centos-release-cloud
cbs add-pkg --owner=lorbus extras9s-extras-common-release centos-release-cloud
cbs build --scratch extras9s-extras-common-el9s git+https://git.centos.org/rpms/centos-release-cloud.git#aaff59fa3821fa08b8c24d6a4ed4ee994d618c1c
cbs build extras9s-extras-common-el9s git+https://git.centos.org/rpms/centos-release-cloud.git#aaff59fa3821fa08b8c24d6a4ed4ee994d618c1c
cbs tag-build extras9s-extras-common-candidate centos-release-cloud-1-1.el9s
cbs tag-build extras9s-extras-common-testing centos-release-cloud-1-1.el9s
cbs tag-build extras9s-extras-common-release centos-release-cloud-1-1.el9s
```
### centos-release-openstack
- https://git.centos.org/rpms/centos-release-openstack/pull-request/4
- https://git.centos.org/rpms/centos-release-openstack/pull-request/5
- https://git.centos.org/rpms/centos-release-openstack/pull-request/6
### https://git.centos.org/rpms/centos-release-okd
```bash=
cbs add-pkg --owner=lorbus extras9s-extras-common-candidate centos-release-okd
cbs add-pkg --owner=lorbus extras9s-extras-common-testing centos-release-okd
cbs add-pkg --owner=lorbus extras9s-extras-common-release centos-release-okd
cbs add-pkg --owner=lorbus extras9s-extras-common-candidate centos-release-okd-4.13
cbs add-pkg --owner=lorbus extras9s-extras-common-testing centos-release-okd-4.13
cbs add-pkg --owner=lorbus extras9s-extras-common-release centos-release-okd-4.13
cbs add-pkg --owner=lorbus extras9s-extras-common-candidate centos-release-okd-4.14
cbs add-pkg --owner=lorbus extras9s-extras-common-testing centos-release-okd-4.14
cbs add-pkg --owner=lorbus extras9s-extras-common-release centos-release-okd-4.14
cbs build --scratch extras9s-extras-common-el9s git+https://git.centos.org/rpms/centos-release-okd.git#0bf80f8fca338d3ee1b5bd00fb4ec7a03243e658
cbs build extras9s-extras-common-el9s git+https://git.centos.org/rpms/centos-release-okd.git#0bf80f8fca338d3ee1b5bd00fb4ec7a03243e658
cbs tag-build extras9s-extras-common-testing centos-release-okd-4.13-1-1.el9s
cbs tag-build extras9s-extras-common-release centos-release-okd-4.13-1-1.el9s
cbs build --scratch extras9s-extras-common-el9s git+https://git.centos.org/rpms/centos-release-okd.git#8bda180da64f0dbf4bbdcfed10010daaefb50557
cbs build extras9s-extras-common-el9s git+https://git.centos.org/rpms/centos-release-okd.git#8bda180da64f0dbf4bbdcfed10010daaefb50557
cbs tag-build extras9s-extras-common-testing centos-release-okd-4.14-1-1.el9s
cbs tag-build extras9s-extras-common-release centos-release-okd-4.14-1-1.el9s
```
### https://git.centos.org/rpms/capnproto
```bash=
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-candidate capnproto
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-testing capnproto
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-release capnproto
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-candidate capnproto
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-testing capnproto
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-release capnproto
cbs build cloud9s-okd-4.13-el9s git+https://git.centos.org/rpms/capnproto.git#c05808ae5afabe6f087fcb082db018edabac2571
cbs tag-build cloud9s-okd-4.13-testing capnproto-0.10.4-1.el9s
cbs tag-build cloud9s-okd-4.13-release capnproto-0.10.4-1.el9s
cbs tag-build cloud9s-okd-4.14-candidate capnproto-0.10.4-1.el9s
cbs tag-build cloud9s-okd-4.14-testing capnproto-0.10.4-1.el9s
cbs tag-build cloud9s-okd-4.14-release capnproto-0.10.4-1.el9s
```
### https://git.centos.org/rpms/conmon-rs
```bash=
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-candidate conmon-rs
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-testing conmon-rs
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-release conmon-rs
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-candidate conmon-rs
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-testing conmon-rs
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-release conmon-rs
git checkout c9s-sig-cloud
lookaside_upload_sig -f conmon-rs-0.5.1.tar.gz -n conmon-rs
lookaside_upload_sig -f conmonrs-v0.5.1-vendor.tar.gz -n conmon-rs
sha512sum --tag conmon-rs-0.5.1.tar.gz > sources
sha512sum --tag conmonrs-v0.5.1-vendor.tar.gz >> sources
# update specfile, commit and push
cbs build cloud9s-okd-4.13-el9s git+https://git.centos.org/rpms/conmon-rs.git#070ba9e0ee79144b3a8ae1fe605c8ce561581c43
cbs tag-build cloud9s-okd-4.13-testing conmon-rs-0.5.1-1.el9s
cbs tag-build cloud9s-okd-4.13-release conmon-rs-0.5.1-1.el9s
cbs tag-build cloud9s-okd-4.14-candidate conmon-rs-0.5.1-1.el9s
cbs tag-build cloud9s-okd-4.14-testing conmon-rs-0.5.1-1.el9s
cbs tag-build cloud9s-okd-4.14-release conmon-rs-0.5.1-1.el9s
for level in candidate testing release ; do
cbs add-pkg --owner=lorbus cloud9s-okd-4.15-${level} conmon-rs
cbs add-pkg --owner=lorbus cloud9s-okd-4.16-${level} conmon-rs
done
for level in candidate testing release ; do
cbs tag-build cloud9s-okd-4.15-${level} conmon-rs-0.5.1-1.el9s
cbs tag-build cloud9s-okd-4.16-${level} conmon-rs-0.5.1-1.el9s
done
```
### https://git.centos.org/rpms/cri-o
```bash=
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-candidate cri-o
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-testing cri-o
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-release cri-o
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-candidate cri-o
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-testing cri-o
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-release cri-o
git checkout c9s-sig-cloud-okd-4.13
sha512sum --tag cri-o-1.26.3.tar.gz > sources
lookaside_upload_sig -f cri-o-1.26.3.tar.gz -n cri-o
# update specfile, commit and push
cbs build cloud9s-okd-4.13-el9s git+https://git.centos.org/rpms/cri-o.git#f86f3ef6c9a2b61e0a55b131e32b28812b8923b9
cbs tag-build cloud9s-okd-4.13-testing cri-o-1.26.4-1.el9s
cbs tag-build cloud9s-okd-4.13-release cri-o-1.26.4-1.el9s
git checkout c9s-sig-cloud-okd-4.14
sha512sum --tag cri-o-1.27.1.tar.gz > sources
lookaside_upload_sig -f cri-o-1.27.1.tar.gz -n cri-o
# update specfile, commit and push
cbs build cloud9s-okd-4.14-el9s git+https://git.centos.org/rpms/cri-o.git#fd1da25e9e7f09bbac54eb599998d7e18eb17a86
cbs tag-build cloud9s-okd-4.14-testing cri-o-1.27.1-1.el9s
cbs tag-build cloud9s-okd-4.14-release cri-o-1.27.1-1.el9s
for level in candidate testing release ; do
cbs add-pkg --owner=lorbus cloud9s-okd-4.15-${level} cri-o
cbs add-pkg --owner=lorbus cloud9s-okd-4.16-${level} cri-o
done
git checkout c9s-sig-cloud-okd-4.15
sha512sum --tag cri-o-1.28.1.tar.gz > sources
lookaside_upload_sig -f cri-o-1.28.1.tar.gz -n cri-o
# update specfile, commit and push
git push centos c9s-sig-cloud-okd-4.15
cbs build cloud9s-okd-4.15-el9s git+https://git.centos.org/rpms/cri-o.git#79cf7acf67a3088eb66db106359c6118a9f6db6e
for level in candidate testing release ; do
cbs tag-build cloud9s-okd-4.15-${level} cri-o-1.28.1-1.el9s
cbs tag-build cloud9s-okd-4.16-${level} cri-o-1.28.1-1.el9s
done
cbs build cloud9s-okd-4.15-el9s git+https://git.centos.org/rpms/cri-o.git#a44d0f2a166a67ebd83a07730c994a611702eed8
for level in candidate testing release ; do
cbs tag-build cloud9s-okd-4.15-${level} cri-o-1.28.2-1.el9s
cbs tag-build cloud9s-okd-4.16-${level} cri-o-1.28.2-1.el9s
done
for level in candidate testing release ; do
cbs tag-build cloud9s-okd-4.14-${level} cri-o-1.27.2-1.el9s
done
```
### https://git.centos.org/rpms/cri-tools
```bash=
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-candidate cri-tools
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-testing cri-tools
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-release cri-tools
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-candidate cri-tools
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-testing cri-tools
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-release cri-tools
git checkout c9s-sig-cloud-okd-4.13
sha512sum --tag cri-tools-1.26.1.tar.gz > sources
lookaside_upload_sig -f cri-tools-1.26.1.tar.gz -n cri-tools
git push centos c9s-sig-cloud-okd-4.13
# commit and push
cbs build cloud9s-okd-4.13-el9s git+https://git.centos.org/rpms/cri-tools.git#99d2b5af298435e07d820cd51630d6b72c6aff3c
cbs tag-build cloud9s-okd-4.13-testing cri-tools-1.26.1-1.el9s
cbs tag-build cloud9s-okd-4.13-release cri-tools-1.26.1-1.el9s
cbs tag-build cloud9s-okd-4.14-candidate cri-tools-1.26.1-1.el9s
cbs tag-build cloud9s-okd-4.14-testing cri-tools-1.26.1-1.el9s
cbs tag-build cloud9s-okd-4.14-release cri-tools-1.26.1-1.el9s
git checkout c9s-sig-cloud-okd-4.14
sha512sum --tag cri-tools-1.27.0.tar.gz > sources
lookaside_upload_sig -f cri-tools-1.27.0.tar.gz -n cri-tools
git push centos c9s-sig-cloud-okd-4.14
cbs build cloud9s-okd-4.14-el9s git+https://git.centos.org/rpms/cri-tools.git#e717144e035ac24805568dff001ebc43ec9cde5b
# Only tag cri-tools 1.27 into 4.14-testing, not into 4.14-release yet
cbs tag-build cloud9s-okd-4.14-testing cri-tools-1.27.0-1.el9s
cbs tag-build cloud9s-okd-4.14-release cri-tools-1.27.0-1.el9s
sha512sum --tag cri-tools-1.27.1.tar.gz >> sources
lookaside_upload_sig -f cri-tools-1.27.1.tar.gz -n cri-tools
# update spec and commit
git push centos c9s-sig-cloud-okd-4.14
cbs build --scratch cloud9s-okd-4.14-el9s git+https://git.centos.org/rpms/cri-tools.git#fb6a2252a8bf2071438e9d851046b6238b75cddf
cbs build cloud9s-okd-4.14-el9s git+https://git.centos.org/rpms/cri-tools.git#fb6a2252a8bf2071438e9d851046b6238b75cddf
for level in testing release ; do
cbs tag-build cloud9s-okd-4.14-${level} cri-tools-1.27.1-1.el9s
done
for level in candidate testing release ; do
cbs add-pkg --owner=lorbus cloud9s-okd-4.15-${level} cri-tools
cbs add-pkg --owner=lorbus cloud9s-okd-4.16-${level} cri-tools
done
git checkout -b c9s-sig-cloud-okd-4.15
sha512sum --tag cri-tools-1.28.0.tar.gz >> sources
lookaside_upload_sig -f cri-tools-1.28.0.tar.gz -n cri-tools
# update spec and commit
git push centos c9s-sig-cloud-okd-4.15
cbs build --scratch cloud9s-okd-4.15-el9s git+https://git.centos.org/rpms/cri-tools.git#899686bf0b24120bd9f356c4d2282bf984a025c3
cbs build cloud9s-okd-4.15-el9s git+https://git.centos.org/rpms/cri-tools.git#899686bf0b24120bd9f356c4d2282bf984a025c3
for level in candidate testing release ; do
cbs tag-build cloud9s-okd-4.15-${level} cri-tools-1.28.0-1.el9s
cbs tag-build cloud9s-okd-4.16-${level} cri-tools-1.28.0-1.el9s
done
```
## https://git.centos.org/rpms/golang-github-akavel-rsrc
```bash=
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-candidate golang-github-akavel-rsrc
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-testing golang-github-akavel-rsrc
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-release golang-github-akavel-rsrc
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-candidate golang-github-akavel-rsrc
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-testing golang-github-akavel-rsrc
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-release golang-github-akavel-rsrc
sha512sum --tag rsrc-0.10.2.tar.gz > sources
lookaside_upload_sig -f rsrc-0.10.2.tar.gz -n golang-github-akavel-rsrc
git push centos c9s-sig-cloud
cbs build cloud9s-okd-4.13-el9s git+https://git.centos.org/rpms/golang-github-akavel-rsrc.git#2c05b249be1a0b76242ca7b2532b10f095324e50
cbs tag-build cloud9s-okd-4.13-testing golang-github-akavel-rsrc-0.10.2-7.el9s
cbs tag-build cloud9s-okd-4.13-release golang-github-akavel-rsrc-0.10.2-7.el9s
cbs tag-build cloud9s-okd-4.14-candidate golang-github-akavel-rsrc-0.10.2-7.el9s
cbs tag-build cloud9s-okd-4.14-testing golang-github-akavel-rsrc-0.10.2-7.el9s
cbs tag-build cloud9s-okd-4.14-release golang-github-akavel-rsrc-0.10.2-7.el9s
```
## https://git.centos.org/rpms/golang-github-josephspurrier-goversioninfo
```bash=
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-candidate golang-github-josephspurrier-goversioninfo
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-testing golang-github-josephspurrier-goversioninfo
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-release golang-github-josephspurrier-goversioninfo
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-candidate golang-github-josephspurrier-goversioninfo
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-testing golang-github-josephspurrier-goversioninfo
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-release golang-github-josephspurrier-goversioninfo
sha512sum --tag goversioninfo-1.4.0.tar.gz > sources
lookaside_upload_sig -f goversioninfo-1.4.0.tar.gz -n golang-github-josephspurrier-goversioninfo
git push cbs c9s-sig-cloud
cbs build cloud9s-okd-4.13-el9s git+https://git.centos.org/rpms/golang-github-josephspurrier-goversioninfo.git#a0d45e60adb37abd7e5aa00cf1094f0070f38959
cbs tag-build cloud9s-okd-4.13-testing golang-github-josephspurrier-goversioninfo-1.4.0-1.el9s
cbs tag-build cloud9s-okd-4.13-release golang-github-josephspurrier-goversioninfo-1.4.0-1.el9s
cbs tag-build cloud9s-okd-4.14-candidate golang-github-josephspurrier-goversioninfo-1.4.0-1.el9s
cbs tag-build cloud9s-okd-4.14-testing golang-github-josephspurrier-goversioninfo-1.4.0-1.el9s
cbs tag-build cloud9s-okd-4.14-release golang-github-josephspurrier-goversioninfo-1.4.0-1.el9s
```
### https://git.centos.org/rpms/openshift-clients
```bash=
# 4.13
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-candidate openshift-clients
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-testing openshift-clients
cbs add-pkg --owner=lorbus cloud9s-okd-4.13-release openshift-clients
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-candidate openshift-clients
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-testing openshift-clients
cbs add-pkg --owner=lorbus cloud9s-okd-4.14-release openshift-clients
git checkout c9s-sig-cloud-okd-4.13
sha512sum --tag oc-92b1a3d0e5d092430b523f6541aa0c504b2222b3.tar.gz > sources
lookaside_upload_sig -f oc-92b1a3d0e5d092430b523f6541aa0c504b2222b3.tar.gz -n openshift-clients
git push cbs c9s-sig-cloud-okd-4.13
cbs build cloud9s-okd-4.13-el9s git+https://git.centos.org/rpms/openshift-clients.git#0709f110806ed03e8eb9fdbaf2728220fd425ee3
cbs tag-build cloud9s-okd-4.13-testing openshift-clients-4.13.0-1.git92b1a3d.el9s
cbs tag-build cloud9s-okd-4.13-release openshift-clients-4.13.0-1.git92b1a3d.el9s
#4.14 (FTBFS/broken due missing golang 1.20)
git checkout c9s-sig-cloud-okd-4.14
sha512sum --tag oc-68c710f5c29d795a8706d1e40de9099d278c059b.tar.gz > sources
lookaside_upload_sig -f oc-68c710f5c29d795a8706d1e40de9099d278c059b.tar.gz -n openshift-clients
git push cbs c9s-sig-cloud-okd-4.14
cbs build cloud9s-okd-4.14-el9s git+https://git.centos.org/rpms/openshift-clients.git#46a8b22dd0dbb9951aacfa85774cdfe63c652d93
#cbs tag-build cloud9s-okd-4.14-testing openshift-clients-4.13.0-1.git68c710f.el9s
#cbs tag-build cloud9s-okd-4.14-release openshift-clients-4.13.0-1.git68c710f.el9s
```