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

/resalloc/pools returns 500 #2882

Closed
nikromen opened this issue Aug 17, 2023 · 2 comments · Fixed by praiskup/resalloc#126
Closed

/resalloc/pools returns 500 #2882

nikromen opened this issue Aug 17, 2023 · 2 comments · Fixed by praiskup/resalloc#126

Comments

@nikromen
Copy link
Member

see https://download.copr.fedorainfracloud.org/resalloc/pools

FrostyX added a commit to FrostyX/resalloc that referenced this issue Sep 16, 2023
Fix fedora-copr/copr#2882

Since we have on-demand resources, the `reload_config` now returns a
tuple. See how it is used in `resallocserver.manager`.
@FrostyX
Copy link
Member

FrostyX commented Sep 16, 2023

The traceback is:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/resallocwebui/app.py", line 47, in pools
    sys.stderr.write(pools_config)
TypeError: write() argument must be str, not tuple

Fixing it in praiskup/resalloc#126

praiskup pushed a commit to praiskup/resalloc that referenced this issue Sep 18, 2023
Fix fedora-copr/copr#2882

Since we have on-demand resources, the `reload_config` now returns a
tuple. See how it is used in `resallocserver.manager`.
@praiskup
Copy link
Member

praiskup commented Oct 9, 2023

I'm reopening, we still want to release a new version and deploy to production.

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

Successfully merging a pull request may close this issue.

3 participants