Cannot compose VM in MAAS UI (again)

Bug #2048774 reported by Rajko Albrecht
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Undecided
Unassigned

Bug Description

As in ticket 1951842 described: I can't create vms on a LXD host.

I setup the lxd host like described, integrated into maas but when I try to create I just get error messages that memory and CPU count has to be less or equal to zero. I tried multiple times to refresh, the values about memory and CPU count are listed correctly in UI, running VM from command line works. MAAS correctly reads in all resources (CPU count, memory, storage). MAAS is version 3.3.

The only related messages in logs are below. I didn't see any other messages.

2024-01-09 11:32:25 maasserver.websockets.protocol: [critical] Error on request (468) pod.compose: {"cores": ["Ensure this value is less than or equal to 0."], "memory": ["Ensure this value is less than or equal to 0."]}
        Traceback (most recent call last):
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 700, in errback
            self._startRunCallbacks(fail)
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 763, in _startRunCallbacks
            self._runCallbacks()
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 857, in _runCallbacks
            current.result = callback( # type: ignore[misc]
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1750, in gotResult
            current_context.run(_inlineCallbacks, r, gen, status)
        --- <exception caught here> ---
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1656, in _inlineCallbacks
            result = current_context.run(
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/python/failure.py", line 489, in throwExceptionIntoGenerator
            return g.throw(self.type, self.value, self.tb)
          File "/snap/maas/28521/lib/python3.10/site-packages/maasserver/websockets/handlers/pod.py", line 317, in compose
            form = await deferToDatabase(get_form, pod, params)
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 244, in inContext
            result = inContext.theWork() # type: ignore[attr-defined]
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 260, in <lambda>
            inContext.theWork = lambda: context.call( # type: ignore[attr-defined]
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/snap/maas/28521/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
            return func(*args, **kw)
          File "/snap/maas/28521/lib/python3.10/site-packages/provisioningserver/utils/twisted.py", line 857, in callInContext
            return func(*args, **kwargs)
          File "/snap/maas/28521/lib/python3.10/site-packages/provisioningserver/utils/twisted.py", line 203, in wrapper
            result = func(*args, **kwargs)
          File "/snap/maas/28521/lib/python3.10/site-packages/maasserver/utils/orm.py", line 771, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/snap/maas/28521/lib/python3.10/site-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 "/snap/maas/28521/lib/python3.10/site-packages/maasserver/websockets/handlers/pod.py", line 307, in get_form
            raise HandlerValidationError(form.errors)
        maasserver.websockets.base.HandlerValidationError: {'cores': ['Ensure this value is less than or equal to 0.'], 'memory': ['Ensure this value is less than or equal to 0.']}

Revision history for this message
Jacopo Rota (r00ta) wrote :
Changed in maas:
status: New → Invalid
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Marked as duplicate of 2048399 per comment #1.

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.