
Hello, When using the API to update an AffinityGroup there is a AffinityGroupVm and AffinityGroupVms so I can add or remove VMs but there is no AffinityGroupHost or AffinityGroupHosts, therefore I can't add or remove hosts. Thanks, Paul S.

Hi, Yes, the AffinityGroupHosts is missing. Can you please open a bug[1] so we can add it? As a workaround, the hosts can be modified by PUT request to the AffinityGroup endpoint directly, for example: PUT /ovirt-engine/api/clusters/1234/affinitygroups/5678 <affinity_group> <hosts> <host id="123456789"/> <host id="987654321"/> </hosts> </affinity_group> However, this will replace all hosts in the affinity group with the hosts listed. Best regards, Andrej [1] - https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine On Wed, 21 Nov 2018 at 13:26, <p.staniforth@leedsbeckett.ac.uk> wrote:
Hello, When using the API to update an AffinityGroup there is a AffinityGroupVm and AffinityGroupVms so I can add or remove VMs but there is no AffinityGroupHost or AffinityGroupHosts, therefore I can't add or remove hosts.
Thanks, Paul S. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/BUMDJ34JRLDHSE...

Thanks Andrej I've opened a bug Regards, Paul S. ________________________________ From: Andrej Krejcir <akrejcir@redhat.com> Sent: 21 November 2018 13:32 To: Staniforth, Paul Cc: users Subject: Re: [ovirt-users] AffinityGroup API Hi, Yes, the AffinityGroupHosts is missing. Can you please open a bug[1] so we can add it? As a workaround, the hosts can be modified by PUT request to the AffinityGroup endpoint directly, for example: PUT /ovirt-engine/api/clusters/1234/affinitygroups/5678 <affinity_group> <hosts> <host id="123456789"/> <host id="987654321"/> </hosts> </affinity_group> However, this will replace all hosts in the affinity group with the hosts listed. Best regards, Andrej [1] - https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine On Wed, 21 Nov 2018 at 13:26, <p.staniforth@leedsbeckett.ac.uk<mailto:p.staniforth@leedsbeckett.ac.uk>> wrote: Hello, When using the API to update an AffinityGroup there is a AffinityGroupVm and AffinityGroupVms so I can add or remove VMs but there is no AffinityGroupHost or AffinityGroupHosts, therefore I can't add or remove hosts. Thanks, Paul S. _______________________________________________ Users mailing list -- users@ovirt.org<mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org<mailto:users-leave@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/BUMDJ34JRLDHSE... To view the terms under which this email is distributed, please go to:- http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html

Hello Andrej, Also the Affinity Groups apparently aren't available in the Ruby SDK should I add this to the bug report? Thanks, Paul S. ________________________________ From: Andrej Krejcir <akrejcir@redhat.com> Sent: 21 November 2018 13:32 To: Staniforth, Paul Cc: users Subject: Re: [ovirt-users] AffinityGroup API Hi, Yes, the AffinityGroupHosts is missing. Can you please open a bug[1] so we can add it? As a workaround, the hosts can be modified by PUT request to the AffinityGroup endpoint directly, for example: PUT /ovirt-engine/api/clusters/1234/affinitygroups/5678 <affinity_group> <hosts> <host id="123456789"/> <host id="987654321"/> </hosts> </affinity_group> However, this will replace all hosts in the affinity group with the hosts listed. Best regards, Andrej [1] - https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine On Wed, 21 Nov 2018 at 13:26, <p.staniforth@leedsbeckett.ac.uk<mailto:p.staniforth@leedsbeckett.ac.uk>> wrote: Hello, When using the API to update an AffinityGroup there is a AffinityGroupVm and AffinityGroupVms so I can add or remove VMs but there is no AffinityGroupHost or AffinityGroupHosts, therefore I can't add or remove hosts. Thanks, Paul S. _______________________________________________ Users mailing list -- users@ovirt.org<mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org<mailto:users-leave@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/BUMDJ34JRLDHSE... To view the terms under which this email is distributed, please go to:- http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html

Hi, I don't know much about ruby SDK. I think the SDKs for various languages are generated from the API specification. Ondra, is this a bug in ruby SDK? Andrej On Fri, 23 Nov 2018 at 18:06, Staniforth, Paul < P.Staniforth@leedsbeckett.ac.uk> wrote:
Hello Andrej,
Also the Affinity Groups apparently aren't available in the Ruby SDK should I add this to the bug report?
Thanks,
Paul S. ------------------------------ *From:* Andrej Krejcir <akrejcir@redhat.com> *Sent:* 21 November 2018 13:32 *To:* Staniforth, Paul *Cc:* users *Subject:* Re: [ovirt-users] AffinityGroup API
Hi,
Yes, the AffinityGroupHosts is missing. Can you please open a bug[1] so we can add it?
As a workaround, the hosts can be modified by PUT request to the AffinityGroup endpoint directly, for example:
PUT /ovirt-engine/api/clusters/1234/affinitygroups/5678 <affinity_group> <hosts> <host id="123456789"/> <host id="987654321"/> </hosts> </affinity_group>
However, this will replace all hosts in the affinity group with the hosts listed.
Best regards, Andrej
[1] - https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine
On Wed, 21 Nov 2018 at 13:26, <p.staniforth@leedsbeckett.ac.uk> wrote:
Hello, When using the API to update an AffinityGroup there is a AffinityGroupVm and AffinityGroupVms so I can add or remove VMs but there is no AffinityGroupHost or AffinityGroupHosts, therefore I can't add or remove hosts.
Thanks, Paul S. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/BUMDJ34JRLDHSE...
To view the terms under which this email is distributed, please go to:- http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html

What version of the SDK do you use? I can see it's supported in latest version. On 11/26/18 11:13 AM, Andrej Krejcir wrote:
Hi,
I don't know much about ruby SDK. I think the SDKs for various languages are generated from the API specification.
Ondra, is this a bug in ruby SDK?
Andrej
On Fri, 23 Nov 2018 at 18:06, Staniforth, Paul < P.Staniforth@leedsbeckett.ac.uk> wrote:
Hello Andrej,
Also the Affinity Groups apparently aren't available in the Ruby SDK should I add this to the bug report?
Thanks,
Paul S. ------------------------------ *From:* Andrej Krejcir <akrejcir@redhat.com> *Sent:* 21 November 2018 13:32 *To:* Staniforth, Paul *Cc:* users *Subject:* Re: [ovirt-users] AffinityGroup API
Hi,
Yes, the AffinityGroupHosts is missing. Can you please open a bug[1] so we can add it?
As a workaround, the hosts can be modified by PUT request to the AffinityGroup endpoint directly, for example:
PUT /ovirt-engine/api/clusters/1234/affinitygroups/5678 <affinity_group> <hosts> <host id="123456789"/> <host id="987654321"/> </hosts> </affinity_group>
However, this will replace all hosts in the affinity group with the hosts listed.
Best regards, Andrej
[1] - https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine
On Wed, 21 Nov 2018 at 13:26, <p.staniforth@leedsbeckett.ac.uk> wrote:
Hello, When using the API to update an AffinityGroup there is a AffinityGroupVm and AffinityGroupVms so I can add or remove VMs but there is no AffinityGroupHost or AffinityGroupHosts, therefore I can't add or remove hosts.
Thanks, Paul S. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/BUMDJ34JRLDHSE...
To view the terms under which this email is distributed, please go to:- http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html

Hi Andrej I believe they are using 4.2.5 they get a permission error although they can use the python SDK with the same account. Paul S. ________________________________________ From: Ondra Machacek <omachace@redhat.com> Sent: 26 November 2018 11:41 To: Staniforth, Paul Cc: Andrej Krejcir; users Subject: Re: [ovirt-users] AffinityGroup API What version of the SDK do you use? I can see it's supported in latest version. On 11/26/18 11:13 AM, Andrej Krejcir wrote:
Hi,
I don't know much about ruby SDK. I think the SDKs for various languages are generated from the API specification.
Ondra, is this a bug in ruby SDK?
Andrej
On Fri, 23 Nov 2018 at 18:06, Staniforth, Paul < P.Staniforth@leedsbeckett.ac.uk> wrote:
Hello Andrej,
Also the Affinity Groups apparently aren't available in the Ruby SDK should I add this to the bug report?
Thanks,
Paul S. ------------------------------ *From:* Andrej Krejcir <akrejcir@redhat.com> *Sent:* 21 November 2018 13:32 *To:* Staniforth, Paul *Cc:* users *Subject:* Re: [ovirt-users] AffinityGroup API
Hi,
Yes, the AffinityGroupHosts is missing. Can you please open a bug[1] so we can add it?
As a workaround, the hosts can be modified by PUT request to the AffinityGroup endpoint directly, for example:
PUT /ovirt-engine/api/clusters/1234/affinitygroups/5678 <affinity_group> <hosts> <host id="123456789"/> <host id="987654321"/> </hosts> </affinity_group>
However, this will replace all hosts in the affinity group with the hosts listed.
Best regards, Andrej
[1] - https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine
On Wed, 21 Nov 2018 at 13:26, <p.staniforth@leedsbeckett.ac.uk> wrote:
Hello, When using the API to update an AffinityGroup there is a AffinityGroupVm and AffinityGroupVms so I can add or remove VMs but there is no AffinityGroupHost or AffinityGroupHosts, therefore I can't add or remove hosts.
Thanks, Paul S. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@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/BUMDJ34JRLDHSE...
To view the terms under which this email is distributed, please go to:- http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
To view the terms under which this email is distributed, please go to:- http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html
participants (4)
-
Andrej Krejcir
-
Ondra Machacek
-
p.staniforth@leedsbeckett.ac.uk
-
Staniforth, Paul