ClusterLabs / anvil

The Anvil! Intelligent Availability™ Platform, mark 3
5 stars 6 forks source link

The new node resource tile is inaccurate #496

Closed digimer closed 10 months ago

digimer commented 11 months ago

The test Anvil! node below doesn't match what's available;

image

I wrote a little script that called $anvil->Get->available_resources() and displayed the data:

image

Marked as a high priority as it's quite visible to new users, and hopefully is a simple fix.

digimer commented 11 months ago

This bug isn't just with the display of the tile, I can't provision servers on that node anymore. Is this because it's counting resources used by now-deleted servers?

digimer commented 11 months ago

Confirmed. When I manually delete the servers from the DB, the listed resources show as available. Either skips servers whose [server_state = 'DELETED'] or use Get->available_resources.