Notify messages not sent when static routes are created

Bug #1960462 reported by Huw Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Alberto Donato

Bug Description

When a static route is created there are no notify messages sent via the websocket API.

To reproduce:
- Go to a subnet details page.
- Scroll down to the static routes table and click "Add static route".
- Enter some valid details and submit.
- Note that the static route didn't appear in the table.
- Refresh the page and the static route will appear.

Revision history for this message
Huw Wilkins (huwshimi) wrote :

It appears this might be happening with other models too, this could be a bug in master.

Revision history for this message
Huw Wilkins (huwshimi) wrote (last edit ):

Trying to refresh the snap also has an error: https://paste.ubuntu.com/p/VPTSshMcWh/

# sudo snap refresh maas --channel=latest/edge
error: cannot perform the following tasks:
- Run post-refresh hook of "maas" snap if present (run hook "post-refresh":
-----
Operations to perform:
  Apply all migrations: auth, contenttypes, maasserver, metadataserver, piston3, sessions, sites
Running migrations:
  Applying maasserver.0261_interface_nodeconfig_only...Traceback (most recent call last):
  File "/snap/maas/18555/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.ObjectInUse: cannot ALTER TABLE "maasserver_interface" because it has pending trigger events
...

Revision history for this message
Alberto Donato (ack) wrote :

The issue should be fixed in master by d0994523b.

This was an issue with migrations.

I've manually fixed/upgraded bolla.

Creating a static route does corretly update the UI now.

Changed in maas:
assignee: nobody → Alberto Donato (ack)
milestone: none → next
status: New → Fix Committed
importance: Undecided → Critical
Changed in maas:
milestone: next → 3.2.0-beta1
Changed in maas:
status: Fix Committed → Fix Released
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.