[ovirt-users] Recommended Ovirt Implementation on Active-Active Datacenters (Site 1 and Site2) - Same Cluster

Rogério Ceni Coelho rogeriocenicoelho at gmail.com
Wed Jan 18 16:30:26 UTC 2017


Hi oVirt Masters !!!

I create Affinity Rules with sucess using REST API as Martin Sivak wrote on
https://www.ovirt.org/blog/2016/07/affinity-labels

I only want to tell him ( and all others users ) that the URL to check on
his blog is not right ( or at least nomore ).

Wrong way : ( Do not list hosts on affinitylabels - Original as wrote on
Martin Blogs - $ cengine -f
http://localhost:8080/ovirt-engine/api/affinitylabels | jq -r
'.affinity_label[] | {id, name, vms, hosts}')

[root at hlg-rbs-ovirt01-poa ~]# cengine -f
https://hlg-rbs-ovirt01-poa.rbs.com.br/ovirt-engine/api/affinitylabels

{
  "affinity_label" : [ {
    "read_only" : "false",
    "name" : "DATACENTER_TV",
    "href" :
"/ovirt-engine/api/affinitylabels/37f59ae4-2c63-46ac-a126-aa75b5be3437",
    "id" : "37f59ae4-2c63-46ac-a126-aa75b5be3437",
    "link" : [ {
      "href" :
"/ovirt-engine/api/affinitylabels/37f59ae4-2c63-46ac-a126-aa75b5be3437/hosts",
      "rel" : "hosts"
    }, {
      "href" :
"/ovirt-engine/api/affinitylabels/37f59ae4-2c63-46ac-a126-aa75b5be3437/vms",
      "rel" : "vms"
    } ]
  }, {
    "read_only" : "false",
    "name" : "DATACENTER_CORP",
    "href" :
"/ovirt-engine/api/affinitylabels/cecf7ac2-3128-443a-8d90-26f90bfca99d",
    "id" : "cecf7ac2-3128-443a-8d90-26f90bfca99d",
    "link" : [ {
      "href" :
"/ovirt-engine/api/affinitylabels/cecf7ac2-3128-443a-8d90-26f90bfca99d/hosts",
      "rel" : "hosts"
    }, {
      "href" :
"/ovirt-engine/api/affinitylabels/cecf7ac2-3128-443a-8d90-26f90bfca99d/vms",
      "rel" : "vms"
    } ]
  } ]

For me the right way are :

[root at hlg-rbs-ovirt01-poa ~]# export
DATACENTER_CORP=cecf7ac2-3128-443a-8d90-26f90bfca99d
[root at hlg-rbs-ovirt01-poa ~]# cengine -f
https://hlg-rbs-ovirt01-poa.rbs.com.br/ovirt-engine/api/affinitylabels/
$DATACENTER_CORP/hosts
{
  "host" : [ {
    "href" : "/ovirt-engine/api/hosts/f527f077-dd27-46d2-bd39-3f157177277e",
    "id" : "f527f077-dd27-46d2-bd39-3f157177277e"
  }, {
    "href" : "/ovirt-engine/api/hosts/f9c9d929-b460-4102-bb29-de1e6ad6ad72",
    "id" : "f9c9d929-b460-4102-bb29-de1e6ad6ad72"
  }, {
    "href" : "/ovirt-engine/api/hosts/02ead14e-0208-4a74-b1c2-4c19383820f9",
    "id" : "02ead14e-0208-4a74-b1c2-4c19383820f9"
  }, {
    "href" : "/ovirt-engine/api/hosts/ffde7cb6-30db-4d77-872d-ef4e1b3d1a8e",
    "id" : "ffde7cb6-30db-4d77-872d-ef4e1b3d1a8e"
  }, {
    "href" : "/ovirt-engine/api/hosts/5feddfba-d7b2-423e-a946-ac2bf36906fa",
    "id" : "5feddfba-d7b2-423e-a946-ac2bf36906fa"
  }, {
    "href" : "/ovirt-engine/api/hosts/7d9cab91-703d-432d-b5da-91e122950794",
    "id" : "7d9cab91-703d-432d-b5da-91e122950794"
  }, {
    "href" : "/ovirt-engine/api/hosts/cd5e5f1d-6c8b-49ad-a9ab-4f2fc3fedbb8",
    "id" : "cd5e5f1d-6c8b-49ad-a9ab-4f2fc3fedbb8"
  }, {
    "href" : "/ovirt-engine/api/hosts/45b93272-7bfd-4d9a-b934-75c4a9b9514e",
    "id" : "45b93272-7bfd-4d9a-b934-75c4a9b9514e"
  }, {
    "href" : "/ovirt-engine/api/hosts/0ccedcb2-33ab-43be-9218-7743d711bc18",
    "id" : "0ccedcb2-33ab-43be-9218-7743d711bc18"
  } ]

I am using oVirt 4.0.6.

Thanks.


Em qui, 24 de nov de 2016 às 13:01, Roy Golan <rgolan at redhat.com> escreveu:

> Affinity labels [1] will allow you to label the hosts and vms to site1 and
> site2 and that should be it.
>
> - create label per site
> - add the redpective label to each vm and host
>
> Unfortunately there is no UI for that but with SDK or rest it's easy
>
> [1] https://www.ovirt.org/blog/2016/07/affinity-labels/
>
> On Nov 24, 2016 3:12 PM, "Rogério Ceni Coelho" <
> rogeriocenicoelho at gmail.com> wrote:
>
> Hi Ovirt Jedi´s !!!
>
> First of all, congrats about the product !!! I love Ovirt !!!
>
> I am using Ovirt 4.0.4 with 10 hosts and 58 virtual machines on two
> Active-Active Datacenters using two EMC Vplex + two EMC VNX5500 + eight
> Dell Blades + 8 Dell PowerEdge M610 and two M620 Servers.
>
> Half servers are on Site 1 and Half servers on Site 2. The same with VMs.
> All Sites work as one and have redundant network, storage, power, etc etc
> etc ...
>
> I want to know what is the best way to set that VM number 1 runs on Site 1
> and VM number 2 runs on Site 2 ?
>
> On Vmware 5.1 we use DRS Group Manager and on Hyper-V we use Custom
> Properties on hosts and on VMs. What we use on oVirt without segregate on
> two different Datacenters or two different clusters ?
>
> Thanks in advance.
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170118/8d11b628/attachment.html>


More information about the Users mailing list