#8524 Flatpak builds fail with "BuildConfig template has incorrect apiVersion (build.openshift.io/v1)"
Closed: Fixed 4 years ago by kalev. Opened 4 years ago by kalev.

thunderbird flatpak build fails today with:

$ fedpkg flatpak-build
Created task: 40508547
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=40508547
Watching tasks (this may be safely interrupted)...
40508547 buildContainer (noarch): free
40508547 buildContainer (noarch): free -> FAILED: Fault: <Fault 1: 'Traceback (most recent call last):\n  File "/usr/lib/python3.7/site-packages/koji/daemon.py", line 1293, in runTask\n    response = (handler.run(),)\n  File "/usr/lib/python3.7/site-packages/koji/tasks.py", line 314, in run\n    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)\n  File "/usr/lib/python3.7/site-packages/koji/util.py", line 261, in call_with_argcheck\n    return func(*args, **kwargs)\n  File "/usr/lib/koji-builder-plugins/builder_containerbuild.py", line 832, in handler\n    signing_intent=opts.get(\'signing_intent\', None),\n  File "/usr/lib/koji-builder-plugins/builder_containerbuild.py", line 498, in runBuilds\n    results = [self.createContainer(**kwargs)]\n  File "/usr/lib/koji-builder-plugins/builder_containerbuild.py", line 566, in createContainer\n    build_response = create_method(**orchestrator_create_build_args)\n  File "/usr/lib/python3.7/site-packages/osbs/api.py", line 57, in catch_exceptions\n  File "/usr/lib/python3.7/site-packages/osbs/api.py", line 884, in create_orchestrator_build\n    build_image=self.build_conf.get_build_image(),\n  File "/usr/lib/python3.7/site-packages/osbs/api.py", line 786, in _do_create_prod_build\n    koji_parent_build=koji_parent_build,\n  File "/usr/lib/python3.7/site-packages/osbs/api.py", line 456, in _create_build_config_and_build\n    # Remove nodeSelector, will be set from build_json for worker build\nosbs.exceptions.OsbsValidationException: BuildConfig template has incorrect apiVersion (build.openshift.io/v1)\n'>
  0 free  0 open  0 done  1 failed

40508547 buildContainer (noarch) failed

And here's the full traceback from koji web interface:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/koji/daemon.py", line 1293, in runTask
    response = (handler.run(),)
  File "/usr/lib/python3.7/site-packages/koji/tasks.py", line 314, in run
    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
  File "/usr/lib/python3.7/site-packages/koji/util.py", line 261, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/lib/koji-builder-plugins/builder_containerbuild.py", line 832, in handler
    signing_intent=opts.get('signing_intent', None),
  File "/usr/lib/koji-builder-plugins/builder_containerbuild.py", line 498, in runBuilds
    results = [self.createContainer(**kwargs)]
  File "/usr/lib/koji-builder-plugins/builder_containerbuild.py", line 566, in createContainer
    build_response = create_method(**orchestrator_create_build_args)
  File "/usr/lib/python3.7/site-packages/osbs/api.py", line 57, in catch_exceptions
  File "/usr/lib/python3.7/site-packages/osbs/api.py", line 884, in create_orchestrator_build
    build_image=self.build_conf.get_build_image(),
  File "/usr/lib/python3.7/site-packages/osbs/api.py", line 786, in _do_create_prod_build
    koji_parent_build=koji_parent_build,
  File "/usr/lib/python3.7/site-packages/osbs/api.py", line 456, in _create_build_config_and_build
    # Remove nodeSelector, will be set from build_json for worker build
osbs.exceptions.OsbsValidationException: BuildConfig template has incorrect apiVersion (build.openshift.io/v1)

Metadata Update from @cverna:
- Issue assigned to cverna

4 years ago

So this is related to https://pagure.io/fedora-infrastructure/issue/8505. The koji builders were updated yesterday but not yet restarted.
The update installed osbs-client 0.62 but kojid was still loaded with a previous version of osbs-client 0.60.

I did a few manual restart of kojid and trigger a build for thunderbird until I got on of the builder I restarted (https://koji.fedoraproject.org/koji/taskinfo?taskID=40515822) and the build is now working.

I ll advise to wait until tomorrow once all the builders are restarted to use osbs.

OK, I'll wait until tomorrow before doing any other flatpak builds. Thanks, @cverna!

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

4 years ago

Login to comment on this ticket.

Metadata