Bug 1433718
Summary: | Add reasonable timeout for the Python SDK requests | ||
---|---|---|---|
Product: | [oVirt] ovirt-hosted-engine-setup | Reporter: | Artyom <alukiano> |
Component: | General | Assignee: | Simone Tiraboschi <stirabos> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Artyom <alukiano> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.1.0.4 | CC: | bugs, ykaul |
Target Milestone: | ovirt-4.1.2 | Keywords: | Reopened, Triaged |
Target Release: | 2.1.0.6 | Flags: | rule-engine:
ovirt-4.1+
|
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-23 08:11:43 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1446582 |
Description
Artyom
2017-03-19 13:19:49 UTC
Unfortunately, it may take 15m to install a host, if the RPMs download is slllllooowww.. In the case of the hosted-engine host deploy we sample host status each second, so it will not be a problem, also HE host has already the most part of the relevant packages. So maybe we can reduce the timeout time. What do you think? (In reply to Artyom from comment #2) > In the case of the hosted-engine host deploy we sample host status each > second, so it will not be a problem, also HE host has already the most part > of the relevant packages. So maybe we can reduce the timeout time. > What do you think? I see no reason to query every second actually, but I also don't see the real value in reducing this timeout. The real value is to save some time in the case when the python API request is stuck like you can see from the log that I provided. My host deployment finished after 2 minutes, but because some problem with the python SDK I needed to wait the half hour. Also, I do not ask general timeout reduce, I ask timeout reduce only in this specific case when we deploy first HE host to the engine. (In reply to Artyom from comment #4) > The real value is to save some time in the case when the python API request > is stuck like you can see from the log that I provided. My host deployment > finished after 2 minutes, but because some problem with the python SDK I > needed to wait the half hour. Also, I do not ask general timeout reduce, I > ask timeout reduce only in this specific case when we deploy first HE host > to the engine. I suggest finding the real problem in the SDK. Artyom is right, we were passing the wrong value on API constructor from the python SDK resulting in unacceptably long timeout. Verified on ovirt-hosted-engine-setup-2.1.0.6-1.el7ev.noarch |