Merge ~os369510/maas/+git/maas:master into maas:master
Status: | Rejected |
---|---|
Rejected by: | Adam Collard |
Proposed branch: | ~os369510/maas/+git/maas:master |
Merge into: | maas:master |
Diff against target: |
129 lines (+105/-0) 2 files modified
src/provisioningserver/drivers/power/registry.py (+2/-0) src/provisioningserver/drivers/power/ssh.py (+103/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
MAAS Lander | Approve | ||
MAAS Maintainers | Pending | ||
Review via email: mp+375994@code.launchpad.net |
Commit message
Add SSH Power driver
Description of the change
In our development environment, we need to daily deploy the daily built image to various platforms. (such as workstation, laptop, IoT board, etc...)
There's many platforms not support either:
1. Power on when AC detected (which means can not be wake up by PDU).
2. Wake on LAN.
and also these platforms won't be power-off after last deployment completed.
Therefore, here is the idea to power control device through ssh command.
Requirements:
1. Generate ssh keys on MaaS server (e.g. put ssh key in /var/lib/
2. Add the pair public key of above one to MaaS account.
3. Assign a static IP for target device.
4. Need to know a super user name on target device.
Then the device would be reboot after 5 secs (to prevent got ssh connection closed error) when deploying image if the device has been deployed by MaaS in previous stage.
I've already test it with version 2.5.0-7442-
I'm new in MaaS world and would like to know more opinions.
Please let me know if anything I'm missing.
UNIT TESTS
-b master lp:~os369510/maas/+git/maas into -b master lp:~maas-committers/maas
STATUS: FAILED maas-ci- jenkins. internal: 8080/job/ maas/job/ branch- tester/ 6996/console ce87509dac8f14b 2248c0f4b9
LOG: http://
COMMIT: 2b908804f95049b