Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppkg_rebuild.py throws http 403 when run with osc 1.8 #3132

Open
DimStar77 opened this issue Aug 8, 2024 · 1 comment
Open

suppkg_rebuild.py throws http 403 when run with osc 1.8 #3132

DimStar77 opened this issue Aug 8, 2024 · 1 comment

Comments

@DimStar77
Copy link
Contributor

Tumbleweed, and thus also the container running on botmaster, has received osc 1.8.x

subpkg-rebuld fails in this case with:

INFO:root:Gathering support package list from openSUSE:Factory
INFO:root:Checking rebuild data...
Traceback (most recent call last):
  File "/godata/pipelines/Factory.Rebuild.Support/./suppkg_rebuild.py", line 186, in <module>
    sys.exit(main(args))
             ^^^^^^^^^^
  File "/godata/pipelines/Factory.Rebuild.Support/./suppkg_rebuild.py", line 167, in main
    uc.crawl()
  File "/godata/pipelines/Factory.Rebuild.Support/./suppkg_rebuild.py", line 148, in crawl
    if need_rebuild and not self.api.is_repo_dirty(stgname, 'standard'):
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/godata/pipelines/Factory.Rebuild.Support/osclib/stagingapi.py", line 1293, in is_repo_dirty
    root = ET.parse(http_GET(url)).getroot()
                    ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/osc/connection.py", line 396, in http_GET
    return http_request("GET", *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/osc/connection.py", line 149, in new_func
    return func(method, url, headers, data, file)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/osc/connection.py", line 386, in http_request
    raise urllib.error.HTTPError(url, response.status, response.reason, response.headers, response)
urllib.error.HTTPError: HTTP Error 403: Forbidden
[script-executor] Script completed with exit code: 1.

(this only happens if any of the stagings actually contains a package that qualifies for this support-rebuild; otherwise it passes)

Running this against osc 1.5.1 on Leap 15.6 is successful.

@DimStar77
Copy link
Contributor Author

possibly related to openSUSE/osc#1476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant