<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 2, 2018 at 4:52 PM, RabidCicada <span dir="ltr">&lt;<a href="mailto:rabidcicada@gmail.com" target="_blank">rabidcicada@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span>Heyo everyone.<span>  </span>I&#39;m trying to debug hosted-engine --deploy.  It is failing in <span><span style="color:rgb(0,0,0);font-family:Consolas,&quot;Lucida Console&quot;,monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">`Copy configuration archive to storage` in `create_target_vm.yml` from `<span style="color:rgb(0,0,0);font-family:Consolas,&quot;Lucida Console&quot;,monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">hosted-engine --deploy`.  My general and most important query here is how to get good debug output from ansible through hosted-engine.  I&#39;m running hosted-engine through an ssh session.</span></span></span></span></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span><br></span></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span>I can&#39;t figure out how to get good debug output from ansible within that workflow.<span>  </span>I see it&#39;s running through otopi, I tried setting typical `debugger: on_failed` hooks etc and tried many incantations on the command </span><span style="font-size:12.8px">line and config files to get ansible to help me out.  The debugger: directive and other debugger related ansible config file stuff wouldn&#39;t result in any debugger popping up.  I also can&#39;t seem to pass normal -vvvv flags to hosted-engine either and get it to ansible.  Ultimately I tried to use a `pause` directive and it complained that it was in a non-interactive shell.  I figured it might be the result of my ssh session so I enabled tty allocation with -t -t.  It did not resolve the issue.</span></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span><br></span></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span>I eventually wrote-my-own/stole a callback_plugin that checks an environmental variable and enables `display.verbosity = int(v)` since I can&#39;t seem to pass typical -vvvv stuff to ansible through `hosted-engine --deploy`.  It give me the best info that I have so far.   But it wont give me enough to debug issues around Gathering Facts or what looks like a sudo/permission problem in <span style="color:rgb(0,0,0);font-family:Consolas,&quot;Lucida Console&quot;,monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">`Copy configuration archive to storage` in `create_target_vm.yml`.  I took and used the exact command that they use manually and it works when I run it manually (But I can&#39;t get debug output to show me the exact sudo command being executed), hence my interest in passing -vvvv or equivalent to ansible through `hosted-engine`.  I intentionally disabled the VM_directory cleanup so that I could execute the same stuff.</span></span></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span><span style="color:rgb(0,0,0);font-family:Consolas,&quot;Lucida Console&quot;,monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">So....after all that...what is a good way to get deep debug info from hosted-engine ansible stuff?</div></div></blockquote><div><br></div><div>You should already find all the relevant log entries in a file called /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-ansible-create_target_vm-{timestamp}-{hash}.log</div><div><br></div><div>Can you please share it?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">Or does anyone have intuition for the possible sudo problem?</div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span><span style="color:rgb(0,0,0);font-family:Consolas,&quot;Lucida Console&quot;,monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">~Kyle</span></span></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span><span style="color:rgb(0,0,0);font-family:Consolas,&quot;Lucida Console&quot;,monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></div><div class="gmail-m_-5418010615936734164gmail-linestyle1 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span><span style="color:rgb(0,0,0);font-family:Consolas,&quot;Lucida Console&quot;,monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></div><div class="gmail-m_-5418010615936734164gmail-linestyle2 gmail-m_-5418010615936734164gmail-colourline" style="font-family:Consolas,&quot;Lucida Console&quot;,monospace;padding-left:7px;word-wrap:break-word;color:rgb(0,0,0);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>