modify the testcloud code and add a "reboot" option
ClosedPublic

Authored by lnie on Jun 27 2016, 7:59 AM.

Details

Summary

print the ip of vm to screen when users try to start an existing testcloud instance,so they can easily know ssh to where
add a "reboot" option for users who do some work to testcloud instance and want to see what will happen after a reboot

Test Plan

Just start an existing instance and see whether the ip is printed to the screen
reboot a running instance and check whether the option works well

Diff Detail

Repository
rTCLOUD testcloud
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lnie retitled this revision from to modify the testcloud code and add a "reboot" option.Jun 27 2016, 7:59 AM
lnie updated this object.
lnie edited the test plan for this revision. (Show Details)
lnie added a reviewer: testcloud.
lnie added a subscriber: tflink.
jskladan requested changes to this revision.Jun 27 2016, 1:39 PM
jskladan added a reviewer: jskladan.
jskladan added a subscriber: jskladan.

It seems like you wrapped changes for two different tickets into one diff, which ended up in both reviews (D899 and D905). Please make sure just the relevant changes are present in the Differentials.

testcloud/cli.py
121

Use os.path.join() instead.

163

Please add docstring.

This revision now requires changes to proceed.Jun 27 2016, 1:40 PM
lnie updated this revision to Diff 2309.Jun 28 2016, 6:58 AM

update the diff using hints from the review

jskladan accepted this revision.Jun 28 2016, 11:58 AM
This revision is now accepted and ready to land.Jun 28 2016, 11:58 AM
lbrabec accepted this revision.Jul 11 2016, 11:30 AM
kparal added a subscriber: kparal.Jul 11 2016, 11:38 AM

I pushed this to the testcloud repo. Lili, next time, please base your patches on the dev branch, not master. I had to rebase it, but fortunately it had no conflicts. Also, you might want to set up your proper name and email in ~/.config/git/config.

This revision was automatically updated to reflect the committed changes.
lnie added a comment.Jul 12 2016, 4:36 AM
In D905#17442, @kparal wrote:

I pushed this to the testcloud repo. Lili, next time, please base your patches on the dev branch, not master. I had to rebase it, but fortunately it had no conflicts. Also, you might want to set up your proper name and email in ~/.config/git/config.

Thanks a lot for your gentle help and useful information : )