After trying to deploy 20 machines with the UI, 12 of them are broken and the UI is spinning forever

Bug #2045650 reported by Jacopo Rota
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Incomplete
Medium
Unassigned
3.3
Expired
Medium
Unassigned

Bug Description

After deploying 20 machines on MAAS deb 3.3 with the UI, 12 of them became "Allocated" and can't be opened anymore in the UI.

Looking at the regiond logs, when I try to open a machine in the UI an exception is logged

            return self.full_dehydrate(obj)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 219, in full_dehydrate
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 857, in callInContext
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
          File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 182, in doWork
            task()
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 244, in inContext
            result = inContext.theWork() # type: ignore[attr-defined]
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 260, in <lambda>
            inContext.theWork = lambda: context.call( # type: ignore[attr-defined]
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
            return func(*args, **kw)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 857, in callInContext
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
            result = func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 771, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 574, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python3.10/contextlib.py", line 79, in inner
            return func(*args, **kwds)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 437, in prep_user_execute
            return self._call_method_track_queries(
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 461, in _call_method_track_queries
            result = method(params)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 700, in get
            return self.full_dehydrate(obj)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 219, in full_dehydrate
            field_obj = getattr(obj, field_name)
          File "/usr/lib/python3/dist-packages/django/db/models/fields/related_descriptors.py", line 187, in __get__
            rel_obj = self.get_object(instance)
          File "/usr/lib/python3/dist-packages/django/db/models/fields/related_descriptors.py", line 154, in get_object
            return qs.get(self.field.get_reverse_related_filter(instance))
          File "/usr/lib/python3/dist-packages/django/db/models/query.py", line 435, in get
            raise self.model.DoesNotExist(
        metadataserver.models.scriptset.DoesNotExist: ScriptSet matching query does not exist.

Jacopo Rota (r00ta)
Changed in maas:
milestone: none → 3.5.0
Revision history for this message
Thorsten Merten (thorsten-merten) wrote :

Do you have more information how to reproduce this?

Changed in maas:
status: Triaged → Incomplete
importance: High → Medium
Revision history for this message
Jacopo Rota (r00ta) wrote (last edit ):

I'm unsure if we should close bugs without having tried to reproduce them

Revision history for this message
Anton Troyanov (troyanov) wrote :

It seems that the issue could happen due to a missing FK relation which was fixed in master and 3.5
https://code.launchpad.net/~troyanov/maas/+git/maas/+merge/462602

So far I failed to reproduce it.

Changed in maas:
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for MAAS 3.3 because there has been no activity for 60 days.]

Changed in maas:
status: Incomplete → New
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.