<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Sep 18, 2016 at 10:51 AM, Roy Golan <span dir="ltr">&lt;<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.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">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><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(&quot;always&quot;, category=DeprecationWarning)<br></div><div><br></div><div>In /usr/lib/python2.7/site-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><div><br></div><div>Nir</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><div><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2016 at 10:49,  <span dir="ltr">&lt;<a href="mailto:aleksey.maksimov@it-kb.ru" target="_blank">aleksey.maksimov@it-kb.ru</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"><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, &quot;Roy Golan&quot; &lt;<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>&gt;:<br>
<div><div>&gt; On 18 September 2016 at 09:48, &lt;<a href="mailto:aleksey.maksimov@it-kb.ru" target="_blank">aleksey.maksimov@it-kb.ru</a>&gt; wrote:<br>
&gt;&gt; Thanks Roy<br>
&gt;&gt;<br>
&gt;&gt; But if I&#39;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>
&gt;<br>
&gt; That&#39;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&#39;ll make an effort to find other ways of doing that<br>
&gt;<br>
&gt;&gt; It may be possible exclude DeprecationWarning from the code in next version 4.0.4 :) ?<br>
&gt;<br>
&gt; I know VDSM guys started working on that but its WIP. Can you please open a bug for that and I&#39;ll make sure to put it on the right person?<br>
&gt;<br>
&gt;&gt; 18.09.2016, 09:27, &quot;Roy Golan&quot; &lt;<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>&gt;:<br>
&gt;&gt;&gt; Try to point stderr to /dev/null. For example this should work:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ```bash<br>
&gt;&gt;&gt; vdsClient -s 0 list table 2&gt; /dev/null<br>
&gt;&gt;&gt; ```<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 18 September 2016 at 08:59, &lt;<a href="mailto:aleksey.maksimov@it-kb.ru" target="_blank">aleksey.maksimov@it-kb.ru</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; Hello oVirt guru`s !<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Every time I call the commands:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; * hosted-engine --set-maintenance --mode=global<br>
&gt;&gt;&gt;&gt; * hosted-engine --set-maintenance --mode=none<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; The message appears:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; /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>
&gt;&gt;&gt;&gt;   import vdsm.vdscli<br>
&gt;&gt;&gt;&gt; ...<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; This message prevents tracking the status of execution of commands in my scripts.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; How can I suppress this message?<br>
&gt;&gt;&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt;&gt;&gt; Users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
&gt;&gt;&gt;&gt; <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><br></div></div>