<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div><font face="Calibri,sans-serif">Trove-Gate appears to sit idle after the last output from the test run. See the following samples:</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div>Excerpt from <a href="https://rdjenkins.dyndns.org/job/Trove-Gate/3792/console">https://rdjenkins.dyndns.org/job/Trove-Gate/3792/console</a></div>
<div><br>
</div>
<div>
<div><font face="Monaco" style="font-size: 12px;">12:59:47 202.03 proboscis.case.MethodTest (test_instance_returns_to_active_after_resize)</font></div>
<div><font face="Monaco" style="font-size: 12px;">13:47:06 **************************************</font></div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">Excerpt from <a href="https://rdjenkins.dyndns.org/job/Trove-Gate/3790/console">https://rdjenkins.dyndns.org/job/Trove-Gate/3790/console</a></div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div>
<div><font face="Monaco" style="font-size: 12px;">12:25:13 237.68 proboscis.case.MethodTest (test_instance_returns_to_active_after_resize)</font></div>
<div><font face="Monaco" style="font-size: 12px;">13:10:54 **************************************</font></div>
</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
</div>
<div style="font-family: Calibri, sans-serif;">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:</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div>
<div><font face="Monaco" style="font-size: 12px;">cat << EOF > $temp_file</font></div>
<div><font face="Monaco" style="font-size: 12px;">...beginning of script omitted...</font></div>
<div><font face="Monaco" style="font-size: 12px;">./redstack int-tests</font></div>
<div><font face="Monaco" style="font-size: 12px;">EOF</font></div>
<div><font face="Monaco" style="font-size: 12px;">scp $temp_file stack@$ip:/home/stack</font></div>
<div><font face="Monaco" style="font-size: 12px;">ssh stack@$ip /bin/bash -e /home/stack/$(basename $temp_file)</font></div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">All of the tests pass but the job sits there spinning forever. However, if I add "-t -t" to the last line like so:</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div><font face="Monaco" style="font-size: 12px;">ssh -t -t stack@$ip /bin/bash -e /home/stack/$(basename $temp_file)</font></div>
</div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">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:</font></div>
</div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><span style="font-size: 12px;"><font face="Monaco">export TERM=xterm-mono</font></span></div>
<div><br>
</div>
<div>Questions:</div>
<ul>
<li>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
<a href="https://github.com/openstack/trove-integration/blob/8bd8227fa406ccdc24a4a9d18b9a0e840f118444/README.md">
README.md</a> say, "chmod 660 /dev/pts/1"?</li><li>If this is the fix, then some edits may be needed <a href="https://github.com/mrhoades/boot-hpcloud-vm/blob/a7f6dcc1a414c7d736c19b4e55cfeb63b2a32d0d/models/novafizz.rb#L286">
here</a> using <a href="http://net-ssh.github.io/net-ssh/classes/Net/SSH/Connection/Channel.html#method-i-request_pty">
this</a>.</li></ul>
</body>
</html>