Skip to content

Max cluster lifetime - #640

Open
amanning9 wants to merge 10 commits into
masterfrom
max-cluster-lifetime
Open

Max cluster lifetime#640
amanning9 wants to merge 10 commits into
masterfrom
max-cluster-lifetime

Conversation

@amanning9

Copy link
Copy Markdown
Contributor

No description provided.

@amanning9
amanning9 requested a review from a team as a code owner July 15, 2026 13:57
@amanning9
amanning9 force-pushed the max-cluster-lifetime branch from 96d4308 to 2f33e59 Compare July 21, 2026 10:45
* Setup the django testing framework for functional tests.
* Setup unit tests.
* Make the existing acl tests actually run.
@amanning9
amanning9 force-pushed the max-cluster-lifetime branch 2 times, most recently from 5289882 to 79ca7b2 Compare July 21, 2026 12:43
@amanning9
amanning9 force-pushed the max-cluster-lifetime branch from 79ca7b2 to cf23222 Compare July 21, 2026 12:48
@amanning9 amanning9 changed the title [Draft] Max cluster lifetime Max cluster lifetime Jul 21, 2026
Comment thread api/azimuth/views.py Outdated
Comment thread api/azimuth/views.py Outdated
Comment thread api/azimuth/views.py Outdated
Comment thread api/azimuth/views.py Outdated
Comment thread api/tests/test_scheduling_util.py Outdated
Comment thread api/tests/test_scheduling_util.py Outdated
@amanning9
amanning9 force-pushed the max-cluster-lifetime branch from ccef6ff to 1815a18 Compare August 5, 2026 09:41
@m-bull

m-bull commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Here's the cause of the 5xx error, looks legit:

[ERROR] [2026-08-05 11:38:23,424] [django.request:249] [ThreadPoolExecutor-1_0] Internal Server Error: /api/tenancies/68c8f3bb288b4237b5533eaa51b66cc1/kubernetes_clusters/
Traceback (most recent call last):
  File "/venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 198, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/django/views/generic/base.py", line 106, in view
    return self.dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 515, in dispatch
    response = self.handle_exception(exc)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 475, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 486, in raise_uncaught_exception
    raise exc
  File "/venv/lib/python3.12/site-packages/rest_framework/views.py", line 512, in dispatch
    response = handler(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/rest_framework/decorators.py", line 50, in handler
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/app/azimuth/views.py", line 225, in wrapper
    return view(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/app/azimuth/views.py", line 144, in wrapper
    return view(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/app/azimuth/views.py", line 187, in wrapper
    return view(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/app/azimuth/views.py", line 115, in wrapper
    return view(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/app/azimuth/views.py", line 62, in wrapper
    return view(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/app/azimuth/views.py", line 1665, in kubernetes_clusters
    cluster_template = input_serializer.validated_data["cluster_template"]
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^

@amanning9
amanning9 requested a review from m-bull August 6, 2026 11:40
@amanning9

Copy link
Copy Markdown
Contributor Author

Needs to be merged in tandem with azimuth-cloud/ansible-collection-azimuth-ops#1297

@m-bull m-bull left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants