[ovirt-users] hosted-engine Debug Help

Simone Tiraboschi stirabos at redhat.com
Tue Apr 3 08:06:41 UTC 2018


On Mon, Apr 2, 2018 at 4:52 PM, RabidCicada <rabidcicada at gmail.com> wrote:

> Heyo everyone.  I'm trying to debug hosted-engine --deploy.  It is
> failing in `Copy configuration archive to storage` in
> `create_target_vm.yml` from `hosted-engine --deploy`.  My general and
> most important query here is how to get good debug output from ansible
> through hosted-engine.  I'm running hosted-engine through an ssh session.
>
> I can't figure out how to get good debug output from ansible within that
> workflow.  I see it's running through otopi, I tried setting typical
> `debugger: on_failed` hooks etc and tried many incantations on the command line
> and config files to get ansible to help me out.  The debugger: directive
> and other debugger related ansible config file stuff wouldn't result in any
> debugger popping up.  I also can'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.
>
> I eventually wrote-my-own/stole a callback_plugin that checks an
> environmental variable and enables `display.verbosity = int(v)` since I
> can'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 `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'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.
>
> So....after all that...what is a good way to get deep debug info from
> hosted-engine ansible stuff?
>

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

Can you please share it?


>
> Or does anyone have intuition for the possible sudo problem?
> ~Kyle
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180403/4b736900/attachment-0001.html>


More information about the Users mailing list