On 18 September 2016 at 09:48, <aleksey.maksi...@it-kb.ru> wrote:
> Thanks Roy
> 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 :(
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
> It may be possible exclude DeprecationWarning from the code in next
> version 4.0.4 :) ?
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?
> 18.09.2016, 09:27, "Roy Golan" <rgo...@redhat.com>:
> > Try to point stderr to /dev/null. For example this should work:
> > ```bash
> > vdsClient -s 0 list table 2> /dev/null
> > ```
> > On 18 September 2016 at 08:59, <aleksey.maksi...@it-kb.ru> wrote:
> >> Hello oVirt guru`s !
> >> Every time I call the commands:
> >> * hosted-engine --set-maintenance --mode=global
> >> * hosted-engine --set-maintenance --mode=none
> >> The message appears:
> >> /usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py:15:
> DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is
> deprecated, please use vdsm.jsonrpcvdscli
> >> import vdsm.vdscli
> >> ...
> >> This message prevents tracking the status of execution of commands in
> my scripts.
> >> How can I suppress this message?
> >> _______________________________________________
> >> Users mailing list
> >> Users@ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/users
Users mailing list