~bjornt/maas:bug-1996074-diskless-machine-ephemeral

Last commit made on 2022-11-11
Get this branch:
git clone -b bug-1996074-diskless-machine-ephemeral https://git.launchpad.net/~bjornt/maas
Only Björn Tillenius can upload to this branch. If you are Björn Tillenius please log in for upload directions.

Branch merges

Branch information

Name:
bug-1996074-diskless-machine-ephemeral
Repository:
lp:~bjornt/maas

Recent commits

189954a... by Björn Tillenius

LP #1996074: Machine details stuck at "Loading" for machines with no disks

The issue was that if you delete all disks from a machine, the testing
node's current scriptset will be empty. Then when the machine was deploy, the
creation of the installation scriptset would clean up the empty testing
scripset, leaving a reference to a deleted row.

I've changed things so that when you create a new scriptset, we only clean up
scriptsets of the same type. I also fixed the tests, since they didn't actually
create any empty sets. The reason the tests passed before was that they set the
max limit to 1.

Now the real issue is that Node.current_testing_script_set doesn't have a
foreign key in the database, and that the 'on_delete=SET_NULL' doesn't work.
But considering that might be hard to fix, I think it's worth landing this
workaround for now.

f0982e9... by Igor Brovtsin

feat(vault): vault migration restart service

12f4f3f... by Alberto Donato

add performance test to track how long it takes to fetch objects in machines
read API

1e415cf... by Igor Brovtsin

Fixed listener raising `KeyError` and `PostgresListenerUnregistrationError` on MAAS shutdown

The fix consists of:
- Ignoring unregistration attempts from client services when listener service is shutting down
- Raising on registration attempts when listener service is shutting down
- Using `discard` instead of `remove` on `registeredChannels` set when disconnecting (as `clear()` is called on disconnect)

55249c4... by Igor Brovtsin

feat(vault): `config-vault migrate` command

c82fab8... by Alberto Donato

add MAASUUIDFixture to isolate MAAS_UUID backing files in tests

2ee4d01... by Björn Tillenius

Fix test_PUT_admin_can_change_power_type intermittent failure.

If the power type is 'lxd', it fails, since it can't generate the certificate.

a87784e... by Alberto Donato

Revert "set the REQUESTS_CA_BUNDLE path for the snap"

Setting the path breaks LXD power driver, which fails to validate the
certificate when self-signed

This reverts commit 9e3af560d8465057c2159c09667bf1cd0a02557b.

d927d74... by Alexsander de Souza

disables Colorama

Colorama interferes with our CLI output. As Django automatically loads Colorama when it's in PYTHONPATH, we need to disable it

fixes LP#1996065

5221324... by Igor Brovtsin

Fixed "Mark Fixed" action not being available for nodes with skipped scriptresult