<div dir="ltr">Hi Jay, <div>Thx for the reply.</div><div>I had a look at nodepool but couldn't figure how to integrate it with my setup.</div><div>The slave is already a VM connected to the master.</div><div><br></div><div>I looked a little more through the code, and removed a "> /dev/null" from  /opt/stack/new/devstack-gate/devstack-vm-gate.sh so now i get more output in the jenkins job.</div><div>It seems the job fails inside "stack.sh" but "/dev/null" was hiding all the output.</div><div><br></div><div>The error is :</div><div>... snip ...</div><div><pre id="out" class="" style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-size:13px"><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><b>11:43:36</b> 2014-09-11 08:43:36.736 | ++ openstack --os-token 10b868ee719d4525a5f02712fc4dedcf --os-url <a href="http://127.0.0.1:9292/" style="word-wrap:break-word;color:rgb(92,53,102)">http://127.0.0.1:9292</a> image create cirros-0.3.2-x86_64-uec-kernel --public --container-format aki --disk-format aki
</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><b>11:43:40</b> 2014-09-11 08:43:40.973 | ERROR: glanceclient.common.http Request returned failure status 401.
</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><b>11:43:44</b> 2014-09-11 08:43:44.678 | ERROR: glanceclient.common.http Request returned failure status 401.
<b>11:43:44</b> 2014-09-11 08:43:44.678 | ERROR: openstack <html>
<b>11:43:44</b> 2014-09-11 08:43:44.678 |  <head>
<b>11:43:44</b> 2014-09-11 08:43:44.678 |   <title>401 Unauthorized</title>
<b>11:43:44</b> 2014-09-11 08:43:44.678 |  </head>
<b>11:43:44</b> 2014-09-11 08:43:44.678 |  <body>
<b>11:43:44</b> 2014-09-11 08:43:44.678 |   <h1>401 Unauthorized</h1>
<b>11:43:44</b> 2014-09-11 08:43:44.678 |   This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />
<b>11:43:44</b> 2014-09-11 08:43:44.678 | 
<b>11:43:44</b> 2014-09-11 08:43:44.678 |  </body>
<b>11:43:44</b> 2014-09-11 08:43:44.678 | </html> (HTTP 401)
<b>11:43:44</b> 2014-09-11 08:43:44.701 | + kernel_id=
<b>11:43:44</b> 2014-09-11 08:43:44.701 | + '[' -n /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-initrd ']'
<b>11:43:44</b> 2014-09-11 08:43:44.702 | ++ get_field 2
<b>11:43:44</b> 2014-09-11 08:43:44.703 | ++ local data field
<b>11:43:44</b> 2014-09-11 08:43:44.703 | ++ grep ' id '
<b>11:43:44</b> 2014-09-11 08:43:44.703 | ++ read data
<b>11:43:44</b> 2014-09-11 08:43:44.705 | ++ openstack --os-token 10b868ee719d4525a5f02712fc4dedcf --os-url <a href="http://127.0.0.1:9292/" style="word-wrap:break-word;color:rgb(92,53,102)">http://127.0.0.1:9292</a> image create cirros-0.3.2-x86_64-uec-ramdisk --public --container-format ari --disk-format ari
</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><b>11:43:48</b> 2014-09-11 08:43:48.962 | ERROR: glanceclient.common.http Request returned failure status 401.
</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><b>11:43:52</b> 2014-09-11 08:43:52.646 | ERROR: glanceclient.common.http Request returned failure status 401.
<b>11:43:52</b> 2014-09-11 08:43:52.646 | ERROR: openstack <html>
<b>11:43:52</b> 2014-09-11 08:43:52.646 |  <head>
<b>11:43:52</b> 2014-09-11 08:43:52.646 |   <title>401 Unauthorized</title>
<b>11:43:52</b> 2014-09-11 08:43:52.646 |  </head>
<b>11:43:52</b> 2014-09-11 08:43:52.647 |  <body>
<b>11:43:52</b> 2014-09-11 08:43:52.647 |   <h1>401 Unauthorized</h1>
<b>11:43:52</b> 2014-09-11 08:43:52.647 |   This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />
<b>11:43:52</b> 2014-09-11 08:43:52.647 | 
<b>11:43:52</b> 2014-09-11 08:43:52.647 |  </body>
<b>11:43:52</b> 2014-09-11 08:43:52.647 | </html> (HTTP 401)
<b>11:43:52</b> 2014-09-11 08:43:52.666 | + ramdisk_id=
<b>11:43:52</b> 2014-09-11 08:43:52.667 | + openstack --os-token 10b868ee719d4525a5f02712fc4dedcf --os-url <a href="http://127.0.0.1:9292/" style="word-wrap:break-word;color:rgb(92,53,102)">http://127.0.0.1:9292</a> image create cirros-0.3.2-x86_64-uec --public --container-format ami --disk-format ami
</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><b>11:43:56</b> 2014-09-11 08:43:56.861 | ERROR: glanceclient.common.http Request returned failure status 401.
</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><b>11:44:00</b> 2014-09-11 08:44:00.562 | ERROR: glanceclient.common.http Request returned failure status 401.
<b>11:44:00</b> 2014-09-11 08:44:00.562 | ERROR: openstack <html>
<b>11:44:00</b> 2014-09-11 08:44:00.562 |  <head>
<b>11:44:00</b> 2014-09-11 08:44:00.562 |   <title>401 Unauthorized</title>
<b>11:44:00</b> 2014-09-11 08:44:00.562 |  </head>
<b>11:44:00</b> 2014-09-11 08:44:00.562 |  <body>
<b>11:44:00</b> 2014-09-11 08:44:00.562 |   <h1>401 Unauthorized</h1>
<b>11:44:00</b> 2014-09-11 08:44:00.562 |   This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />
<b>11:44:00</b> 2014-09-11 08:44:00.562 | 
<b>11:44:00</b> 2014-09-11 08:44:00.562 |  </body>
<b>11:44:00</b> 2014-09-11 08:44:00.562 | </html> (HTTP 401)
<b>11:44:00</b> 2014-09-11 08:44:00.585 | + exit_trap
<b>11:44:00</b> 2014-09-11 08:44:00.585 | + local r=1
<b>11:44:00</b> 2014-09-11 08:44:00.585 | ++ jobs -p
<b>11:44:00</b> 2014-09-11 08:44:00.586 | + jobs='29192
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 29433
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 29441
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 31634
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 833
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 841
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 849
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 857
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 868
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 876'
<b>11:44:00</b> 2014-09-11 08:44:00.586 | + [[ -n 29192
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 29433
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 29441
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 31634
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 833
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 841
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 849
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 857
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 868
<b>11:44:00</b> 2014-09-11 08:44:00.586 | 876 ]]
<b>11:44:00</b> 2014-09-11 08:44:00.586 | + [[ -n /opt/stack/new/devstacklog.txt.2014-09-11-113844 ]]
<b>11:44:00</b> 2014-09-11 08:44:00.586 | + [[ True == \T\r\u\e ]]
<b>11:44:00</b> 2014-09-11 08:44:00.586 | + echo 'exit_trap: cleaning up child processes'
<b>11:44:00</b> 2014-09-11 08:44:00.586 | exit_trap: cleaning up child processes
<b>11:44:00</b> 2014-09-11 08:44:00.586 | + kill 29192 29433 29441 31634 833 841 849 857 868 876
<b>11:44:00</b> 2014-09-11 08:44:00.586 | ./stack.sh: line 633: kill: (29441) - Operation not permitted
<b>11:44:00</b> 2014-09-11 08:44:00.586 | + kill_spinner
<b>11:44:00</b> 2014-09-11 08:44:00.587 | + '[' '!' -z '' ']'
<b>11:44:00</b> 2014-09-11 08:44:00.587 | + [[ 1 -ne 0 ]]
<b>11:44:00</b> 2014-09-11 08:44:00.587 | + echo 'Error on exit'
<b>11:44:00</b> 2014-09-11 08:44:00.587 | Error on exit
<b>11:44:00</b> 2014-09-11 08:44:00.587 | + [[ -z /opt/stack/new ]]
<b>11:44:00</b> 2014-09-11 08:44:00.587 | + ./tools/worlddump.py -d /opt/stack/new
<b>11:44:00</b> 2014-09-11 08:44:00.617 | World dumping... see /opt/stack/new/worlddump-2014-09-11-084400.txt for details
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626: 29192 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626: 29433 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626: 31634 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626:   833 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626:   841 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626:   849 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626:   857 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626:   868 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | ./stack.sh: line 626:   876 Terminated              _old_run_process "$service" "$command"
<b>11:44:00</b> 2014-09-11 08:44:00.640 | + exit 1
<b>11:44:00</b> ERROR: the main setup script run by this job failed - exit code: 1
<b>11:44:00</b>     please look at the relevant log files to determine the root cause</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px">... snip ...</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px">If i run that command in the shell (openstack --os-token ...) i get the same error.</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px">Might be an error in stack.sh or the openstack script?</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px">Any ideas?</pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><span style="font-family:arial">Thanks,</span></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><span style="font-family:arial">Eduard</span></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><span style="font-family:arial"><br></span></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><span style="font-family:arial"> </span><b style="font-family:arial,sans-serif;text-align:-webkit-auto;white-space:normal;color:rgb(34,34,34)"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Eduard Biceri Mate, Senior Software Developer</span></b></pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);font-size:10px;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:13.5pt;font-family:Helvetica,sans-serif"><a href="http://www.cloudfounders.com/" target="_blank"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><font color="#0045a3">www.cloudfounders.com</font></span></a><div style="display:inline-block;width:16px;height:16px"></div><div style="display:inline-block;width:16px;min-height:16px"></div></span><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><font color="#1f497d"> | </font><a href="mailto:eduard.matei@cloudfounders.com" target="_blank"><font color="#0045a3">eduard.matei@cloudfounders.com</font></a></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><br><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-size:13.5pt;font-family:Arial,sans-serif;color:rgb(80,0,80)"><u></u> <u></u></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><b><span lang="EN-US" style="font-size:13.5pt;font-family:Arial,sans-serif">CloudFounders, The Private Cloud Software Company</span></b><span lang="EN-US" style="font-size:13.5pt;font-family:Arial,sans-serif"><u></u><u></u></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-size:13.5pt;font-family:Helvetica,sans-serif"><u></u> <u></u></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-family:Helvetica,sans-serif;font-size:11px">Disclaimer:<u></u><u></u></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-size:8.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br><span style="font-size:11px">If you are not the named addressee or an employee or agent responsible for delivering this message to the named addressee, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this email in error we request you to notify us by reply e-mail and to delete all electronic files of the message. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. <br>E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, and shall have no liability for any loss or damage suffered by the user, which arise as a result of e-mail transmission.</span></span></div></pre></pre></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 10, 2014 at 6:30 PM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 09/10/2014 04:19 AM, Eduard Matei wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys,<br>
I'm working on setting up a CI testing platform for the Cinder driver<br>
we're developing.<br>
I followed<br>
<a href="http://www.joinfu.com/2014/02/setting-up-an-external-openstack-testing-system/" target="_blank">http://www.joinfu.com/2014/02/<u></u>setting-up-an-external-<u></u>openstack-testing-system/</a><br>
and part 2, and i got both the master and the slave working, but the<br>
dsvm-tempest-full job is failing.<br>
</blockquote></span>
<snip><span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2014-09-10 11:15:37.318 | error: The following untracked working tree files would be overwritten by checkout:<br>
</blockquote></span>
<snip><span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Any ideas how to fix this?<br>
</blockquote>
<br></span>
Hi Eduard,<br>
<br>
I suspect, from looking at the above error, that you are re-using the slave instance on subsequent runs of Jenkins jobs. If you are doing this (as opposed to using something like nodepool to keep a pool of single-use slave VMs around for running Jenkins jobs, then you will need to run some sort of cleanup/reset script after the Jenkins job completes.<br>
<br>
Akihiro Motoki has a nice repo with scripts you can use for this purpose:<br>
<br>
<a href="https://github.com/amotoki/devstack-tools" target="_blank">https://github.com/amotoki/<u></u>devstack-tools</a><br>
<br>
(see the devstack-cleaner.sh script)<br>
<br>
For best results, however, the upstream infrastructure team has definitely found that using single-use slave VMs, managed by nodepool, is the safest and cleanest way to handle Jenkins jobs that involve devstack-gate (like the jobs detailed in my <a href="http://joinfu.com" target="_blank">joinfu.com</a> posts).<br>
<br>
All the best,<br>
-jay<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-Infra mailing list<br>
<a href="mailto:OpenStack-Infra@lists.openstack.org" target="_blank">OpenStack-Infra@lists.<u></u>openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-infra" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-infra</a><br>
</blockquote></div><br></div>