~ltrager/maas:reset_networking_after_netplan_fail

Last commit made on 2019-08-13
Get this branch:
git clone -b reset_networking_after_netplan_fail https://git.launchpad.net/~ltrager/maas
Only Lee Trager can upload to this branch. If you are Lee Trager please log in for upload directions.

Branch merges

Branch information

Name:
reset_networking_after_netplan_fail
Repository:
lp:~ltrager/maas

Recent commits

0c78adc... by Lee Trager

Fix lint

9dbe205... by Lee Trager

Merge branch 'master' into reset_networking_after_netplan_fail

0316398... by Adam Collard

Expose user.create, user.update, user.delete on websocket

Fixes LP:1838942

60b099a... by Steve Rydz

Decouple selection of KVM and RSD

db96fa3... by Lee Trager

Check if the interface link is connected on network test failure.

If a network test which applies customized networking with an interface
parameter fails maas-run-remote-scripts will check if the link is still
connected. If it is not the result YAML file will be appended with
link_connected: False. When the result YAML is processed MAAS will
automatically change the interface's link_connected status.

4aad2cf... by Lee Trager

Restore the ephemeral environment networking after netplan apply fails.

When applying custom network configuration CustomNetworking uses the helper
run_and_check. This runs the specified command and if a failure occurs
sends the log and fails the test. Previously the reset was happening after
run_and_check tried to send the failure. If netplan apply failed there is
no valid network config so the send fails and MAAS never gets the result.
run_and_check now accepts a failure_hook to run when a failure is detected
before sending the result. CustomNetworking passes apply_ephemeral_netplan
function to ensure failures are sent with valid network config.

d0a4ec6... by Blake Rouse

Fixes LP: #1710278 - Notice when bind9 is hung, force kill the service, ensure it starts again, then perform a reload.

0534ee3... by Steve Rydz

Defer check for RSD tab to after page is ready

b98667f... by Lee Trager

Add network validation tests.

* internet-connectivity - Check if an interface can access the specified
  URL(s).
* gateway-connectivity - Check if an interface has access to the
  configured gateway.
* rack-controller-connectivity - Check if an interface has access to the
  booted rack controller.

If the specified interface is a bond or a bridge with a lower bond the
interface will be tested with only one slave device connected at a time.

1fb5d59... by Alberto Donato

replace direct setters with Node.set_power_config to simplify logic