[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-05-31 Thread Joey Ma
OK, got it. Search is a powerful solution. Thank you very much. On Thu, May 31, 2018 at 6:49 PM, Ondra Machacek wrote: > On 05/31/2018 09:28 AM, iterjpnic wrote: > >> Hi all, >> >> I use oVirt engine API v4.2 for implementing terraform oVirt provider. >> And I want to check if a Disk has been a

[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-05-31 Thread Joey Ma
/webadmin/?locale=en_US#disks> On Fri, Jun 1, 2018 at 8:51 AM, Joey Ma wrote: > OK, got it. Search is a powerful solution. Thank you very much. > > On Thu, May 31, 2018 at 6:49 PM, Ondra Machacek > wrote: > >> On 05/31/2018 09:28 AM, iterjpnic wrote: >> >>

[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-06-01 Thread Joey Ma
sure all the VMs it's attached to have been powered down (if not, we could directly power down them). Then we could detach the disk for each VM and removes the disk finally. > If you need to know only if it's attached 'true/false', you can use > > /api/disks?search=nu

[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-06-01 Thread Joey Ma
-attachments by a disk id. In my view, maybe there should have a interconnection of the disk, disk-attachment and vm. Thanks. On Fri, Jun 1, 2018 at 2:49 PM, Joey Ma wrote: > > > On Fri, Jun 1, 2018 at 1:48 PM, Ondra Machacek > wrote: > >> Looking the API, the Disk type has elemen

[ovirt-users] The equivalence of the DiskAttachment ID and its relevant Disk ID should be intuitively documented.

2018-06-07 Thread Joey Ma
Hi all, In these days, I was struggling to find the relationship among vm/disk/disk-attachment. I just found that the IDs of DiskAttachment and relevant Disk are the same, in the mapping phrase by [1]. This is a extremely helpful for connecting the disk and the disk-attachment, especially when up

[ovirt-users] [ovirt-engine-api-model] Any solutions to add custom key/value pairs into entities?

2018-08-14 Thread Joey Ma
Hi all, In my case, I need to add customized KVs into API model entities, such as VM, Disk, Template and etc. I looked through the API model documents and got some existing Tag/Property/CustomProperty structs, all of which have limitations and can not work it out. Are there any solutions? Thank

[ovirt-users] Re: [ovirt-engine-api-model] Any solutions to add custom key/value pairs into entities?

2018-08-14 Thread Joey Ma
On Tue, Aug 14, 2018 at 7:43 PM Ondra Machacek wrote: > Hi, > > On 08/14/2018 11:53 AM, Joey Ma wrote: > > Hi all, > > > > In my case, I need to add customized KVs into API model entities, such > > as VM, Disk, Template and etc. > > > > I looked

[ovirt-users] Re: vm names export

2018-09-24 Thread Joey Ma
On Tue, Sep 25, 2018 at 11:40 AM Budur Nagaraju wrote: > Hi , > > Have done the below modification in the script and getting the error,can > you please help to fix the issue? > > > Script : > > [root@cephc ovirt-scripts]# vi get_vm_names > #!/usr/bin/env python > # -*- coding: utf-8 -*- > > impor

[ovirt-users] Re: vm names export

2018-09-24 Thread Joey Ma
r_lines) > File "/usr/lib64/python2.7/site-packages/ovirtsdk4/__init__.py", line > 889, in _check_content_type > raise Error(msg) > ovirtsdk4.Error: The response content type 'text/html;charset=UTF-8' isn't > the expected JSON > [root@cephc ovirt-scrip

[ovirt-users] Re: Ovirt-engine-websocket-proxy

2018-09-25 Thread Joey Ma
Hi Hari, After adding an extra `ovirt-snapshots` yum repository as described in [1], the installation might be ok. [1]: https://www.ovirt.org/develop/developer-guide/engine/engine-development-environment/ Regards, Joey On Wed, Sep 26, 2018 at 2:29 PM Hari Prasanth Loganathan < hariprasant...@ms

[ovirt-users] Windows 7 vm lost network connection under heavy network load

2020-12-30 Thread Joey Ma
Hi folks, Happy holidays. I'm having an urgent problem :smile: . I've installed oVirt 4.4.2 on CentOS 8.2 and then created several Windows 7 vms for stress testing. I found that the heavy network load would lead to the e1000 net card NOT able to receive packets, it seemed totally blocked. In the

[ovirt-users] Re: Windows 7 vm lost network connection under heavy network load

2021-01-02 Thread Joey Ma
Hi Strahil and Gianluca, Thank you guys so much for getting back to me. I was using e1000 for VMs, not physical servers. Much appreciated for your suggestions and I've turned to virtio and would redo the stress testing. Hope everything works fine. 😀 Happy new year. Regards, Joey On Thu, Dec 3

[ovirt-users] Re: Fetching DiskAttachmentService in ovirt-python-sdk-4

2019-04-26 Thread Joey Ma
Hi Kaustav, IHMO, the `attachment` variable is an instance of DiskAttachment, instead of the type of DiskAttachmentService as expected. You should probably replace ```python # Line 18-20 if attachment: attachment.remove(detach_only=False) print("Disk removed") ``` with

[ovirt-users] Re: Fetching DiskAttachmentService in ovirt-python-sdk-4

2019-04-26 Thread Joey Ma
b.com/ansible/ansible/tree/devel/lib/ansible/modules/cloud/ovirt On Fri, Apr 26, 2019 at 5:10 PM Kaustav Majumder wrote: > Thank you so much . It worked. i often get confused with the sdk. Is > there a doc explaining this? > > On Fri, Apr 26, 2019 at 2:37 PM Joey Ma wrote: > >&

[ovirt-users] Re: [ovirt-devel] [ANN] Incubating terraform-provider-ovirt

2019-07-01 Thread Joey Ma
Hi fellows, So glad to see that the project could be incubated under the oVirt community. Many thanks to you all for helping me a lot, especially to @Roy. Hopefully this project can be able to improve the ecosystem around oVirt. As always, any feedbacks are welcome and appreciated. ^_^ Regards

[ovirt-users] Re: Issue adding Network to host with Python SDK

2019-07-02 Thread Joey Ma
Hi Don, One feasible way to manipulate host networks/nics is using `host_service.setup_networks()` function. You could refer to [1] and [2] for the official directive details. Hopefully it will be useful. Regards, Joey [1]: https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/add_b

[ovirt-users] Re: Issue adding Network to host with Python SDK

2019-07-04 Thread Joey Ma
I will check it out. >> >> On Wed, Jul 3, 2019 at 12:06 AM Joey Ma wrote: >> >>> Hi Don, >>> >>> One feasible way to manipulate host networks/nics is using >>> `host_service.setup_networks()` function. You could refer to [1] and [2] >>

[ovirt-users] Re: ovirt api snapshot date format?

2019-08-28 Thread Joey Ma
Hi Bill, I guess this is a Unix timestamp in milliseconds. I'm afraid that the description of Date primitives in API model document is incorrect. The "an integer containing the number of *seconds* since Jan 1st 1970, also know as *epoch time* ." should be c

[ovirt-users] Re: Find MAC for VM

2019-09-17 Thread Joey Ma
Hi Colin, I tested the above snippets with the latest Python SDK v4.3.3 (Python 3.7.4) on Engine v4.1.9.1 and everything works fine. Could you please provide the versions of Python/SDK/Engine in your local environment, as well as the error output? Regards, Joey On Mon, Sep 16, 2019 at 9:40 AM C

[ovirt-users] Re: Find MAC for VM

2019-09-17 Thread Joey Ma
> The SDK versions I have are: > > - ovirt-engine-sdk-python-3.6.9.1-1.el7ev.noarch > > - python-ovirt-engine-sdk4-4.1.7-1.el7ev.x86_64 > > > Attempting to remove the v3.6 SDK results in yum trying to remove RHV... > > > Thanks > > > > > On Tue, Sep 17, 2019

[ovirt-users] Re: poweroff and reboot with ovirt_vm ansible module

2018-11-02 Thread Joey Ma
hi, AFAIK, setting state=stopped is the only way to poweroff a VM. While to reboot a VM, you could also follow the steps below: 1. Update a VM with some new properties that requires a restart operation, also with the param: next_run=true 2. Set state=next_run in your playbook and apply it Then th

[ovirt-users] Re: Ovirt project source code download problem

2019-02-19 Thread Joey Ma
Hi, You could get all the source codes relevant to oVirt from Gerrit [1] and Github [2]. [1]: https://gerrit.ovirt.org [2]: https://github.com/oVirt On Wed, Feb 20, 2019 at 3:02 PM wrote: > Hi,The dear. > May I ask where I can find the source code of ovirt project? I want to > test the environ

[ovirt-users] Re: Python-SDK4- Issue following links

2019-02-24 Thread Joey Ma
Hi Don, Please using `network.vnic_profiles` instead of `network.vnicprofiles` as the parameter of `connection.follow_link`. Regards, Joey On Mon, Feb 25, 2019 at 9:22 AM Don Dupuis wrote: > Hi > > I am trying to write some code to update the names of existing > vnicprofiles in ovirt-4.2. Th

[ovirt-users] Re: Python-SDK4- Issue following links

2019-02-25 Thread Joey Ma
uot;Dev name is %s" % dev.name) > #vnicprofile_service.update(types.VnicProfile( > # name='%s' % HOSTNAME, > # ), > #) > connection.close() > > ./update-vnic.py > Network name is ovirtmgmt > Network id is 740cae1f-c49f-456

[ovirt-users] Re: Python-SDK4- Issue following links

2019-02-25 Thread Joey Ma
I understand now from your code on what is going on and why was going down > the wrong road. > > Thanks again for your help > > Don > > On Mon, Feb 25, 2019 at 10:24 PM Joey Ma wrote: > >> >> On Tue, Feb 26, 2019 at 1:00 AM Don Dupuis wrote: >> >>>

[ovirt-users] Re: ovirt go sdk

2021-09-01 Thread Joey Ma
Hi Nikita, Sorry for bothering you. Do you mind commit an issue on https://github.com/oVirt/ovirt-engine-sdk-go with the information you provided above? In addition, it may help us more if you could tell us the versions of oVirt and go-sdk. Thanks. Regards, Joey On Wed, Sep 1, 2021 at 4:02 PM