canonical / maas-ui

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

Add node power parameters and metadata to machine search #2967

Open huwshimi opened 3 years ago

huwshimi commented 3 years ago

Add mappings to allow searching the power parameters and machine metadata.

This is specifically to address: https://bugs.launchpad.net/maas/+bug/1938927 where support for power address and serial number have regressed from 2.7

These fields need to be added to the search mapping:

https://github.com/canonical-web-and-design/maas-ui/blob/master/ui/src/app/store/machine/utils/search.ts#L18

This will fix the UI portion of: https://github.com/canonical-web-and-design/maas-ui/issues/2927.

huwshimi commented 3 years ago

This should wait on a response in https://bugs.launchpad.net/maas/+bug/1938927 to see if we need to implement the fields as part of free search, keyed search (power_address:LXD) or both. Either way it looks like the power parameters are dynamic so it will require a slightly different type of mapping where it needs to dynamically search those fields.

huwshimi commented 3 years ago

Looking at the following screenshots this needs to be implemented as free search, but if possible we should see if we can search using the specific keys as well.

MAAS 2.7 free search by power IP:

stsmaas-272-power-ip stsmaas-272-power-ip

MAAS 2.7 free search by serial:

stsmaas-272-serial stsmaas-272-serial

huwshimi commented 3 years ago

Metadata and power parameters are only returned by the machine details request so I've asked about the solution on the LP bug.

huwshimi commented 3 years ago

Blocked on API support.