[ovirt-users] Re: Python SDK - get host VM is running on.

2021-02-25 Thread Roni Eliezer
You can also use the SDK wrapper:
https://github.com/rhevm-qe-automation/ovirtlib4

eng = OvirtLib("fqdn.something.com", username="myuser", password="mypassword")

for vm in eng.vms():
 if vm.entity.status.name == "UP":
 print(vm(follow="host").entity.host.name)


Thx

Roni


On Sun, Feb 21, 2021 at 11:47 PM  wrote:

> Thanks heaps.
>
> I've realised that I can use the follow_link method to get a reference to
> the host as well as below:
>
> ...
> vms_service = connection.system_service().vms_service()
> vms = vms_service.list()
> for vm in vms:
>   vm_service = vms_service.vm_service(vm.id)
>   if vm.status == types.VmStatus.UP:
> vmhost = connection.follow_link(vm.host)
> print("{0:<30s}{1:<30}{2:<30}".format(vm.name,vmhost.name,host.name))
> connection.close()
> ...
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/OOOUUP5SJBQWSYYNF4HLG6YQSFE3RDLM/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/WL5ZYHHLZ24TNHI6WAZQQOJMZERDHHUP/


[ovirt-users] Re: oVirt Survey 2019 results

2019-04-02 Thread Roni Eliezer
Regarding the IPv6 question:
"If you are using IPv6 for hosts, which kind of addressing you are using"?
"Dynamic or Static?"

I would add 'AutoConf' as well

Thx
Roni


On Tue, Apr 2, 2019 at 10:30 AM Dan Kenigsberg  wrote:

> On Tue, Apr 2, 2019 at 9:36 AM Sandro Bonazzola 
> wrote:
> >
> > Thanks to the 143 participants to oVirt Survey 2019!
> > The survey is now closed and results are publicly available at
> https://bit.ly/2JYlI7U
> > We'll analyze collected data in order to improve oVirt thanks to your
> feedback.
> >
> > As a first step after reading the results I'd like to invite the 30
> persons who replied they're willing to contribute code to send an email to
> de...@ovirt.org introducing themselves: we'll be more than happy to
> welcome them and helping them getting started.
> >
> > I would also like to invite the 17 people who replied they'd like to
> help organizing oVirt events in their area to either get in touch with me
> or introduce themselves to users@ovirt.org so we can discuss about events
> organization.
> >
> > Last but not least I'd like to invite the 38 people willing to
> contribute documentation and the one willing to contribute localization to
> introduce themselves to de...@ovirt.org.
> >
> > Thanks!
>
> and thank you, Sandro, for shepherding this survey.
>
> It has, as usual, very interesting results. I am happily surprised to
> see how many are using OvS, OVN and IPv6. I am less happy (but
> unsurprised) to see that nobody responded that they were using
> Fedora-based oVirt.
>
> I know the survey is anonymous, but I would love to reach out and
> obtain more information about the painful use case of whomever
> answered
> What is the most challenging flow in oVirt? with "Working with networks."
> I would love to hear more about your (and others'!) challenges, and
> see how we developers can ease them.
> ___
> 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/LLP7KDV7WFYFQRXM24HYAMYPNSSI56V6/
>
___
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/UM7YM6OTAAKQXPV772UXQWKNVQA5YCXO/