Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread Nir Soffer
On Sun, Sep 18, 2016 at 2:03 PM, Roy Golan  wrote:

> Thanks Nir. He is using hosted engine which already uses vdscli
>

Right, this issue effects any program importing vdscli.

Fixed in https://gerrit.ovirt.org/64100


>
> On 18 September 2016 at 13:55, Nir Soffer  wrote:
>
>> On Sun, Sep 18, 2016 at 10:51 AM, Roy Golan  wrote:
>>
>>> Alexsey thank you.
>>>
>>> Irit, Danken please have a look at  https://bugzilla.redhat.com/sh
>>> ow_bug.cgi?id=1377069
>>>
>>
>> This is unfortunate regression in 4.0, should be fixed soon.
>>
>> In meantime this can be fixed by removing this line:
>>
>>  warnings.simplefilter("always", category=DeprecationWarning)
>>
>> In /usr/lib/python2.7/site-packages/vdsm/vdscli.py
>>
>> Note that vdsClient will be removed soon and you should
>> not use it for automation.
>>
>> Please use vdsm.vdscli library for automation.
>>
>> Nir
>>
>>
>>>
>>> On 18 September 2016 at 10:49,  wrote:
>>>
 https://bugzilla.redhat.com/show_bug.cgi?id=1377069

 18.09.2016, 10:09, "Roy Golan" :
 > On 18 September 2016 at 09:48,  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" :
 >>> 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,  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
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread Roy Golan
Thanks Nir. He is using hosted engine which already uses vdscli

On 18 September 2016 at 13:55, Nir Soffer  wrote:

> On Sun, Sep 18, 2016 at 10:51 AM, Roy Golan  wrote:
>
>> Alexsey thank you.
>>
>> Irit, Danken please have a look at  https://bugzilla.redhat.com/sh
>> ow_bug.cgi?id=1377069
>>
>
> This is unfortunate regression in 4.0, should be fixed soon.
>
> In meantime this can be fixed by removing this line:
>
>  warnings.simplefilter("always", category=DeprecationWarning)
>
> In /usr/lib/python2.7/site-packages/vdsm/vdscli.py
>
> Note that vdsClient will be removed soon and you should
> not use it for automation.
>
> Please use vdsm.vdscli library for automation.
>
> Nir
>
>
>>
>> On 18 September 2016 at 10:49,  wrote:
>>
>>> https://bugzilla.redhat.com/show_bug.cgi?id=1377069
>>>
>>> 18.09.2016, 10:09, "Roy Golan" :
>>> > On 18 September 2016 at 09:48,  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" :
>>> >>> 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,  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
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread Nir Soffer
On Sun, Sep 18, 2016 at 10:51 AM, Roy Golan  wrote:

> Alexsey thank you.
>
> Irit, Danken please have a look at  https://bugzilla.redhat.com/sh
> ow_bug.cgi?id=1377069
>

This is unfortunate regression in 4.0, should be fixed soon.

In meantime this can be fixed by removing this line:

 warnings.simplefilter("always", category=DeprecationWarning)

In /usr/lib/python2.7/site-packages/vdsm/vdscli.py

Note that vdsClient will be removed soon and you should
not use it for automation.

Please use vdsm.vdscli library for automation.

Nir


>
> On 18 September 2016 at 10:49,  wrote:
>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1377069
>>
>> 18.09.2016, 10:09, "Roy Golan" :
>> > On 18 September 2016 at 09:48,  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" :
>> >>> 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,  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
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread Roy Golan
Alexsey thank you.

Irit, Danken please have a look at  https://bugzilla.redhat.com/
show_bug.cgi?id=1377069

On 18 September 2016 at 10:49,  wrote:

> https://bugzilla.redhat.com/show_bug.cgi?id=1377069
>
> 18.09.2016, 10:09, "Roy Golan" :
> > On 18 September 2016 at 09:48,  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" :
> >>> 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,  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
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread aleksey . maksimov
https://bugzilla.redhat.com/show_bug.cgi?id=1377069

18.09.2016, 10:09, "Roy Golan" :
> On 18 September 2016 at 09:48,  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" :
>>> 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,  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
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread Roy Golan
On 18 September 2016 at 10:09, Roy Golan  wrote:

>
>
> On 18 September 2016 at 09:48,  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
>
>>
>>
* I meant standard output of course.


> 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" :
>> > 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,  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
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread Roy Golan
On 18 September 2016 at 09:48,  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" :
> > 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,  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
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread aleksey . maksimov
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 :(

It may be possible exclude DeprecationWarning from the code in next version 
4.0.4 :) ?

18.09.2016, 09:27, "Roy Golan" :
> 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,  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
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-18 Thread Roy Golan
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,  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
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli

2016-09-17 Thread aleksey . maksimov
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


Re: [ovirt-users] DeprecationWarning

2016-08-25 Thread Martin Sivak
Hi,

Please report a bug so we can track it. We will fix that.

--
Martin Sivak
SLA / oVirt

On Wed, Aug 24, 2016 at 7:27 PM, Wolfgang Bucher
 wrote:
> Hello,
>
>
> i get every minute a message in var log messages:
>
>
> momd: /usr/lib/python2.7/site-packages/mom/Collectors/GuestMemory.py:52:
> DeprecationWarning: BaseException.message has been deprecated as of Python
> 2.6
>
> momd: self.stats_error('getVmMemoryStats(): %s' % e.message)
>
>
> Installation is : oVirt Engine Version: 4.0.2.7-1.el7.centos
>
>
>
> Thanks
>
>
> Wolfgang
>
>
>
>
>
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] DeprecationWarning

2016-08-24 Thread Wolfgang Bucher
Hello,



i get every minute a message in var log messages:



momd: /usr/lib/python2.7/site-packages/mom/Collectors/GuestMemory.py:52: 
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6

momd: self.stats_error('getVmMemoryStats(): %s' % e.message)



Installation is : oVirt Engine Version: 4.0.2.7-1.el7.centos





Thanks



Wolfgang












___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users