<div dir="ltr">Thanks Nir. He is using hosted engine which already uses vdscli <br></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2016 at 13:55, Nir Soffer <span dir="ltr"><<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@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"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Sun, Sep 18, 2016 at 10:51 AM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Alexsey thank you.<br><br>Irit, Danken please have a look at <a rel="noreferrer" href="https://bugzilla.redhat.com/show_bug.cgi?id=1377069" target="_blank">https://bugzilla.redhat.com/sh<wbr>ow_bug.cgi?id=1377069</a></div></blockquote><div><br></div></span><div>This is unfortunate regression in 4.0, should be fixed soon.</div><div><br></div><div>In meantime this can be fixed by removing this line:</div><div><br></div><div> warnings.simplefilter("<wbr>always", category=DeprecationWarning)<br></div><div><br></div><div>In /usr/lib/python2.7/site-<wbr>packages/vdsm/vdscli.py</div><div><br></div><div>Note that vdsClient will be removed soon and you should</div><div>not use it for automation.</div><div><br></div><div>Please use vdsm.vdscli library for automation.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Nir</div></font></span><div><div class="h5"><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><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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1377069" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/sh<wbr>ow_bug.cgi?id=1377069</a><br>
<br>
18.09.2016, 10:09, "Roy Golan" <<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>>:<br>
<div><div>> On 18 September 2016 at 09:48, <<a href="mailto:aleksey.maksimov@it-kb.ru" target="_blank">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" target="_blank">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" 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></div><br></div>
</div></div><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>
<br></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>