[openstack-dev] [Trove] Trove-Gate idle time

Craig Vyvial cp16net at gmail.com
Wed May 28 15:11:35 UTC 2014


Hey Mathew,

Great sleuthing and maybe that will help. Sounds like a possible solution
to the job sitting for a while.

The reason we put the chmod in the README.md was because on a cloud server
when we tested everything we found that you could not connect to the screen
session because permissions were bad on /dev/pts/[1-9].
"screen -x" would fail. This may or may not be necessary depending on the
base image you are using.

-Craig


On Tue, May 27, 2014 at 2:11 PM, Lowery, Mathew <mlowery at ebay.com> wrote:

>  Trove-Gate appears to sit idle after the last output from the test run.
> See the following samples:
>
>  Excerpt from https://rdjenkins.dyndns.org/job/Trove-Gate/3792/console
>
>  12:59:47     202.03     proboscis.case.MethodTest
> (test_instance_returns_to_active_after_resize)
> 13:47:06 **************************************
>
>  Excerpt from https://rdjenkins.dyndns.org/job/Trove-Gate/3790/console
>
>  12:25:13     237.68     proboscis.case.MethodTest
> (test_instance_returns_to_active_after_resize)
> 13:10:54 **************************************
>
>  Notice the timestamps of the lines. The first line in each sample is the
> last line of output from the int tests. The second line in each sample is
> the boot-hpcloud-vm plugin. In the absence of the timeout setting in the
> boot-hpcloud-vm plugin, I don't think these jobs would ever end. But the
> boot-hpcloud-vm plugin does have a timeout. I was able to reproduce what I
> think is the same problem with the following code:
>
>  cat << EOF > $temp_file
> ...beginning of script omitted...
> ./redstack int-tests
> EOF
> scp $temp_file stack@$ip:/home/stack
> ssh stack@$ip /bin/bash -e /home/stack/$(basename $temp_file)
>
>  All of the tests pass but the job sits there spinning forever. However,
> if I add "-t -t" to the last line like so:
>
>  ssh -t -t stack@$ip /bin/bash -e /home/stack/$(basename $temp_file)
>
>  The job completes. Note: Adding "-t -t" makes the int tests process
> think I have a color terminal so I also added the following line before
> kicking off the tests:
>
>  export TERM=xterm-mono
>
>  Questions:
>
>    - I don't understand tty very well. Can someone help me understand why
>    this works (if in fact this is the cause)? Possibly related question: Why
>    does the README.md<https://github.com/openstack/trove-integration/blob/8bd8227fa406ccdc24a4a9d18b9a0e840f118444/README.md> say,
>    "chmod 660 /dev/pts/1"?
>    - If this is the fix, then some edits may be needed here<https://github.com/mrhoades/boot-hpcloud-vm/blob/a7f6dcc1a414c7d736c19b4e55cfeb63b2a32d0d/models/novafizz.rb#L286>using
>    this<http://net-ssh.github.io/net-ssh/classes/Net/SSH/Connection/Channel.html#method-i-request_pty>
>    .
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140528/7a412cff/attachment.html>


More information about the OpenStack-dev mailing list