adjust --ssh implementation
ClosedPublic

Authored by kparal on Aug 6 2015, 4:12 PM.

Details

Summary
  • Slight improvements in taskotron.yaml documentation.
  • Removal of SSH section from taskotron.yaml, because using it from the cmdline should be enough for now, and we can add more features if somebody really needs it.
  • Moved ssh_privkey to Secrets section and made sure this key is named the same way everywhere in the code.
  • Moved checking valid config values into _check_sanity() function.
  • Throw an error when invalid profile name is specified, to make it in line with invalid runtask mode specified.
  • Rework a bit local/remote execution decision code. Move closer to our final state, where --ssh execution is a bit different from --libvirt execution (throw 'not implemented' for --libvirt for now).
  • Add a few tests.
Test Plan

test suite works, remote execution works

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to adjust --ssh implementation.Aug 6 2015, 4:12 PM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: tflink, lbrabec.
lbrabec accepted this revision.Aug 7 2015, 8:12 AM

Besides the comment, looks good to me.

libtaskotron/runner.py
390–400

Just an idea, changing metavar to /path/to/private.key would be probably more readable and consistent with comments in config

This revision is now accepted and ready to land.Aug 7 2015, 8:12 AM
kparal marked an inline comment as done.Aug 7 2015, 12:57 PM

I've implemented also --libvirt so that we can easily plug it in into D482. I suppose we might go with --remote in the future, but it was easier this way in the short timeframe.

libtaskotron/runner.py
390–400

Thanks, that's better.

kparal updated this revision to Diff 1287.Aug 7 2015, 12:58 PM
kparal marked an inline comment as done.
  • implement --libvirt
This revision was automatically updated to reflect the committed changes.