~andreserl/maas:fix_missing_return

Last commit made on 2017-08-28
Get this branch:
git clone -b fix_missing_return https://git.launchpad.net/~andreserl/maas
Only Andres Rodriguez can upload to this branch. If you are Andres Rodriguez please log in for upload directions.

Branch merges

Branch information

Name:
fix_missing_return
Repository:
lp:~andreserl/maas

Recent commits

f52e432... by Andres Rodriguez

Fix missing return

e22d28d... by Lee Trager

Install packages before running scripts.

Scripts may now set the packages attribute. This attribute is a dictionary
which describes what apt packages, snap packages, or URLs to download. Package
installation happens before the script runs and is not counted against its
runtime. The region will be notified when script installation starts and an
installation failure will set the script to failed installation.
maas-run-remote-scripts will export the environment variable DOWNLOAD_PATH
which is the path to all URLs downloaded. Any URL containing a tar or zip will
 be extracted and any deb or snap file will be installed.

761f888... by Newell Jensen

Add ParametersForm for hardware testing script parameters validation. This branch validates script parameters on script upload. A future branch will validate any user supplied parameters.

7284811... by Andres Rodriguez

Minor packaging improvements

7c16b98... by Данило Шеган

Create Switch models for detected switches during commissioning.

Makes the existing hooks code use the Switch model and introduces NOSDriver infrastructure and a stub FlexswitchNOSDriver.

2d7d8ad... by Mike Pontillo

Add ControllerInfo model.

 * Also change Switch model to remove surrogate key.
 * Fix TimestampedModel to handle the lack of surrogate keys.

21156ee... by Lee Trager

Modify make package to use debian from in tree.

404d129... by Blake Rouse

Fixes LP: #1711700 - Improve DNS reloading so its happens only when required.

This refactors all the the database triggers that alert all the active regions that DNS needs to be reloaded. The refactor ensures that DNS actually needs to be reloaded by checking to ensure that data was adjusted that requires a reload.

Trigger also now provide a proper message on what caused it to request the reload to be perform. The reload code now looks at the reasons and prints a log message each time it actually performs a reload for the reason it was performed.

59aacf9... by Lee Trager

Set environment variables for output locations and send any results created.

The maas_run_remote_scripts command which executes all commissioning and
testing scripts now export the OUTPUT_COMBINED_PATH, OUTPUT_STDOUT_PATH,
OUTPUT_STDERR_PATH, and RESULT_PATH. These variables are the paths to the
output files maas_run_remote_scripts sends back to MAAS. The RESULT_PATH is an
optional YAML file created by the script. This YAML file defines the scripts
results and what the script result status should be set to.

75cd9cf... by Lee Trager

Accept and validate results from nodes.

During commissioning and testing nodes may now send a result YAML file. The
result YAML may define the script result(passed, failed, or degraded) which
overrides using the exit_status to define the script_status. The result YAML
may also include results which is a dictionary of results from the script
which will be displayed over the API and UI. The result YAML file is
validated and an invalid YAML will be logged but still stored or later
viewing.

Nodes may also signal when installation begins. If a node signals failure
when the script_status is INSTALLING the status will be set to
FAILED_INSTALLING.