<div dir="ltr">Alexsey thank you.<br><br>Irit, Danken please have a look at <a target="_blank" rel="noreferrer" href="https://bugzilla.redhat.com/show_bug.cgi?id=1377069">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1377069</a></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2016 at 10:49, <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"><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1377069" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1377069</a><br>
<br>
18.09.2016, 10:09, "Roy Golan" <<a href="mailto:rgolan@redhat.com">rgolan@redhat.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> On 18 September 2016 at 09:48, <<a href="mailto:aleksey.maksimov@it-kb.ru">aleksey.maksimov@it-kb.ru</a>> wrote:<br>
>> Thanks Roy<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>
><br>
> 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>
><br>
>> It may be possible exclude DeprecationWarning from the code in next version 4.0.4 :) ?<br>
><br>
> 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>
><br>
>> 18.09.2016, 09:27, "Roy Golan" <<a href="mailto:rgolan@redhat.com">rgolan@redhat.com</a>>:<br>
>>> 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">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-<wbr>packages/ovirt_hosted_engine_<wbr>ha/lib/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">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>
</div></div></blockquote></div><br></div>