[SPAM] [ovirt-users] Re: template disk attribute in version 4 restapi

2018-07-31 Thread like...@cs2c.com.cn
Thanks, Idan. I know that export domain is deprecated. But for now, we're still 
using it in our project.
And we need to know which one is the bootable disk of vm/template in export 
domain for security checking.
Diskattachments link is available for vm in export domain, but templates miss 
the diskattachments link.
That's why i want to add the diskattachments link for templates in export 
domain.
Or is there any convenient way to know which one is the bootable disk of 
template in export domain?

Regards.



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-31 15:31
To: like...@cs2c.com.cn
CC: users; Daniel Erez; Tal Nisan
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
The API of the engine is specified by [1].
Specifically, what you're looking for is StorageDomainTemplateService [2].
However, I am not sure that it's worth adding features to the export domain as 
I think that it's going to be (or already) deprecated.

Daniel/Tal?

Regards,
Idan

[1] https://github.com/oVirt/ovirt-engine-api-model
[2] 
https://github.com/oVirt/ovirt-engine-api-model/blob/master/src/main/java/services/StorageDomainTemplateService.java

On Mon, Jul 30, 2018 at 11:55 AM, like...@cs2c.com.cn  
wrote:
Hi, Idan. 
I have one more question. There is no diskattachments link for template in 
export storage domain. 
So i want to add the diskattachments link for it. I tried to read the source 
code in ovirt-engine project.
BackendStorageDomainTemplateResource defines some methods of 
StorageDomainTemplate. 
It implements the interface 
org.ovirt.engine.api.resource.StorageDomainTemplateResource.
But i can't find where is the location of 
org.ovirt.engine.api.resource.StorageDomainTemplateResource.
Could you please tell me where i can find the source code of 
StorageDomainTemplateResource?

Thanks

Regards.




like...@cs2c.com.cn
 
From: like...@cs2c.com.cn
Date: 2018-07-26 17:20
To: Idan Shaby
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Thanks a lot. You're right, something is indeed wrong. From your reply, i 
suddenly realized that maybe some configuration is not right. And finally i 
find that my colleague added ENGINE_API_DEFAULT_VERSION=3 in the configuration 
file for his own experiment, but he didn't notify us. Now i delete the 
configuration item, everything is fine. 



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-26 16:41
To: like...@cs2c.com.cn
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Sounds like something's wrong.
I've just checked 4.1.9 and I do have the diskattachments link under a specific 
template.
Can you say what you do have under /ovirt-engine/api/templates/?
This is the output I get in 4.1.9 under 
ovirt-engine/api/templates/----/ (pasting only 
the links):











Regards,
Idan

On Thu, Jul 26, 2018 at 9:14 AM, like...@cs2c.com.cn  
wrote:
In my oVirt 4.1.9 env, vm's api is fine. I can get vm's diskattachments from 
/ovirt-engine/api/vms//diskattachments. 
But for template, i got an error(404 not found) from 
/ovirt-engine/api/templates//diskattachments. 



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-26 13:44
To: like...@cs2c.com.cn
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Actually, it was added back in oVirt 4.0.
What happens when you try to GET from 
/ovirt-engine/api/templates//diskattachments?
Do you get an empty list of attachments or an error (404 not found)?



Regards,
Idan

On Thu, Jul 26, 2018 at 4:10 AM, like...@cs2c.com.cn  
wrote:
Thank you for your reply. 
I'm using ovirt 4.1.9, in this version there is no diskattachments under 
/ovirt-engine/api/templates/, is it added in oVirt4.2?



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-25 19:30
To: like...@cs2c.com.cn
CC: users
Subject: Re: [ovirt-users] template disk attribute in version 4 restapi
Hi,

The bootable attribute was moved, along with a few more attributes, to be under 
a specific diskattachment, as it is an attribute of the relationship between a 
disk and the specific VM it is attached to, rather than a disk (which can be 
floating, or attached to more than one VM).
I am not sure that I understand the question. A template does have 
diskattachments under /ovirt-engine/api/templates//diskattachments.
Which engine's version are you using?


Regards,
Idan

On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn  
wrote:
Hi All,

In the restapi of version 3, there is bootable attribute  in disk. But in 
version 4, the bootable attribute is removed from disk. For vm i can get 
bootable attribute from diskattachment. But there is no diskattachment in 
template. So, is there any way in the restapi of version 4 that i can know if 
the disk of the template is bootable or not?

Thanks

Regards.



like...@cs2c.com.cn

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email

[ovirt-users] Re: template disk attribute in version 4 restapi

2018-07-30 Thread like...@cs2c.com.cn
Hi, Idan. 
I have one more question. There is no diskattachments link for template in 
export storage domain. 
So i want to add the diskattachments link for it. I tried to read the source 
code in ovirt-engine project.
BackendStorageDomainTemplateResource defines some methods of 
StorageDomainTemplate. 
It implements the interface 
org.ovirt.engine.api.resource.StorageDomainTemplateResource.
But i can't find where is the location of 
org.ovirt.engine.api.resource.StorageDomainTemplateResource.
Could you please tell me where i can find the source code of 
StorageDomainTemplateResource?

Thanks

Regards.




like...@cs2c.com.cn
 
From: like...@cs2c.com.cn
Date: 2018-07-26 17:20
To: Idan Shaby
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Thanks a lot. You're right, something is indeed wrong. From your reply, i 
suddenly realized that maybe some configuration is not right. And finally i 
find that my colleague added ENGINE_API_DEFAULT_VERSION=3 in the configuration 
file for his own experiment, but he didn't notify us. Now i delete the 
configuration item, everything is fine. 



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-26 16:41
To: like...@cs2c.com.cn
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Sounds like something's wrong.
I've just checked 4.1.9 and I do have the diskattachments link under a specific 
template.
Can you say what you do have under /ovirt-engine/api/templates/?
This is the output I get in 4.1.9 under 
ovirt-engine/api/templates/----/ (pasting only 
the links):











Regards,
Idan

On Thu, Jul 26, 2018 at 9:14 AM, like...@cs2c.com.cn  
wrote:
In my oVirt 4.1.9 env, vm's api is fine. I can get vm's diskattachments from 
/ovirt-engine/api/vms//diskattachments. 
But for template, i got an error(404 not found) from 
/ovirt-engine/api/templates//diskattachments. 



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-26 13:44
To: like...@cs2c.com.cn
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Actually, it was added back in oVirt 4.0.
What happens when you try to GET from 
/ovirt-engine/api/templates//diskattachments?
Do you get an empty list of attachments or an error (404 not found)?



Regards,
Idan

On Thu, Jul 26, 2018 at 4:10 AM, like...@cs2c.com.cn  
wrote:
Thank you for your reply. 
I'm using ovirt 4.1.9, in this version there is no diskattachments under 
/ovirt-engine/api/templates/, is it added in oVirt4.2?



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-25 19:30
To: like...@cs2c.com.cn
CC: users
Subject: Re: [ovirt-users] template disk attribute in version 4 restapi
Hi,

The bootable attribute was moved, along with a few more attributes, to be under 
a specific diskattachment, as it is an attribute of the relationship between a 
disk and the specific VM it is attached to, rather than a disk (which can be 
floating, or attached to more than one VM).
I am not sure that I understand the question. A template does have 
diskattachments under /ovirt-engine/api/templates//diskattachments.
Which engine's version are you using?


Regards,
Idan

On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn  
wrote:
Hi All,

In the restapi of version 3, there is bootable attribute  in disk. But in 
version 4, the bootable attribute is removed from disk. For vm i can get 
bootable attribute from diskattachment. But there is no diskattachment in 
template. So, is there any way in the restapi of version 4 that i can know if 
the disk of the template is bootable or not?

Thanks

Regards.



like...@cs2c.com.cn

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/




___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/32IT6UBIWYN7HJK4SOVJZWAKKD3R7VDU/


[ovirt-users] Re: template disk attribute in version 4 restapi

2018-07-26 Thread like...@cs2c.com.cn
Thanks a lot. You're right, something is indeed wrong. From your reply, i 
suddenly realized that maybe some configuration is not right. And finally i 
find that my colleague added ENGINE_API_DEFAULT_VERSION=3 in the configuration 
file for his own experiment, but he didn't notify us. Now i delete the 
configuration item, everything is fine. 



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-26 16:41
To: like...@cs2c.com.cn
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Sounds like something's wrong.
I've just checked 4.1.9 and I do have the diskattachments link under a specific 
template.
Can you say what you do have under /ovirt-engine/api/templates/?
This is the output I get in 4.1.9 under 
ovirt-engine/api/templates/----/ (pasting only 
the links):











Regards,
Idan

On Thu, Jul 26, 2018 at 9:14 AM, like...@cs2c.com.cn  
wrote:
In my oVirt 4.1.9 env, vm's api is fine. I can get vm's diskattachments from 
/ovirt-engine/api/vms//diskattachments. 
But for template, i got an error(404 not found) from 
/ovirt-engine/api/templates//diskattachments. 



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-26 13:44
To: like...@cs2c.com.cn
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Actually, it was added back in oVirt 4.0.
What happens when you try to GET from 
/ovirt-engine/api/templates//diskattachments?
Do you get an empty list of attachments or an error (404 not found)?



Regards,
Idan

On Thu, Jul 26, 2018 at 4:10 AM, like...@cs2c.com.cn  
wrote:
Thank you for your reply. 
I'm using ovirt 4.1.9, in this version there is no diskattachments under 
/ovirt-engine/api/templates/, is it added in oVirt4.2?



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-25 19:30
To: like...@cs2c.com.cn
CC: users
Subject: Re: [ovirt-users] template disk attribute in version 4 restapi
Hi,

The bootable attribute was moved, along with a few more attributes, to be under 
a specific diskattachment, as it is an attribute of the relationship between a 
disk and the specific VM it is attached to, rather than a disk (which can be 
floating, or attached to more than one VM).
I am not sure that I understand the question. A template does have 
diskattachments under /ovirt-engine/api/templates//diskattachments.
Which engine's version are you using?


Regards,
Idan

On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn  
wrote:
Hi All,

In the restapi of version 3, there is bootable attribute  in disk. But in 
version 4, the bootable attribute is removed from disk. For vm i can get 
bootable attribute from diskattachment. But there is no diskattachment in 
template. So, is there any way in the restapi of version 4 that i can know if 
the disk of the template is bootable or not?

Thanks

Regards.



like...@cs2c.com.cn

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/




___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/7ZWY7VNVVJC6VX6VKDNJG26A4XUYI7VB/


[ovirt-users] Re: template disk attribute in version 4 restapi

2018-07-26 Thread like...@cs2c.com.cn
In my oVirt 4.1.9 env, vm's api is fine. I can get vm's diskattachments from 
/ovirt-engine/api/vms//diskattachments. 
But for template, i got an error(404 not found) from 
/ovirt-engine/api/templates//diskattachments. 



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-26 13:44
To: like...@cs2c.com.cn
CC: users
Subject: Re: Re: [ovirt-users] template disk attribute in version 4 restapi
Actually, it was added back in oVirt 4.0.
What happens when you try to GET from 
/ovirt-engine/api/templates//diskattachments?
Do you get an empty list of attachments or an error (404 not found)?



Regards,
Idan

On Thu, Jul 26, 2018 at 4:10 AM, like...@cs2c.com.cn  
wrote:
Thank you for your reply. 
I'm using ovirt 4.1.9, in this version there is no diskattachments under 
/ovirt-engine/api/templates/, is it added in oVirt4.2?



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-25 19:30
To: like...@cs2c.com.cn
CC: users
Subject: Re: [ovirt-users] template disk attribute in version 4 restapi
Hi,

The bootable attribute was moved, along with a few more attributes, to be under 
a specific diskattachment, as it is an attribute of the relationship between a 
disk and the specific VM it is attached to, rather than a disk (which can be 
floating, or attached to more than one VM).
I am not sure that I understand the question. A template does have 
diskattachments under /ovirt-engine/api/templates//diskattachments.
Which engine's version are you using?


Regards,
Idan

On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn  
wrote:
Hi All,

In the restapi of version 3, there is bootable attribute  in disk. But in 
version 4, the bootable attribute is removed from disk. For vm i can get 
bootable attribute from diskattachment. But there is no diskattachment in 
template. So, is there any way in the restapi of version 4 that i can know if 
the disk of the template is bootable or not?

Thanks

Regards.



like...@cs2c.com.cn

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/



___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/3CMRZXMUNDGV54NTI6EFGOGKFR2MRVQP/


[ovirt-users] Re: template disk attribute in version 4 restapi

2018-07-25 Thread like...@cs2c.com.cn
Thank you for your reply. 
I'm using ovirt 4.1.9, in this version there is no diskattachments under 
/ovirt-engine/api/templates/, is it added in oVirt4.2?



like...@cs2c.com.cn
 
From: Idan Shaby
Date: 2018-07-25 19:30
To: like...@cs2c.com.cn
CC: users
Subject: Re: [ovirt-users] template disk attribute in version 4 restapi
Hi,

The bootable attribute was moved, along with a few more attributes, to be under 
a specific diskattachment, as it is an attribute of the relationship between a 
disk and the specific VM it is attached to, rather than a disk (which can be 
floating, or attached to more than one VM).
I am not sure that I understand the question. A template does have 
diskattachments under /ovirt-engine/api/templates//diskattachments.
Which engine's version are you using?


Regards,
Idan

On Wed, Jul 25, 2018 at 1:35 PM, like...@cs2c.com.cn  
wrote:
Hi All,

In the restapi of version 3, there is bootable attribute  in disk. But in 
version 4, the bootable attribute is removed from disk. For vm i can get 
bootable attribute from diskattachment. But there is no diskattachment in 
template. So, is there any way in the restapi of version 4 that i can know if 
the disk of the template is bootable or not?

Thanks

Regards.



like...@cs2c.com.cn

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/


___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/SK2RD7N7A456ZRSM2B2MYYZXKTCQR47C/


[ovirt-users] template disk attribute in version 4 restapi

2018-07-25 Thread like...@cs2c.com.cn
Hi All,

In the restapi of version 3, there is bootable attribute  in disk. But in 
version 4, the bootable attribute is removed from disk. For vm i can get 
bootable attribute from diskattachment. But there is no diskattachment in 
template. So, is there any way in the restapi of version 4 that i can know if 
the disk of the template is bootable or not?

Thanks

Regards.



like...@cs2c.com.cn
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZASGTIYNCZ6ESWWCB6LZJFG2KSVQGS6Q/


Re: [ovirt-users] How to enable tunnel migration

2017-03-07 Thread like...@cs2c.com.cn
OK. Thanks. I filed a bug https://bugzilla.redhat.com/show_bug.cgi?id=1430198

The software stack as follows:
OS: RHEL7.2
Libvirt: 1.2.17-13.el7_2.5
Qemu-kvm-ev: 2.3.0-31.el7_2.23
ovirt-engine: 3.6.7.5
vdsm: 4.17.32-2

BTW, i'm wondering why there is no place to enable tunneled migration feature 
on the WebUI.



like...@cs2c.com.cn
 
From: Francesco Romani
Date: 2017-03-07 18:40
To: users
Subject: Re: [ovirt-users] How to enable tunnel migration
Hi again,

please also share the version of the software stack you are using besides oVirt 
(e.g. Operating System, libvirt, qemu...)

On 03/07/2017 04:34 AM, like...@cs2c.com.cn wrote:
Hi,
 
I'm using oVirt 3.6.7 now. I want to enable tunnel migration feature. 
But when i set tunnel_migration value of vm as Ture through python
SDK(I can't find any place to enable tunnel migration on the web ui,
so i use SDK), then migrate the vm i got the following error message:
 
Thread-9417628::ERROR::2017-03-07 11:25:48,538::migration::310::virt.vm::(run) 
vmId=`08b4ccc1-c508-439b-a9ba-ca0d42a7072c`::Failed to migrate
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/migration.py", line 298, in run
self._startUnderlyingMigration(time.time())
  File "/usr/share/vdsm/virt/migration.py", line 364, in 
_startUnderlyingMigration
self._perform_migration(duri, muri)
  File "/usr/share/vdsm/virt/migration.py", line 403, in _perform_migration
self._vm._dom.migrateToURI3(duri, params, flags)
  File "/usr/share/vdsm/virt/virdomain.py", line 68, in f
ret = attr(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 124, 
in wrapper
ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 1313, in wrapper
return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1836, in 
migrateToURI3
if ret == -1: raise libvirtError ('virDomainMigrateToURI3() failed', 
dom=self)
libvirtError: 不支持的参数:migration URI is not supported by tunnelled migration

So, i want to know how should i enable the tunnel migration feature. Can anyone 
help me?
Thanks
 
Regards.



like...@cs2c.com.cn


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

-- 
Francesco Romani
Red Hat Engineering Virtualization R & D
IRC: fromani
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] How to enable tunnel migration

2017-03-06 Thread like...@cs2c.com.cn
Hi,
 
I'm using oVirt 3.6.7 now. I want to enable tunnel migration feature. 
But when i set tunnel_migration value of vm as Ture through python
SDK(I can't find any place to enable tunnel migration on the web ui,
so i use SDK), then migrate the vm i got the following error message:
 
Thread-9417628::ERROR::2017-03-07 11:25:48,538::migration::310::virt.vm::(run) 
vmId=`08b4ccc1-c508-439b-a9ba-ca0d42a7072c`::Failed to migrate
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/migration.py", line 298, in run
self._startUnderlyingMigration(time.time())
  File "/usr/share/vdsm/virt/migration.py", line 364, in 
_startUnderlyingMigration
self._perform_migration(duri, muri)
  File "/usr/share/vdsm/virt/migration.py", line 403, in _perform_migration
self._vm._dom.migrateToURI3(duri, params, flags)
  File "/usr/share/vdsm/virt/virdomain.py", line 68, in f
ret = attr(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 124, 
in wrapper
ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 1313, in wrapper
return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1836, in 
migrateToURI3
if ret == -1: raise libvirtError ('virDomainMigrateToURI3() failed', 
dom=self)
libvirtError: 不支持的参数:migration URI is not supported by tunnelled migration

So, i want to know how should i enable the tunnel migration feature. Can anyone 
help me?
Thanks
 
Regards.



like...@cs2c.com.cn
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] qos problem in ovirt python sdk

2016-08-15 Thread like...@cs2c.com.cn
Hello,

I'm using ovirt3.6.7, and i want to use QoS function by restapi. But i fount i 
can't update the qos to unlimited. 
For example, i assigned a qos named qos1 to a vnic profile named vprofile1, 
then i want to set the qos of vprofile1 to unlimited,
so i set the qos to None in sdk when update vnic profile, but after update the 
vnic profile still has qos named qos1.

So, how should i do if i want to set qos of a vnic profile to unlimited?

Look forward to your help!
Thanks 



like...@cs2c.com.cn
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] ovirt 4.0 alpha web login error

2016-05-12 Thread like...@cs2c.com.cn
Hi!

I installed ovirt 4.0 alpha(4.0.0-0.0.master.20160404161620.git4ffd5a4) on 
RHEL7.2.
During engine-setup, i use ovirtManager.com as the host name(i add ip/hostname 
in the /etc/hosts).
After engine-setup succeed, i try to access webadmin portal from another 
computer.
In the client computer i use Chrome browser. And the url is 
https://ovirtManager.com(ovirtManager.com can be resolved in /etc/hosts).
But i got following error when i access this url:
The client is not authorized to request an authorization. It's required to 
access the system using FQDN.

So, what should i do to access the webadmin portal?

Many thanks for any advise




like...@cs2c.com.cn

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


[ovirt-users] vgs and lvs return empty list

2015-08-16 Thread like...@cs2c.com.cn
Hi, all

I have a oVirt3.4 environment. I create a FC storage domain and a disk on this 
FC storage domain. Everything works well. But i have a question:
When i login the vdsm host, and use the vgs/lvs command to show the vg which 
represent FC storage domain and the lv which represent the disk on the FC 
storage domain, the command returens empty result list. It seems like there is 
no vg or lv at all. But if i use the lvchange -ay lv path to activate the lv 
on the host, then the vgs/lvs command returns the expected vg/lv list. I want 
to know why it is like this? After all, if i use vgcreate command to create a 
new vg, then i can use vgs command to show the vg list immediately.

Thanks, looking foward to your reply.



like...@cs2c.com.cn
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] spm changes hourly due to unexpected error of getAllTasksStatuses

2015-06-23 Thread like...@cs2c.com.cn
Thank you for your reply.

The result of both hosts is zh_CN.utf8
But i think may be it's not the problem of locale, 
because when i run 'vdsClient -s 0 getAllTasksStatuses' manually on the SPM 
host, there is no problem(no errors in vdsm.log)



like...@cs2c.com.cn
 
From: Eli Mesika
Date: 2015-06-23 16:44
To: like ma
CC: devel; users
Subject: Re: [ovirt-users] spm changes hourly due to unexpected error of 
getAllTasksStatuses
 
 
- Original Message -
 From: like ma like...@cs2c.com.cn
 To: de...@ovirt.org, users@ovirt.org
 Sent: Tuesday, June 23, 2015 11:26:17 AM
 Subject: [ovirt-users] spm changes hourly due to unexpected error of 
 getAllTasksStatuses
 
 Hello all,
 
 In our ovirt environment(oVirt 3.4.4), we have 2 hosts, and the spm changes
 hourly between the 2 hosts. In the events of DataCenters there is following
 message each hour:
 'Data Center is being initialized, please wait for initialization to
 complete'
 
 In the vdsm.log i found following error message:
 Thread-13::ERROR::2015-06-23
 13:38:36,667::task::866::TaskManager.Task::(_setError)
 Task=`e450d7d6-771d-4c51-90b7-c6b10da37897`::Unexpected error
 Traceback (most recent call last):
 File /usr/share/vdsm/storage/task.py, line 873, in _run
 return fn(*args, **kargs)
 File /usr/share/vdsm/logUtils.py, line 45, in wrapper
 res = f(*args, **kwargs)
 File /usr/share/vdsm/storage/hsm.py, line 2125, in getAllTasksStatuses
 allTasksStatus = sp.getAllTasksStatuses()
 File /usr/share/vdsm/storage/securable.py, line 73, in wrapper
 raise SecureError(Secured object is not in safe state)
 SecureError: Secured object is not in safe state
 
 The attachment is vdsm.log and engine.log. The error occured at 2015-06-23
 13:38 and 2015-06-23 15:38 in vdsm.log.
 (by the way, in the other host the error occured at 2015-06-23 12:38 and
 2015-06-23 14:38 )
 
 And in the engine.log i found following error message:
 2015-06-23 13:38:37,933 ERROR
 [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]
 (DefaultQuartzScheduler_Worker-34) [781beaea] IrsBroker::Failed::UpdateVMVDS
 due to: XmlRpcException: type 'exceptions.UnicodeDecodeError':'utf8' codec
 can't decode byte 0xeb in position 749: invalid continuation byte
 
 2015-06-23 13:38:37,971 ERROR [org.ovirt.engine.core.bll.OvfDataUpdater]
 (DefaultQuartzScheduler_Worker-34) [781beaea] Exception while trying to
 update or remove VMs/Templates ovf in Data Center Default.:
 org.ovirt.engine.core.common.errors.VdcBLLException: VdcBLLException:
 java.lang.reflect.UndeclaredThrowableException (Failed with error
 VDS_NETWORK_ERROR and code 5022)
 at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:116)
 [bll.jar:]
 at
 org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.RunVdsCommand(VDSBrokerFrontendImpl.java:33)
 [bll.jar:]
 at
 org.ovirt.engine.core.bll.OvfDataUpdater.executeUpdateVmInSpmCommand(OvfDataUpdater.java:383)
 [bll.jar:]
 at
 org.ovirt.engine.core.bll.OvfDataUpdater.performOvfUpdate(OvfDataUpdater.java:163)
 [bll.jar:]
 at
 org.ovirt.engine.core.bll.OvfDataUpdater.updateOvfForVmsOfStoragePool(OvfDataUpdater.java:135)
 [bll.jar:]
 at
 org.ovirt.engine.core.bll.OvfDataUpdater.ovfUpdate_timer(OvfDataUpdater.java:93)
 [bll.jar:]
 at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source) [:1.7.0_65]
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 [rt.jar:1.7.0_65]
 at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
 at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:60)
 [scheduler.jar:]
 at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
 at
 org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
 [quartz.jar:]
 
 Can anyone help?
 
Can you please share the result of the following on both hosts ?
 
 echo $LANG
 
thanks 
 
 
 Thanks
 
 like...@cs2c.com.cn
 
 ___
 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] [ovirt-devel] [SOLVED] vdsClient getVGList returned Empty

2015-05-12 Thread like...@cs2c.com.cn
The problem has been solved. The reason that vdsm cannot see the vgs is the 
permission of sudoers had been changed by somebody who hacked into our system. 
After restoring the permission of sudoers everyting is fine.



like...@cs2c.com.cn
 
From: like...@cs2c.com.cn
Date: 2015-05-07 20:01
To: Nir Soffer
Subject: Re: Re: [ovirt-devel] vdsClient getVGList returned Empty
Thank you for your reply. 

Following is the output:

 [root@jzjdve ~]# pvscan --cache  lvs -o all|more
  LV UUIDLV   Pa
th   Att
r   Active Maj Min Rahead KMaj KMin KRahead LSize   MSize  #Seg Origin OSize
 Data%  Snap%  Meta%  Cpy%Sync Cpy%Sync Mismatches SyncAction WBehind MinSync Ma
xSync Move Convert Log Data Meta Pool LV Tags
LProfile Time
Host   Modules Fmt  VG UUIDVG
Attr   VSize   VFree   SYS ID Ext #Ext  Free MaxLV MaxPV
 #PV #LV #SN Seq VG Tags

RICCF 2015/5/7 19:52:30










 VProfile #VMda #VMdaUse VMdaFree  VMdaSize  #VMdaCps
  q2G0ZV-vklp-4LbF-oYiS-22qo-02Wb-CqS1Y5 1e94d2b6-7956-4bec-86bc-832211d36d6f /d
ev/ede37a89-5c1b-4d53-ad07-8a11ba209f61/1e94d2b6-7956-4bec-86bc-832211d36d6f -wi
-a- active  -1  -1   auto 253  17   512.00k   1.00t   1

RICCF 2015/5/7 19:53:09

  MD_15,PU_----0
000,IU_d0d88935-c8a4-4563-941d-775bc085cc2d  2015-04-19 16:18:23 +0800
jzjdve.com lvm2 hvo5lR-abga-Xv2v-txAT-5TDT-0v87-Wy7bAE ede37a89-5c1b-4d5
3-ad07-8a11ba209f61 wz--n-   4.00t 737.00g128.00m 32765 5896 0 0
   1  25   0 193 MDT_LEASETIMESEC=60,MDT_CLASS=Data,MDT_VERSION=3,MDT_LOGBLKSIZE
=512,MDT_VGUUID=hvo5lR-abga-Xv2v-txAT-5TDT-0v87-Wy7bAE,MDT_PV0=pv:36e09796100b6a
b9d000d3834000244uuid:D0B18v-naul-qSrN-EAr3-y27S-1wtr-ceG9qF44pestart:0
44pecount:3276544mapoffset:0,MDT_DESCRIPTION=ve_storage,MDT_LEASERETRIES=3,MD
T_IOOPTIMEOUTSEC=10,MDT_LOCKRENEWALINTERVALSEC=5,MDT_PHYBLKSIZE=512,MDT_TYPE=FCP
,MDT_LOCKPOLICY=,MDT_SDUUID=ede37a89-5c1b-4d53-ad07-8a11ba209f61,RHAT_storage_do
main,MDT_POOL_UUID=5849b030-626e-47cb-ad90-3ce782d831b3,MDT_POOL_DESCRIPTION=Def
ault,MDT_ROLE=Master,MDT_MASTER_VERSION=1,MDT_POOL_DOMAINS=ede37a89-5c1b-4d53-ad
07-8a11ba209f61:Active446cdc15fb-974c-4407-9b42-65b6f99b19f5:Active,MDT_POOL_S
PM_ID=1,MDT__SHA_CKSUM=557fcbb72833b9f2f4855bbfcca92908c1b331a4,MDT_POOL_SPM_LVE
R=14  2263.99m   128.00m unmanaged
  lj0jhT-tGqR-c0Hi-qGqS-5XF1-PrRV-ZOkEM8 1f37922f-3d11-4809-a5db-cb2e965a80f8 /d
ev/ede37a89-5c1b-4d53-ad07-8a11ba209f61/1f37922f-3d11-4809-a5db-cb2e965a80f8 -wi
-a- active  -1  -1   auto 253  27   512.00k 900.00g   1

  MD_25,PU_----0
000,IU_5c5c9121-3f0a-403c-ae53-46350bff6aca  2015-04-20 19:22:09 +0800
jzjdve.com lvm2 hvo5lR-abga-Xv2v-txAT-5TDT-0v87-Wy7bAE ede37a89-5c1b-4d5
3-ad07-8a11ba209f61 wz--n-   4.00t 737.00g128.00m 32765 5896 0 0

RICCF 2015/5/7 19:53:38

   1  25   0 193 MDT_LEASETIMESEC=60,MDT_CLASS=Data,MDT_VERSION=3,MDT_LOGBLKSIZE
=512,MDT_VGUUID=hvo5lR-abga-Xv2v-txAT-5TDT-0v87-Wy7bAE,MDT_PV0=pv:36e09796100b6a
b9d000d3834000244uuid:D0B18v-naul-qSrN-EAr3-y27S-1wtr-ceG9qF44pestart:0
44pecount:3276544mapoffset:0,MDT_DESCRIPTION=ve_storage,MDT_LEASERETRIES=3,MD
T_IOOPTIMEOUTSEC=10,MDT_LOCKRENEWALINTERVALSEC=5,MDT_PHYBLKSIZE=512,MDT_TYPE=FCP
,MDT_LOCKPOLICY=,MDT_SDUUID=ede37a89-5c1b-4d53-ad07-8a11ba209f61,RHAT_storage_do
main,MDT_POOL_UUID=5849b030-626e-47cb-ad90-3ce782d831b3,MDT_POOL_DESCRIPTION=Def
ault,MDT_ROLE=Master,MDT_MASTER_VERSION=1,MDT_POOL_DOMAINS=ede37a89-5c1b-4d53-ad
07-8a11ba209f61:Active446cdc15fb-974c-4407-9b42-65b6f99b19f5:Active,MDT_POOL_S
PM_ID=1,MDT__SHA_CKSUM=557fcbb72833b9f2f4855bbfcca92908c1b331a4,MDT_POOL_SPM_LVE
R=14  2263.99m   128.00m unmanaged
  16sEN2-wmFC-yjwN-Nwgm-rX5A-pKmR-A5UIhI 2dc72f9d-e170-4f8d-b415-ac4dc6914191 /d
ev/ede37a89-5c1b-4d53-ad07-8a11ba209f61/2dc72f9d-e170-4f8d-b415-ac4dc6914191 -wi
-a- active  -1  -1   auto 253  12   512.00k 300.00g   1

  IU_76c8a622-46f7-4def-a4fa-0b74d581e564,PU
_----,MD_10  2015-03-24 12:13:13 +0800
jzjdve.com lvm2 hvo5lR-abga-Xv2v-txAT-5TDT-0v87-Wy7bAE ede37a89-5c1b-4d5
3-ad07-8a11ba209f61 wz--n-   4.00t 737.00g128.00m 32765 5896 0 0
   1  25   0 193 MDT_LEASETIMESEC=60,MDT_CLASS=Data,MDT_VERSION=3,MDT_LOGBLKSIZE
=512,MDT_VGUUID=hvo5lR-abga-Xv2v-txAT-5TDT-0v87-Wy7bAE,MDT_PV0=pv:36e09796100b6a
b9d000d3834000244uuid:D0B18v-naul-qSrN-EAr3-y27S-1wtr-ceG9qF44pestart:0
44pecount:3276544mapoffset:0,MDT_DESCRIPTION=ve_storage,MDT_LEASERETRIES=3,MD
19:54:14
RICCF 2015/5/7 19:54:14

T_IOOPTIMEOUTSEC=10,MDT_LOCKRENEWALINTERVALSEC=5

[ovirt-users] vdsClient getVGList returned Empty

2015-05-07 Thread like...@cs2c.com.cn
Hi, guys
I have a vdsm host, when i use vgs command, it will display 2 volume group 
which already exist. But when i use vdsClient -s 0 getVGList, it displays 
nothing. That means vdsm cannot see the existed vg. Why? Does anybody have any 
idea?

P.S. In fact, i am trying to resolve the problem of Cannot find master domain



like...@cs2c.com.cn
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Optaplanner Problem

2014-11-18 Thread like...@cs2c.com.cn
What is your web browser? In my case , if i use the Chrome then the status 
would be Waiting for data... forever, 
but when i use Firefox then everything is ok.

by the way, please make sure that you optimizer can be connected from 
ovirt-engine firstly. 
e.g. if you use jboss, you need to run the following command:
./standalone.sh -b 0.0.0.0
if you have no -b option in your command line, then only localhost can access 
the optimizer.



like...@cs2c.com.cn
 
From: s k
Date: 2014-11-18 16:34
To: Doron Fediuck
CC: users@ovirt.org
Subject: Re: [ovirt-users] Optaplanner Problem
Network access is working both sides and i don't see any errors in the logs. 
You can see a screenshot of the tab in the below link:

http://picpaste.com/Optimizer_1-9UdHfclq.png

 Date: Mon, 17 Nov 2014 11:14:16 -0500
 From: dfedi...@redhat.com
 To: sokratis1...@outlook.com
 CC: users@ovirt.org; msi...@redhat.com
 Subject: Re: [ovirt-users] Optaplanner Problem
 
 
 
 - Original Message -
  From: s k sokratis1...@outlook.com
  To: users@ovirt.org
  Sent: Monday, November 17, 2014 1:52:42 PM
  Subject: [ovirt-users] Optaplanner Problem
  
  Hello,
  
  
  I upgraded oVirt to version 3.5.0 today and I also installed Optaplanner in 
  a
  separate VM. While the installation was successful the Optimizer tab in
  oVirt Engine doesn't report the correct information. Although there are VMs
  that are shutdown and the hosts are not balanced in terms of memory usage
  the Optimized tab reports the following:
  
  
  SOLUTION STATUS
  
  Status: Waiting for data...
  
  Solution is being refreshed every 30 seconds.
  
  Freeze solution
  
  VMS THAT SHOULD BE STARTED
  
  No VM starts are requested at this moment.
  
  MIGRATION / START STEPS
  
  No migrations are needed at this moment. The state is stable.
  
  TARGET STATE
  
  host vm memory [all in GB]
  used available
  
  
  
  No information is displayed in TARGET STATE.
  
 
 Hi,
 it seems that the optimizer is not getting information
 from the engine DB, or the UI plugin cannot connect the
 Optimizer.
 Do you see any meaningful information in the UI?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users