#11568 Need permission to scratch build fedora-toolbox image for Fedora 39 onwards
Closed: Fixed with Explanation 6 months ago by kevin. Opened 6 months ago by rishi.

The fedora-toolbox images for Fedora >= 39 are now built using Image Factory with fedora-kickstarts and pungi-fedora as a result of the ToolbxReleaseBlocker Change.

As the maintainer of the images, I have been trying to scratch build changes to the image with koji image-build --scratch, but it's been failing with:

2023-10-09 16:47:18,341 [DEBUG] koji: Opening new requests session
2023-10-09 16:47:18,342 [DEBUG] koji: Opening new requests session
successfully connected to hub
Traceback (most recent call last):
  File "/usr/bin/koji", line 331, in <module>
    rv = locals()[command].__call__(options, session, args)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/koji_cli/commands.py", line
5928, in handle_image_build
    return _build_image_oz(options, task_options, session, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/koji_cli/commands.py", line
6059, in _build_image_oz
    task_id = session.buildImageOz(args[0], args[1], arches, target,
args[3],

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/koji/__init__.py", line 2528,
in __call__
    return self.__func(self.__name, args, opts)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/koji/__init__.py", line 3085,
in _renew_expired_session
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/koji/__init__.py", line 3164,
in _callMethod
    raise err
koji.ActionNotAllowed: image permission required (logged in as rishi)

@humaton suggested that I open a ticket and ask for permissions to the image. So here I am. :)


Metadata Update from @kevin:
- Issue assigned to kevin

6 months ago

Done.

➜ ~ koji grant-permission image rishi

Metadata Update from @kevin:
- Issue close_status updated to: Fixed with Explanation
- Issue status updated to: Closed (was: Open)

6 months ago

Thanks, @kevin I managed to move further with koji image-build --scratch:
https://koji.fedoraproject.org/koji/taskinfo?taskID=107326222

Login to comment on this ticket.

Metadata