<div dir="ltr">Completely isolated docker containers. Jenkins basically runs two separate calls to docker...<div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><pre class="gmail-console-output" style="box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-size:14px">[vagrant-1.9.1] $ docker run -t -d -u 997:994 -v /opt/gemcache:/opt/gemcache -w /var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ -v /var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ:/var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ:rw -v /var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ@tmp:/var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ@tmp:rw -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat myoung34/vagrant:1.9.1
<span style="box-sizing:border-box;color:rgb(154,153,153)">[Pipeline] [vagrant-1.9.1] {</span></pre><pre class="gmail-console-output" style="box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-size:14px"><span style="box-sizing:border-box;color:rgb(154,153,153)"><br></span></pre></div></blockquote><font color="#9a9999" face="monospace"><span style="font-size:14px;white-space:pre-wrap"><br></span></font><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><pre class="gmail-console-output" style="box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-size:14px"><span style="box-sizing:border-box;color:rgb(154,153,153)">[Pipeline] [vagrant-1.9.2] withDockerContainer
</span>[vagrant-1.9.2] $ docker run -t -d -u 997:994 -v /opt/gemcache:/opt/gemcache -w /var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ -v /var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ:/var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ:rw -v /var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ@tmp:/var/lib/jenkins/workspace/oung34_vagrant-ovirt4_PR-79-7BRKVM5TQ5BGPECFMXYIEOYZOICCET4GY37WXT4D65NSV4F5TADQ@tmp:rw -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat myoung34/vagrant:1.9.2</pre><pre class="gmail-console-output" style="box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);font-size:14px"><br></pre></div></blockquote><font color="#333333" face="monospace"><span style="font-size:14px;white-space:pre-wrap">Each of those containers in turn runs:</span></font></div><div><font color="#333333" face="monospace"><span style="font-size:14px;white-space:pre-wrap"><br></span></font></div><div><table class="gmail-diff-table gmail-tab-size" style="box-sizing:border-box;width:978px;color:rgb(36,41,46);font-family:-apple-system,system-ui,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><br></td></tr><tr style="box-sizing:border-box"><td class="gmail-blob-num gmail-blob-num-addition empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td id="gmail-diff-58231b16fdee45a03a4ee3cf94a9f2c3R30" class="gmail-blob-num gmail-blob-num-addition gmail-js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><button class="gmail-btn-link gmail-add-line-comment gmail-js-add-line-comment gmail-js-add-single-line-comment" type="button" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:21px;font-family:inherit;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border-width:0px;border-style:initial;border-color:initial;float:left;width:22px;height:22px;border-radius:3px;opacity:0"></button><span class="gmail-blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">+<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"> gem build *.gemspec</span></span></td></tr><tr style="box-sizing:border-box"><td class="gmail-blob-num gmail-blob-num-addition empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td id="gmail-diff-58231b16fdee45a03a4ee3cf94a9f2c3R31" class="gmail-blob-num gmail-blob-num-addition gmail-js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><button class="gmail-btn-link gmail-add-line-comment gmail-js-add-line-comment gmail-js-add-single-line-comment" type="button" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:21px;font-family:inherit;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border-width:0px;border-style:initial;border-color:initial;float:left;width:22px;height:22px;border-radius:3px;opacity:0"></button><span class="gmail-blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">+<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"> /usr/bin/vagrant plugin install *.gem</span></span></td></tr><tr style="box-sizing:border-box"><td class="gmail-blob-num gmail-blob-num-addition empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td id="gmail-diff-58231b16fdee45a03a4ee3cf94a9f2c3R32" class="gmail-blob-num gmail-blob-num-addition gmail-js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><button class="gmail-btn-link gmail-add-line-comment gmail-js-add-line-comment gmail-js-add-single-line-comment" type="button" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:21px;font-family:inherit;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border-width:0px;border-style:initial;border-color:initial;float:left;width:22px;height:22px;border-radius:3px;opacity:0"></button><span class="gmail-blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">+<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"> bundle install --path /opt/gemcache --without development plugins</span></span></td></tr><tr style="box-sizing:border-box"><td class="gmail-blob-num gmail-blob-num-addition empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td id="gmail-diff-58231b16fdee45a03a4ee3cf94a9f2c3R33" class="gmail-blob-num gmail-blob-num-addition gmail-js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><button class="gmail-btn-link gmail-add-line-comment gmail-js-add-line-comment gmail-js-add-single-line-comment" type="button" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:21px;font-family:inherit;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border-width:0px;border-style:initial;border-color:initial;float:left;width:22px;height:22px;border-radius:3px;opacity:0"></button><span class="gmail-blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">+<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"> bundle exec kitchen destroy all</span></span></td></tr><tr style="box-sizing:border-box"><td class="gmail-blob-num gmail-blob-num-addition empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td id="gmail-diff-58231b16fdee45a03a4ee3cf94a9f2c3R34" class="gmail-blob-num gmail-blob-num-addition gmail-js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><button class="gmail-btn-link gmail-add-line-comment gmail-js-add-line-comment gmail-js-add-single-line-comment" type="button" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:21px;font-family:inherit;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border-width:0px;border-style:initial;border-color:initial;float:left;width:22px;height:22px;border-radius:3px;opacity:0"></button><span class="gmail-blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">+<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"> rm -rf .kitchen</span></span></td></tr><tr style="box-sizing:border-box"><td class="gmail-blob-num gmail-blob-num-addition empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td id="gmail-diff-58231b16fdee45a03a4ee3cf94a9f2c3R35" class="gmail-blob-num gmail-blob-num-addition gmail-js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><button class="gmail-btn-link gmail-add-line-comment gmail-js-add-line-comment gmail-js-add-single-line-comment" type="button" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:21px;font-family:inherit;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border-width:0px;border-style:initial;border-color:initial;float:left;width:22px;height:22px;border-radius:3px;opacity:0"></button><span class="gmail-blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">+<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"> sleep <span class="gmail-pl-cce" style="box-sizing:border-box">\$</span>(shuf -i 0-10 -n 1) #i did this to see if maybe i could stagger the creates</span></span></td></tr><tr style="box-sizing:border-box"><td class="gmail-blob-num gmail-blob-num-addition empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td id="gmail-diff-58231b16fdee45a03a4ee3cf94a9f2c3R36" class="gmail-blob-num gmail-blob-num-addition gmail-js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><button class="gmail-btn-link gmail-add-line-comment gmail-js-add-line-comment gmail-js-add-single-line-comment" type="button" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:21px;font-family:inherit;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border-width:0px;border-style:initial;border-color:initial;float:left;width:22px;height:22px;border-radius:3px;opacity:0"></button><span class="gmail-blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">+<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"> export VAGRANT_VERSION=<span class="gmail-pl-cce" style="box-sizing:border-box">\$</span>(echo <span class="gmail-pl-s1" style="box-sizing:border-box;color:rgb(51,51,51)"><span class="gmail-pl-pse" style="box-sizing:border-box">${</span>vagrantVersion<span class="gmail-pl-pse" style="box-sizing:border-box">}</span></span> | sed 's/<span class="gmail-pl-cce" style="box-sizing:border-box">\\</span>.//g')</span></span></td></tr><tr style="box-sizing:border-box"><td class="gmail-blob-num gmail-blob-num-addition empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td id="gmail-diff-58231b16fdee45a03a4ee3cf94a9f2c3R37" class="gmail-blob-num gmail-blob-num-addition gmail-js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(219,255,219);border-color:rgb(193,233,193)"></td><td class="gmail-blob-code gmail-blob-code-addition" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(234,255,234)"><button class="gmail-btn-link gmail-add-line-comment gmail-js-add-line-comment gmail-js-add-single-line-comment" type="button" style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:21px;font-family:inherit;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border-width:0px;border-style:initial;border-color:initial;float:left;width:22px;height:22px;border-radius:3px;opacity:0"></button><span class="gmail-blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">+<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"> bundle exec kitchen test ^[^singleton-]</span></span></td></tr></tbody></table></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 11:01 AM, Juan Hernández <span dir="ltr"><<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.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 03/07/2017 05:42 PM, Marc Young wrote:<br>
> I've been fighting this for roughly two days and I'm starting to think<br>
> that possibly it's not my code but an interaction with the server.<br>
><br>
> I'm using test-kitchen[1] with the kitchen-vagrant[2] driver to spin up<br>
> vagrant machines and run tests against them. I'm using Jenkins to run<br>
> kitchen in containers in parallel.<br>
><br>
> Basically Jenkins runs a docker container with ruby + vagrant 1.9.2 and<br>
> runs kitchen test all at the same time as another container with ruby +<br>
> vagrant 1.9.1.<br>
><br>
> If I run these in parallel, on some occasions the server seems to<br>
> respond with the wrong creation information. If you look at the logs<br>
> here: <a href="http://home.blindrage.us:8080/job/myoung34/job/vagrant-ovirt4/view/change-requests/job/PR-79/41/console" rel="noreferrer" target="_blank">http://home.blindrage.us:8080/<wbr>job/myoung34/job/vagrant-<wbr>ovirt4/view/change-requests/<wbr>job/PR-79/41/console</a><br>
> <<a href="http://home.blindrage.us:8080/job/myoung34/job/vagrant-ovirt4/view/change-requests/job/PR-79/41/console" rel="noreferrer" target="_blank">http://home.blindrage.us:<wbr>8080/job/myoung34/job/vagrant-<wbr>ovirt4/view/change-requests/<wbr>job/PR-79/41/console</a>><br>
><br>
><br>
> the container for vagrant 1.9.1 created a VM `vagrant-dynamic-1.9.1:<br>
><br>
> [vagrant-1.9.1] Bringing machine 'default' up with 'ovirt4' provider...<br>
><br>
> [vagrant-1.9.1] ==> default: Creating VM with the following settings...<br>
><br>
> [vagrant-1.9.1] ==> default: -- Name: dynamic-1.9.1<br>
><br>
><br>
> And the container for vagrant 1.9.2 (nearly the same time) created a VM<br>
> `vagrant-dynamic-1.9.2`:<br>
><br>
> [vagrant-1.9.2] ==> default: Creating VM with the following settings...<br>
><br>
> [vagrant-1.9.2] ==> default: -- Name: dynamic-1.9.2<br>
><br>
> [vagrant-1.9.2] ==> default: -- Cluster: Default<br>
><br>
><br>
> If you look at the ss:<br>
><br>
</span><span class="">> the container 1.9.1 will wait for dynamic-1.9.1 and try to contact it at<br>
> 192.168.2.54<br>
><br>
> the container 1.9.2 will wait for dynamic-1.9.2 and try to contact it at<br>
> 192.168.2.55<br>
><br>
> But if you look at the logs, the 1.9.1 container started trying to work<br>
> with 192.168.2.55 by creating a new key then talking to it:<br>
><br>
> [vagrant-1.9.1] default: Key inserted! Disconnecting and reconnecting using new SSH key...<br>
><br>
</span>> [vagrant-1.9.1] Waiting for SSH service on <a href="http://192.168.2.55:22" rel="noreferrer" target="_blank">192.168.2.55:22</a> <<a href="http://192.168.2.55:22" rel="noreferrer" target="_blank">http://192.168.2.55:22</a>>, retrying in 3 seconds<br>
<span class="">><br>
><br>
> Because 1.9.1 inserted a generated key into that box, the 1.9.2<br>
> container which _should_ be talking to it cannot now:<br>
><br>
> [vagrant-1.9.2] ==> default: Rsyncing folder: /home/jenkins/.kitchen/cache/ => /tmp/omnibus/cache<br>
> [vagrant-1.9.2] SSH authentication failed! This is typically caused by the public/private<br>
> [vagrant-1.9.2] keypair for the SSH user not being properly set on the guest VM. Please<br>
> [vagrant-1.9.2] verify that the guest VM is setup with the proper public key, and that<br>
> [vagrant-1.9.2] the private key path for Vagrant is setup properly as well.<br>
><br>
><br>
><br>
> Via the ruby sdk I create the VM and store the ID it responded with.<br>
> Then to get the IP:<br>
><br>
> server = env[:vms_service].vm_service(<wbr>env[:machine].id)<br>
> nics_service = server.nics_service<br>
> nics = nics_service.list<br>
> ip_addr = nics.collect { |nic_attachment|<br>
> env[:connection].follow_link(<wbr>nic_attachment).reported_<wbr>devices.collect {<br>
> |dev| dev.ips.collect { |ip| ip.address if ip.version == 'v4' } }<br>
> }.flatten.reject { |ip| ip.nil? }.first rescue nil<br>
><br>
<br>
</span>Is this code running inside the same Ruby process for both virtual<br>
machines? In multiple threads?<br>
<span class=""><br>
> Given this code I can't think of any way that I would get the wrong IP<br>
> unless somehow the server responded incorrectly, since the NIC's i've<br>
> scanned and compiled across are tied directly to the server I created.<br>
><br>
> Any thoughts? This only happpens randomly and it seems to happen if I<br>
> bombard the server with a bunch of VM creations simultaneously<br>
><br>
> [1] <a href="https://github.com/test-kitchen/test-kitchen" rel="noreferrer" target="_blank">https://github.com/test-<wbr>kitchen/test-kitchen</a><br>
> [2] <a href="https://github.com/test-kitchen/kitchen-vagrant" rel="noreferrer" target="_blank">https://github.com/test-<wbr>kitchen/kitchen-vagrant</a><br>
><br>
><br>
</span>> ______________________________<wbr>_________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
><br>
<br>
</blockquote></div><br></div>