MAAS 2.7.3 No Such Resource

Bug #1892542 reported by Nick Niehoff on 2020-08-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Critical
Adam Collard

Bug Description

There is a regression in MAAS 2.7.3 released this morning. Upon a fresh install of MAAS 2.7.3:

lxc launch ubuntu:bionic maastest
lxc shell maastest
add-apt-repository ppa:maas/2.7
apt install maas

Connecting to the UI:

HTTP://{IP Address}:5240/MAAS/

Returns 404:

No Such Resource
File not found.

Tags: ui Edit Tag help

Related branches

Lee Trager (ltrager) wrote :

Try adding a trailing slash e.g "HTTP://{IP Address}:5240/MAAS/" I vaugly remember the UI used to require that. If that doesn't work please upload logs.

Nick Niehoff (nniehoff) wrote :

@Lee sorry my original request included the /, I have updated the original comment and here is /var/log from my container.

description: updated
Lee Trager (ltrager) wrote :

Something is preventing the region from starting. The error below seems to be the cause but I'm not sure why. Its possible something is binded to one of the ports MAAS uses

2020-08-21 13:24:49 -: [critical] WSGI application error
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 87, in callWithContext
     self.contexts.pop()
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 885, in callInContext
     return func(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/twisted/web/wsgi.py", line 522, in run
     self.started = True
 --- <exception caught here> ---
   File "/usr/lib/python3/dist-packages/twisted/web/wsgi.py", line 500, in run
     self.write(elem)
   File "/usr/lib/python3/dist-packages/twisted/web/wsgi.py", line 455, in write
     self.reactor, wsgiWrite, self.started)
   File "/usr/lib/python3/dist-packages/twisted/internet/threads.py", line 122, in blockingCallFromThread
     result.raiseException()
   File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 385, in raiseException
     raise self.value.with_traceback(self.tb)
 builtins.RuntimeError: unable to perform operation on <UVPoll closed=True 0x7f40b2f16c10>; the handler is closed

Dougal Matthews (d0ugal) wrote :

I was able to reproduce this, but didn't have the error above. Nothing jumped out at me in the MAAS logs. So it might be worth getting somebody from UI team to take a look also.

Changed in maas:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Critical
milestone: none → 2.7.4b1
tags: added: api ui
Dougal Matthews (d0ugal) wrote :

I should note that reproduction for me was as simple as;

1. lxc launch ubuntu:18.04 testing
2. lxc shell testing
3. sudo apt-add-repository -yu ppa:maas/2.7
4. apt install -y maas

Then try and visit the UI and get a resource not found.

I wasn't able to explore much further as it was past my EOW

Kit Randel (blr) wrote :

`maas-ui` doesn't appear to be present in `usr/lib/python3/dist-packages` in python3-django-maas_2.7.3-8290-g.ebe2b9884-0ubuntu1~18.04.1_all.deb, should it be?

Changed in maas:
assignee: nobody → Adam Collard (adam-collard)
Adam Collard (adam-collard) wrote :

The packaging process is sensitive to local development environment setup, and whilst we fixed this for 2.8 and beyond, 2.7 still relies (too much) on humans doing the right thing.

2.7.3 packages are being rebuilt now in the PPA, there's no change to the snap which didn't have this problem (whole build is run by launchpad's buildd).

Changed in maas:
status: Confirmed → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
milestone: 2.7.4b1 → 2.7.3rc1
tags: removed: api
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments