omshell takes 100%cpu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Alberto Donato | ||
2.9 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is with 2.9.0rc1 installed as a snap.
While composing VMs, I suddenly couldn't compose any more. It took a very long time spinning om "Composing..." and then finally returning:
Error:Pod unable to compose machine:
On the controller page everything looks green, but in rackd.log I see this:
2020-11-16 16:03:33 provisioningser
Traceback (most recent call last):
File "/snap/
File "/snap/
File "/snap/
File "/snap/
--- <exception caught here> ---
File "/snap/
File "/snap/
raise config_exc
File "/snap/
File "/snap/
File "/snap/
File "/snap/
raise self.value.
File "/snap/
raise last_exc
File "/snap/
File "/snap/
result = result.
File "/snap/
return g.throw(self.type, self.value, self.tb)
File "/snap/
raise config_exc
File "/snap/
File "/snap/
File "/snap/
File "/snap/
raise self.value.
File "/snap/
result = result.
File "/snap/
return g.throw(self.type, self.value, self.tb)
File "/snap/
raise last_exc
File "/snap/
2020-11-16 16:03:38 provisioningser
Traceback (most recent call last):
--- <exception caught here> ---
File "/snap/
yield deferToThread(
Related branches
- Alberto Donato (community): Approve
-
Diff: 1302 lines (+230/-672)10 files modifieddebian/control (+1/-0)
dev/null (+0/-454)
required-packages/base (+1/-0)
snap/snapcraft.yaml (+1/-0)
src/maasserver/dhcp.py (+1/-1)
src/provisioningserver/dhcp/omapi.py (+56/-0)
src/provisioningserver/dhcp/tests/test_omapi.py (+94/-0)
src/provisioningserver/rpc/dhcp.py (+17/-62)
src/provisioningserver/rpc/tests/test_dhcp.py (+58/-155)
utilities/check-imports (+1/-0)
- Björn Tillenius: Approve
- MAAS Lander: Approve
-
Diff: 1302 lines (+230/-672)10 files modifieddebian/control (+1/-0)
dev/null (+0/-454)
required-packages/base (+1/-0)
snap/snapcraft.yaml (+1/-0)
src/maasserver/dhcp.py (+1/-1)
src/provisioningserver/dhcp/omapi.py (+56/-0)
src/provisioningserver/dhcp/tests/test_omapi.py (+94/-0)
src/provisioningserver/rpc/dhcp.py (+17/-62)
src/provisioningserver/rpc/tests/test_dhcp.py (+58/-155)
utilities/check-imports (+1/-0)
Changed in maas: | |
assignee: | nobody → Alberto Donato (ack) |
importance: | High → Critical |
status: | Triaged → In Progress |
summary: |
- Failed to contact region. (While requesting RPC info) + omshell takes 100%cpu |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 2.9.0rc2 → 2.10-next |
Changed in maas: | |
milestone: | 3.0.0 → none |
status: | Fix Committed → Fix Released |
Actually, the DNS lookup failure might be a red herring (although, still a problem), since I now see that it has been showing up in the logs a few weeks now.
The pod errors don't give any clue what's wrong, but I seem to have lost the ability to compose vms on any pod now (after being able to compose 6 before that):
2020-11-16 16:16:42 maasserver. websockets. handlers. pod: [critical] Failed to compose machine. maas/10507/ lib/python3. 8/site- packages/ maasserver/ forms/pods. py", line 825, in async_compose_ machine maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ internet/ defer.py" , line 654, in _runCallbacks
current. result = callback( current. result, *args, **kw) maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ protocols/ amp.py" , line 1994, in _massageError
error. trap(RemoteAmpE rror) maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ python/ failure. py", line 439, in trap
self. raiseException( ) maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ python/ failure. py", line 467, in raiseException with_traceback( self.tb)
twisted. internet. defer.Cancelled Error:
Traceback (most recent call last):
--- <exception caught here> ---
File "/snap/
result = yield compose_machine(
File "/snap/
File "/snap/
File "/snap/
File "/snap/
raise self.value.
2020-11-16 16:16:42 maasserver. websockets. protocol: [critical] Error on request (391) pod.compose: Pod unable to compose machine: maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ internet/ defer.py" , line 1475, in gotResult
_inlineCal lbacks( r, g, status) maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ internet/ defer.py" , line 1464, in _inlineCallbacks
status. deferred. errback( ) maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ internet/ defer.py" , line 501, in errback
self. _startRunCallba cks(fail) maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ internet/ defer.py" , line 568, in _startRunCallbacks
self. _runCallbacks( ) maas/10507/ usr/lib/ python3/ dist-packages/ twisted/ internet/ defer.py" , line 654, in _runCallbacks
current. result = callback( current. result, *args, **kw) maas/10507/ lib/python3. 8/site- packages/ maasserver/ websockets/ handlers/ pod.py" , line 403, in wrap_errors
maasserver. exceptions. PodProblem: Pod unable to compose machine:
Traceback (most recent call last):
File "/snap/
File "/snap/
File "/snap/
File "/snap/
--- <exception caught here> ---
File "/snap/
File "/snap/
raise PodProblem(