Bug 1116009
Summary: | sdk always raises a DisconnectedError trying to instantiate again after a previous failure | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Simone Tiraboschi <stirabos> |
Component: | ovirt-engine-sdk | Assignee: | Juan Hernández <juan.hernandez> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Beňas <pbenas> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.5 | CC: | gklein, iheim, pstehlik, rbalakri, sbonazzo, stirabos, yeylon |
Target Milestone: | --- | ||
Target Release: | 3.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | infra | ||
Fixed In Version: | ovirt-engine-sdk-python-3.5.0.2 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-17 12:30:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1073943, 1113882 |
Description
Simone Tiraboschi
2014-07-03 13:43:32 UTC
The change to the code generator that fixes this issue has been merged, now the SDK needs to be regenerated. *** Bug 1113882 has been marked as a duplicate of this bug. *** I'm still able to reproduce couple of errors between 'temporary unavailable' and working sdk instance, but finally got one. Is it ok for you this way? [root@pb-rh35 ~]# cat test.py #!/usr/bin/env python from ovirtsdk.api import API from ovirtsdk.xml import params from time import sleep def loop_connect(): try: api = API (url="TODO", username="admin@internal", password="XXXXX", ca_file="ca.crt") print "Connected to %s successfully!" % api.get_product_info().name api.disconnect() except Exception as ex: print "Unexpected error: %s" % ex sleep(0.3) loop_connect() loop_connect() [root@pb-rh35 ~]# service ovirt-engine restart; ./test.py Stopping oVirt Engine: [ OK ] Starting oVirt Engine: [ OK ] Unexpected error: status: 503 reason: Service Temporarily Unavailable detail: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>503 Service Temporarily Unavailable</title> </head><body> <h1>Service Temporarily Unavailable</h1> <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p> <hr> <address>Apache/2.2.22 (Red Hat Enterprise Web Server) Server at TODO Port 443</address> </body></html> <snip> couple of 503s </snip> Unexpected error: status: 503 reason: Service Temporarily Unavailable detail: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>503 Service Temporarily Unavailable</title> </head><body> <h1>Service Temporarily Unavailable</h1> <p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p> <hr> <address>Apache/2.2.22 (Red Hat Enterprise Web Server) Server at TODO Port 443</address> </body></html> Unexpected error: status: 404 reason: Not Found detail: Unexpected error: status: 404 reason: Not Found detail: Unexpected error: status: 404 reason: Not Found detail: Unexpected error: status: 404 reason: Not Found detail: Unexpected error: status: 500 reason: Internal Server Error detail: HTTP Status 500 Unexpected error: status: 500 reason: Internal Server Error detail: HTTP Status 500 Unexpected error: status: 500 reason: Internal Server Error detail: HTTP Status 500 Unexpected error: status: 401 reason: Unauthorized detail: HTTP Status 401 Connected to oVirt Engine successfully! I think so Ok then oVirt 3.5 has been released and should include the fix for this issue. |