
--Apple-Mail=_F30DEBD8-5156-4EC2-BE2E-C421F2B60768 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I have started to write a custom sdk/cli in python for Ovirt 4. It = provides helpers and wrapper for the rather raw level sdk4 provided. It's still a work in progress, but a big improvement from my previous = version, made for ovirt 3. It allows to write simple commands on shell : $ ./ovcmd host -n hostname maintenance $ ./ovcmd host -n hostname activate It also allows to do fine exports: $ ./ovcmd vm -n vmname export os type rhel_6x64 $ ./ovcmd capabilities -n 4.1 export cpu_types name Intel Conroe Family Intel Penryn Family Intel Nehalem Family Intel Westmere Family Intel SandyBridge Family Intel Haswell-noTSX Family Intel Haswell Family Intel Broadwell-noTSX Family Intel Broadwell Family Intel Skylake Family AMD Opteron G1 AMD Opteron G2 AMD Opteron G3 AMD Opteron G4 AMD Opteron G5 IBM POWER8 Or to get a display console on a mac os: $open $(./ovcmd vm -n vmname console ) It can be found at https://github.com/fbacchella/ovirtcmd/tree/sdk4 It's still works in progress, I need to finish to remove sdk3 code. Some example of object written to sdk4 can be found at: https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py= --Apple-Mail=_F30DEBD8-5156-4EC2-BE2E-C421F2B60768 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"">I have started to write a custom sdk/cli in python for Ovirt = 4. It provides helpers and wrapper for the rather raw level sdk4 = provided.<div class=3D""><br class=3D""></div><div class=3D"">It's still = a work in progress, but a big improvement from my previous version, made = for ovirt 3.</div><div class=3D""><br class=3D""></div><div class=3D"">It = allows to write simple commands on shell :</div><div class=3D""><br = class=3D""></div><div class=3D""><div style=3D"margin: 0px; font-size: = 11px; line-height: normal; font-family: Menlo;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">$ = ./ovcmd host -n hostname maintenance</span></div></div><div = style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: = Menlo;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D"">$ ./ovcmd host = -n hostname activate</span></div><div style=3D"margin: 0px; = font-size: 11px; line-height: normal; font-family: Menlo;" = class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" = class=3D""><br class=3D""></span></div><div style=3D"margin: 0px; = font-size: 11px; line-height: normal; font-family: Menlo;" = class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" = class=3D"">It also allows to do fine exports:</span></div><div = style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: = Menlo;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D""><br class=3D""></span></div><div = style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: = Menlo;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D"">$ ./ovcmd vm -n vmname export = os type</span></div><div style=3D"margin: 0px; font-size: 11px; = line-height: normal; font-family: Menlo;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" = class=3D"">rhel_6x64</span></div><div style=3D"margin: 0px; font-size: = 11px; line-height: normal; font-family: Menlo;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><br = class=3D""></span></div><div style=3D"margin: 0px; font-size: 11px; = line-height: normal; font-family: Menlo;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" = class=3D"">$ </span>./ovcmd capabilities -n 4.1 export cpu_types = name</div><div style=3D"margin: 0px; line-height: normal;" class=3D""><div= style=3D"font-family: Menlo; font-size: 11px; margin: 0px; line-height: = normal;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D"">Intel Conroe Family</span></div><div = style=3D"font-family: Menlo; font-size: 11px; margin: 0px; line-height: = normal;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D"">Intel Penryn Family</span></div><div = style=3D"font-family: Menlo; font-size: 11px; margin: 0px; line-height: = normal;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D"">Intel Nehalem Family</span></div><div = style=3D"font-family: Menlo; font-size: 11px; margin: 0px; line-height: = normal;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D"">Intel Westmere Family</span></div><div = style=3D"font-family: Menlo; font-size: 11px; margin: 0px; line-height: = normal;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D"">Intel SandyBridge = Family</span></div><div style=3D"font-family: Menlo; font-size: 11px; = margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Intel = Haswell-noTSX Family</span></div><div style=3D"font-family: Menlo; = font-size: 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Intel = Haswell Family</span></div><div style=3D"font-family: Menlo; font-size: = 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Intel = Broadwell-noTSX Family</span></div><div style=3D"font-family: Menlo; = font-size: 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Intel = Broadwell Family</span></div><div style=3D"font-family: Menlo; = font-size: 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Intel = Skylake Family</span></div><div style=3D"font-family: Menlo; font-size: = 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">AMD = Opteron G1</span></div><div style=3D"font-family: Menlo; font-size: = 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">AMD = Opteron G2</span></div><div style=3D"font-family: Menlo; font-size: = 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">AMD = Opteron G3</span></div><div style=3D"font-family: Menlo; font-size: = 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">AMD = Opteron G4</span></div><div style=3D"font-family: Menlo; font-size: = 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">AMD = Opteron G5</span></div><div style=3D"font-family: Menlo; font-size: = 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">IBM = POWER8</span></div><div style=3D"font-family: Menlo; font-size: 11px; = margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><br = class=3D""></span></div><div style=3D"font-family: Menlo; font-size: = 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">Or to = get a display console on a mac os:</span></div><div style=3D"font-family: = Menlo; font-size: 11px; margin: 0px; line-height: normal;" = class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" = class=3D""><br class=3D""></span></div><div style=3D"font-family: Menlo; = font-size: 11px; margin: 0px; line-height: normal;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">$open = $(./ovcmd vm -n vmname console )</span></div><div style=3D"font-family: = Menlo; font-size: 11px; margin: 0px; line-height: normal;" = class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" = class=3D""><br class=3D""></span></div><div style=3D"font-family: Menlo; = font-size: 11px;" class=3D""><span style=3D"font-variant-ligatures: = no-common-ligatures" class=3D""><br class=3D""></span></div><div = style=3D"font-family: Menlo; font-size: 11px;" class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">It can = be found at <a = href=3D"https://github.com/fbacchella/ovirtcmd/tree/sdk4" = class=3D"">https://github.com/fbacchella/ovirtcmd/tree/sdk4</a></span></di= v><div style=3D"font-family: Menlo; font-size: 11px;" class=3D"">It's = still works in progress, I need to finish to remove sdk3 code.</div><div = style=3D"font-family: Menlo; font-size: 11px;" class=3D""><br = class=3D""></div><div style=3D"font-family: Menlo; font-size: 11px;" = class=3D"">Some example of object written to sdk4 can be found = at:</div><div style=3D"font-family: Menlo; font-size: 11px;" = class=3D""><br class=3D""></div><div class=3D""><span = style=3D"font-variant-ligatures: no-common-ligatures; font-size: 11px;" = class=3D""><font face=3D"Menlo" class=3D""><a = href=3D"https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init_= _.py" = class=3D"">https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__in= it__.py</a></font></span></div></div></body></html>= --Apple-Mail=_F30DEBD8-5156-4EC2-BE2E-C421F2B60768--