<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2016 at 10:09, Roy Golan <span dir="ltr"><<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 18 September 2016 at 09:48, <span dir="ltr"><<a href="mailto:aleksey.maksimov@it-kb.ru" target="_blank">aleksey.maksimov@it-kb.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Roy<br>
<br>
<br>
But if I'm going to redirect the output of the hosted-engine command to /dev/null, I can not identify the possible problem of the command :(<br></blockquote><div><br></div></span><div>That's only stderror. You should still see the standard input and check for $? value. Not perfect but I think this can get you started. I must say I am against this deprecation warning and I'll make an effort to find other ways of doing that<br></div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br></blockquote></span></div></div></div></blockquote><div><br></div><div>* I meant standard output of course.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It may be possible exclude DeprecationWarning from the code in next version 4.0.4 :) ?<br></blockquote><div><br></div></span><div>I know VDSM guys started working on that but its WIP. Can you please open a bug for that and I'll make sure to put it on the right person?<br></div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
18.09.2016, 09:27, "Roy Golan" <<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>>:<br>
<div><div>> Try to point stderr to /dev/null. For example this should work:<br>
><br>
> ```bash<br>
> vdsClient -s 0 list table 2> /dev/null<br>
> ```<br>
><br>
> On 18 September 2016 at 08:59, <<a href="mailto:aleksey.maksimov@it-kb.ru" target="_blank">aleksey.maksimov@it-kb.ru</a>> wrote:<br>
>> Hello oVirt guru`s !<br>
>><br>
>> Every time I call the commands:<br>
>><br>
>> * hosted-engine --set-maintenance --mode=global<br>
>> * hosted-engine --set-maintenance --mode=none<br>
>><br>
>> The message appears:<br>
>><br>
>> /usr/lib/python2.7/site-packag<wbr>es/ovirt_hosted_engine_ha/lib/<wbr>storage_backends.py:15: DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli<br>
>> import vdsm.vdscli<br>
>> ...<br>
>><br>
>> This message prevents tracking the status of execution of commands in my scripts.<br>
>><br>
>> How can I suppress this message?<br>
>> ______________________________<wbr>_________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
>> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>