openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
936 stars 440 forks source link

scmsync: Unable to release openSUSE:Leap:16.0:Images into openSUSE:Leap:16.0:Images:ToTest #16499

Closed lkocman closed 4 months ago

lkocman commented 4 months ago

Hello

our openSUSE:Leap:16.0:Images is configured with

https://src.opensuse.org/openSUSE/Leap#16.0

However it seems that we can't release images because of Internal Error

📦[lkocman-factory@ ~]$ cat bin/release_leap16.sh 
#!/bin/bash
osc -A https://api.opensuse.org release --target-project=openSUSE:Leap:16.0:ToTest --target-repository=product -r product openSUSE:Leap:16.0 000productcompose
osc -A https://api.opensuse.org release --target-project=openSUSE:Leap:16.0:Images:ToTest --target-repository=images -r images openSUSE:Leap:16.0:Images agama-installer-openSUSE
osc -A https://api.opensuse.org release --target-project=openSUSE:Leap:16.0:Images:ToTest --target-repository=images -r images openSUSE:Leap:16.0:Images Leap
📦[lkocman-factory@ ~]$ osc -A https://api.opensuse.org release --target-project=openSUSE:Leap:16.0:Images:ToTest --target-repository=images -r images openSUSE:Leap:16.0:Images agama-installer-openSUSE
Releasing package 'openSUSE:Leap:16.0:Images/agama-installer-openSUSE' repository 'images' to project 'openSUSE:Leap:16.0:Images:ToTest' repository 'images' options: delayed
Server returned an error: HTTP Error 500: Internal Server Error

Request: https://api.opensuse.org/source/openSUSE:Leap:16.0:Images/agama-installer-openSUSE?cmd=release&repository=images&target_project=openSUSE%3ALeap%3A16.0%3AImages%3AToTest&target_repository=images
Headers:
Date: Mon, 15 Jul 2024 10:13:51 GMT
Server: Apache/2.4.51 (Linux/SUSE)
Strict-Transport-Security: max-age=31536000
x-request-id: cbee2ab9-3139-4e33-ad70-1f51cefdefcd
x-runtime: 0.045650
x-powered-by: Phusion Passenger(R)
content-length: 131
status: 500 Internal Server Error
content-type: application/xml; charset=utf-8
Connection: close

@adrianschroeter mentioned that it's very likely because some fix wasn't backported to OBS

Expected publish destination of Images:ToTest is https://download.opensuse.org/distribution/leap/16.0/appliances/

lkocman commented 4 months ago

I've re-enabled publish of https://build.opensuse.org/repositories/openSUSE:Leap:16.0:Images as a workaround. So we have data available via https://download.opensuse.org/repositories/openSUSE:/Leap:/16.0:/Images/images/

hennevogel commented 4 months ago

That would be #15652 I guess...

lkocman commented 4 months ago

@hennevogel very likely I told about this Adrian on Friday afternoon. Timing of the last comment would match.

lkocman commented 4 months ago

Confirming that it works now after deployment

$ cat release_leap16.sh 
#!/bin/bash
osc -A https://api.opensuse.org release --target-project=openSUSE:Leap:16.0:ToTest --target-repository=product -r product openSUSE:Leap:16.0 000productcompose
osc -A https://api.opensuse.org release --target-project=openSUSE:Leap:16.0:Images:ToTest --target-repository=images -r images openSUSE:Leap:16.0:Images agama-installer-openSUSE
osc -A https://api.opensuse.org release --target-project=openSUSE:Leap:16.0:Images:ToTest --target-repository=images -r images openSUSE:Leap:16.0:Images Leap

📦[lkocman-factory@ bin]$ ./release_leap16.sh 
Releasing package 'openSUSE:Leap:16.0/000productcompose' repository 'product' to project 'openSUSE:Leap:16.0:ToTest' repository 'product' options: delayed
Releasing package 'openSUSE:Leap:16.0:Images/agama-installer-openSUSE' repository 'images' to project 'openSUSE:Leap:16.0:Images:ToTest' repository 'images' options: delayed
Releasing package 'openSUSE:Leap:16.0:Images/Leap' repository 'images' to project 'openSUSE:Leap:16.0:Images:ToTest' repository 'images' options: delayed