uvt-kvm create ... && uvt-kvm wait ... && uvt-kvm ssh ... is inconvenient and repetitive

Bug #1301412 reported by Robie Basak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uvtool
Triaged
Wishlist
Unassigned

Bug Description

This is a common use case. I propose: "uvt-kvm ssh --wait ...", to incorporate a default wait first. A shortcut could be: "uvt-kvm ssh -w ...".

This would save having to retype the guest name and --insecure (as long at that remains) all the time.

This leads to a question: should the ssh subcommand also accept all options that the wait subcommand does? I'd say no, since this increases complexity and I'm not sure how useful it would be. Scripts that use them could just call wait and then ssh, and that wouldn't really be any extra effort from a human.

Revision history for this message
Robie Basak (racb) wrote :

Some other ideas.

From Louis: uvt-kvm create --wait, to do the wait automatically.

Further ideas stemming from this: uvt-kvm create --login|-l, which will imply --wait and also ssh automatically.

summary: - uvt-kvm wait ... && uvt-kvm ssh ... is inconvenient and repetitive
+ uvt-kvm create ... && uvt-kvm wait ... && uvt-kvm ssh ... is
+ inconvenient and repetitive
Revision history for this message
khb (khbkhb) wrote :

slight variation, I find myself often using

uvt-kvm wait $DOMAIN && sleep 45 && uvt-kvm shh $DOMAIN

because I've got ssh configured to do X11 forwarding, and without the sleep, the initial ssh tends to not work as expected due to Xauth not yet being ready. 45s is probably much longer than necessary, uvt-kvm wait should be "long enough" so that reasonable use cases are covered.

Revision history for this message
Robie Basak (racb) wrote :

I object to arbitrary sleeps and would like to avoid them as much as possible because they cause cumulative delays in scripts.

You can adjust the wait script to do whatever you like. See --remote-wait-script in uvt-kvm(1). Enhancements to the default wait script shipped with uvtool are welcome, providing that they don't break existing common use cases or unnecessarily slow down users who don't want any additional delays.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.