refresh a lxd KVM host resources after it was added

Bug #1973617 reported by Laurent Sesquès
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned
maas-ui
Fix Released
Unknown

Bug Description

Once a LXD KVM host has been added, its resources seem to be immutable - at least storage is.
Steps to reproduce:
1. Add a LXD host to MAAS
2. Change the storage resources for the LXD host (e.g. add more storage)
3. MAAS never refreshes the known capacities for the host, and for instance will refuse to add a virtual machine if it still thinks that it doesn't have enough storage

If no VMs were deployed to the host, deleting then re-adding the LXD host works around the issue.

This is using MAAS 3.1.0-10901-g.f1f8f1505 (3.1/stable as of writing), and LXD 5.1-1f6f485 (5.1/stable as of writing).

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

MAAS doesn't automatically refresh resources information for a VM host (except for updating used resources when machines get composed/removed from MAAS).

It's possible, though, to manually refresh the information, either from the UI (from the VM host dashboard) or the API (maas $profile vm-host refresh $id).

Doing so will refresh both VMs and cpu/storage/network information from the host.

Could you please try this and verify your changes are reflected?

Changed in maas:
status: New → Incomplete
Revision history for this message
Laurent Sesquès (sajoupa) wrote :

I didn't see any button to perform the refresh in the VM host dashboard, how is it done exactly ? (and didn't find it documented either)

Changed in maas:
status: Incomplete → New
Revision history for this message
Alberto Donato (ack) wrote :

In the UI, there's a button with a curved arrow at the top of the VM listing table

Revision history for this message
Laurent Sesquès (sajoupa) wrote :

Thanks, I found it.
Maybe it would deserve a description when we mouse over it ?
Also, given that the action is to refresh the Resources, maybe it should (also) be visible in the Resources tab ?

Thanks !

Alberto Donato (ack)
tags: added: ui
Changed in maas-ui:
importance: Undecided → Unknown
status: New → Fix Released
Changed in maas:
status: New → Fix Committed
Changed in maas:
milestone: none → 3.3.0
Changed in maas:
milestone: 3.3.0 → 3.3.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.