Koji tags for image-builder to build ELN #13416

Closed
opened 2026-07-08 06:28:22 +00:00 by supakeen · 7 comments
Member

Previously we've set up tags for image-builder in Koji to be able to build Fedora things (#12587). We want the same for ELN. That means I'd want:

  1. eln-image-builder target with eln-image-builder-build as build tag and eln as destination tag.
  2. eln-image-builder-build tag with mock.new_chroot set to 0; inheriting from eln-build.
  3. Add the group image-builder-build to the eln-image-builder-build tag.

The setup is similar to https://koji.fedoraproject.org/koji/taginfo?tagID=94036 except with different names.

Something like this:

koji add-tag --parent eln --arches="x86_64 aarch64 ppc64le s390x" eln-image-builder-build
koji edit-tag --perm=admin eln-image-builder-build
koji edit-tag -x mock.new_chroot=0 eln-image-builder-build
koji add-target eln-image-builder eln-image-builder-build eln
koji add-group eln image-builder-build

Not 100% sure on the group stuff here.

Previously we've set up tags for `image-builder` in Koji to be able to build Fedora things (https://forge.fedoraproject.org/releng/tickets/issues/12587). We want the same for ELN. That means I'd want: 1. `eln-image-builder` target with `eln-image-builder-build` as build tag and `eln` as destination tag. 2. `eln-image-builder-build` tag with `mock.new_chroot` set to `0`; inheriting from `eln-build`. 3. Add the group `image-builder-build` to the `eln-image-builder-build` tag. The setup is similar to https://koji.fedoraproject.org/koji/taginfo?tagID=94036 except with different names. Something like this: ``` koji add-tag --parent eln --arches="x86_64 aarch64 ppc64le s390x" eln-image-builder-build koji edit-tag --perm=admin eln-image-builder-build koji edit-tag -x mock.new_chroot=0 eln-image-builder-build koji add-target eln-image-builder eln-image-builder-build eln koji add-group eln image-builder-build ``` Not 100% sure on the group stuff here.
Owner

Hey, we did change the inheritance for the image-builder tag here: #13375;

Just Fyingg; Now that inherits from f44-build, then ELN should inherit from eln-build.

Hey, we did change the inheritance for the image-builder tag here: https://forge.fedoraproject.org/releng/tickets/issues/13375; Just Fyingg; Now that inherits from f44-build, then ELN should inherit from eln-build.
Member

The parent should be eln-build (see #13375), and therefore arches need not be specified (will be inherited instead).

The parent should be `eln-build` (see #13375), and therefore `arches` need not be specified (will be inherited instead).
Owner

Implemented the ELN Image Builder Koji configuration, mirroring the existing Fedora Image Builder setup.

Commands executed

koji add-tag \
    --parent=eln-build \
    --arches="x86_64 aarch64 ppc64le s390x" \
    eln-image-builder-build

koji edit-tag --perm=admin eln-image-builder-build

koji edit-tag -x mock.new_chroot=0 eln-image-builder-build

koji add-target eln-image-builder eln-image-builder-build eln

koji add-group eln-image-builder-build image-builder-build

Verification

Verified the resulting configuration with:

koji taginfo eln-image-builder-build

koji list-tag-inheritance eln-image-builder-build

koji list-groups eln-image-builder-build

koji list-targets | grep eln-image-builder

Result

  • Created the eln-image-builder-build build tag.

  • Configured it to inherit from eln-build.

  • Enabled the architectures:

    • x86_64
    • aarch64
    • ppc64le
    • s390x
  • Set the required permission to admin.

  • Configured mock.new_chroot = 0.

  • Created the eln-image-builder Koji target with:

    • Build tag: eln-image-builder-build
    • Destination tag: eln
  • Added the image-builder-build group to the build tag.

Verified that the final configuration matches the existing Fedora Image Builder setup, with the following inheritance:

eln-image-builder-build
└── eln-build
    ├── eln
    └── f45-build
koji taginfo eln-image-builder-build

Tag: eln-image-builder-build [143284]
Arches: x86_64 aarch64 ppc64le s390x
Groups: appliance-build, build, image-builder-build, kiwi-build, livecd-build, livemedia-build, srpm-build
Required permission: 'admin'
Tag options:
  mock.new_chroot : 0
  mock.package_manager : 'dnf5' [eln]
  noarch_arches : 'aarch64 ppc64le x86_64' [f45-build]
  rpm.macro.dist : ('%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do '
 'print("%{?distprefix" .. i .."}") '
 'end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}') [eln-build]
  rpm.macro.distcore : '.eln%{eln}' [eln-build]
  rpm.macro.eln : 158          [eln-build]
  rpm.macro.rhel : 11          [eln-build]
  sidetag_rpm_macros_allowed : '_with_bootstrap' [eln-build]
This tag is a buildroot for one or more targets
Current repo: no active repo
Targets that build from this tag:
  eln-image-builder
Inheritance:
  0    .... eln-build [22493]

koji list-tag-inheritance eln-image-builder-build
     eln-image-builder-build (143284)
....  └─eln-build (22493)
....     ├─eln (22492)
....     │  └─f45 (128147)
....     └─f45-build (128157)
....        └─f45-override (128156)

koji list-groups eln-image-builder-build
image-builder-build  [eln-image-builder-build]
kiwi-build  [f45]
  kiwi-cli: None, mandatory  [f45]
  kiwi-systemdeps: None, mandatory  [f45]


 koji list-targets | grep eln-image-builder
eln-image-builder              eln-image-builder-build        eln                           
Implemented the ELN Image Builder Koji configuration, mirroring the existing Fedora Image Builder setup. ### Commands executed ```bash koji add-tag \ --parent=eln-build \ --arches="x86_64 aarch64 ppc64le s390x" \ eln-image-builder-build koji edit-tag --perm=admin eln-image-builder-build koji edit-tag -x mock.new_chroot=0 eln-image-builder-build koji add-target eln-image-builder eln-image-builder-build eln koji add-group eln-image-builder-build image-builder-build ``` ### Verification Verified the resulting configuration with: ```bash koji taginfo eln-image-builder-build koji list-tag-inheritance eln-image-builder-build koji list-groups eln-image-builder-build koji list-targets | grep eln-image-builder ``` ### Result * Created the `eln-image-builder-build` build tag. * Configured it to inherit from `eln-build`. * Enabled the architectures: * `x86_64` * `aarch64` * `ppc64le` * `s390x` * Set the required permission to `admin`. * Configured `mock.new_chroot = 0`. * Created the `eln-image-builder` Koji target with: * **Build tag:** `eln-image-builder-build` * **Destination tag:** `eln` * Added the `image-builder-build` group to the build tag. Verified that the final configuration matches the existing Fedora Image Builder setup, with the following inheritance: ```text eln-image-builder-build └── eln-build ├── eln └── f45-build ``` ``` koji taginfo eln-image-builder-build Tag: eln-image-builder-build [143284] Arches: x86_64 aarch64 ppc64le s390x Groups: appliance-build, build, image-builder-build, kiwi-build, livecd-build, livemedia-build, srpm-build Required permission: 'admin' Tag options: mock.new_chroot : 0 mock.package_manager : 'dnf5' [eln] noarch_arches : 'aarch64 ppc64le x86_64' [f45-build] rpm.macro.dist : ('%{!?distprefix0:%{?distprefix}}%{expand:%{lua:for i=0,9999 do ' 'print("%{?distprefix" .. i .."}") ' 'end}}%{distcore}%{?with_bootstrap:%{__bootstrap}}') [eln-build] rpm.macro.distcore : '.eln%{eln}' [eln-build] rpm.macro.eln : 158 [eln-build] rpm.macro.rhel : 11 [eln-build] sidetag_rpm_macros_allowed : '_with_bootstrap' [eln-build] This tag is a buildroot for one or more targets Current repo: no active repo Targets that build from this tag: eln-image-builder Inheritance: 0 .... eln-build [22493] koji list-tag-inheritance eln-image-builder-build eln-image-builder-build (143284) .... └─eln-build (22493) .... ├─eln (22492) .... │ └─f45 (128147) .... └─f45-build (128157) .... └─f45-override (128156) koji list-groups eln-image-builder-build image-builder-build [eln-image-builder-build] kiwi-build [f45] kiwi-cli: None, mandatory [f45] kiwi-systemdeps: None, mandatory [f45] koji list-targets | grep eln-image-builder eln-image-builder eln-image-builder-build eln ```
Owner

@supakeen, can you please verify the behaviour once?

@supakeen, can you please verify the behaviour once?
Author
Member

I'll try it out today.

I'll try it out today.
Owner

Thanks!

Thanks!
Owner

Closing this as resolved, in case there are any other issues, please let me know.

Closing this as resolved, in case there are any other issues, please let me know.
Sign in to join this conversation.
No milestone
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
releng/tickets#13416
No description provided.