Can't delete a static route in the UI

Bug #2060177 reported by Jacopo Rota
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas-ui
Fix Committed
Critical
Peter Makowski

Bug Description

In maas 3.5.0, I can't delete a static route (see video in the attachments).

The websocket request is

{"method":"staticroute.delete","type":0,"params":{"id":2},"request_id":17}

and the response

{"type": 1, "request_id": 17, "rtype": 1, "error": "Object with id (2) does not exist"}

The database contains

```
jacopo=# select * from maasserver_staticroute;
 id | gateway_ip | metric | destination_id | source_id | created | updated
----+------------+--------+----------------+-----------+-------------------------------+-------------------------------
  1 | 10.0.2.1 | 0 | 3 | 2 | 2024-04-04 04:11:34.525107+00 | 2024-04-04 04:11:34.525107+00
(1 row)
```

so it looks like the UI is using the wrong ID

Revision history for this message
Jacopo Rota (r00ta) wrote :
Revision history for this message
Jacopo Rota (r00ta) wrote :
affects: maas → maas-ui
Changed in maas-ui:
assignee: nobody → Peter Makowski (petermakowski)
Revision history for this message
Peter Makowski (petermakowski) wrote :
Changed in maas-ui:
importance: Undecided → Critical
milestone: none → 3.5.0
Changed in maas-ui:
status: New → Fix Committed
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.