~lutostag/maas:fix-1507712

Last commit made on 2017-09-18
Get this branch:
git clone -b fix-1507712 https://git.launchpad.net/~lutostag/maas
Only Greg Lutostanski can upload to this branch. If you are Greg Lutostanski please log in for upload directions.

Branch merges

Branch information

Name:
fix-1507712
Repository:
lp:~lutostag/maas

Recent commits

c0fb8dc... by Greg Lutostanski

make format

d808e19... by Greg Lutostanski

add test for consistent view cache usage

1d66b56... by Greg Lutostanski

LP: #1507712 - cli: maas logout causes KeyError for other profiles

There is a race where when profiles are being deleted, if this happens
between the __iter__ and __getitem__ (of a different invocation of the
cli) which are two different SQL queries, there is an inconsistent view.

So instead use a cache with a consistent view of the data. This
guarantees correct -- if stale behavior in the cli.

Note that this is acceptable because when running two commands at the
same time ordering is unknown and the cache only lives for the lifetime
of a single command.

c83fb7a... by Andres Rodriguez

LP: #1642298 - Grub upgrades overwrites NVRAM, breaking MAAS boot order.

Grub2 package upgrades overwrite the NVRAM. This causes the MAAS written NVRAM to be overwritten, which causes machines to be unable to PXE boot in subsequent reboots.

9bb61b0... by Lee Trager

Return a query set of the latest run script results and their histories.

8a1bc1a... by Newell Jensen

Update hardware testing builtin script smartctl so that it no longer uses threads and instead takes a storage parameter.

6c056fd... by Newell Jensen

Update hardware testing builtin script badblocks so that it no longer uses threads and instead takes a storage parameter.

fc2f29b... by Newell Jensen

Add builtin script fio test for hardware testing.

ad72d23... by Lee Trager

Regenerate the current_testing_script_set when commissioning completes.

When commissioning finishes and there are testing scripts to run
maas_run_remote_scripts sends the TESTING signal. This changes node.status to
TESTING. Commissioning may have changed the storage devices available. MAAS now checks if any testing script to be run after commissioning uses the
storage parameter. If so the ScriptResult is deleted and a new one is created
which uses the default(test all storage devices).

maas_run_remote_scripts checks if any test scripts use the storage parameter
after the TESTING signal is sent. If so it redownloads the script tarball
which will contain the updated parameters.

245e73f... by Lee Trager

Pass parameters to scripts.

Paramaters are now passed to commissioning and testing scripts. If the
parameter is a storage type maas_run_remote_scripts will attempt to lookup
the storage device by model and serial to get the block device path.