canonical / maas-ui

The UI for MAAS (metal-as-a-service)
https://maas.io
Other
51 stars 50 forks source link

[UI] Broken link from DNS tab to Container #1548

Closed webteam-app closed 3 years ago

webteam-app commented 4 years ago

Bug originally filed by laragones at https://bugs.launchpad.net/bugs/1796007

Related to bug # 1776056 and bug # 1796003

I searched for dns/device/lxd and couldn't find anything that is not classified as a bug only and not an enhancement, please ignore or close if it is duplicated, but since the other bugs are classified as enhancements, I believe it is better to separate the issues.

Basically when you click on a container in the DNS tab, it redirects you to the devices tab, and MAAS UI throws an error

FOr example

Go to any domain from the DNS tab, e.g. http://10.3.4.10:5240/MAAS/#/domain/0

From there click on selectable link from a known contianer, e.g. Name: aibladmin Type:A TTL: (default) Data: 10.3.6.135

aibladmin is a highlited link that forwards to http://10.3.4.10:5240/MAAS/#/device/f74t3r

If you look in the device information through the API, it has the correct parent information, thus the link should redirect to the Machine/Containers tab instead of the Devices tab

In the devices tab, once clicked it shows:

Error occurredReload No item with pk: f74t3r

PD: Using latest Ubuntu 18.04 MAAS from ppa (just upgraded) Setting up maas-common (2.4.2-7034-g2f5deb8b8-0ubuntu1) ... Setting up maas-region-api (2.4.2-7034-g2f5deb8b8-0ubuntu1) ... Setting up maas-region-controller (2.4.2-7034-g2f5deb8b8-0ubuntu1) ...

huwshimi commented 4 years ago

This appears to fixed now, the links from a domain summary go to a device, machine or controller depending on the node type.