On 08/01/2012 07:46 AM, Lucas Meneghel Rodrigues wrote:
On Tue, Jul 31, 2012 at 5:36 PM, Chris Evich<[email protected]>  wrote:
On 06/26/2012 01:28 PM, Alex Jia wrote:
With this module, we able to use SDK for the oVirt engine API to
manipulate resources in oVirt such as Data Centers, Clusters,
Hosts, Storage Domains, VMs, etc.

At present, we haven't cover everything into our oVirt module, which
only includes some necessary API implementation for virt-v2v requirement.

However, it's very easy to extend new functions to support oVirt autotest
in the future.

Signed-off-by: Alex Jia<[email protected]>
Signed-off-by: Wayne Sun<[email protected]>
...cut...

+    try:
+        # Try to connect oVirt API if connection doesn't exist,
+        # otherwise, directly return existing API connection.
+        if not _connected:
+            _api = API(url, username, password)
+            _connected = True
+            return (_api, version)
+        else:
+            return (_api, version)
+    except Exception as e:
+        logging.error('Failed to connect: %s\n' % str(e))
+    else:
+        logging.info('Succeed to connect oVirt/Rhevm manager\n')

I got my autotest working again on RHEL 5.8, and just noticed commit commit
76f30ac34aabb8c38a3810c7ecee1f42c9716cc8 adds the above "except Exception as
e" which throws a syntax error on python 2.4 :(
Solved. sneaky python>  2.4 syntax bugs...

Lucas and Chris, thanks a lot!

Regards,
Alex

I open https://github.com/autotest/autotest/issues/486 so this problem
doesn't get lost.  Thanks!

--
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel



_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to