Bug 1528999
| Summary: | [RFE] Improve host's upgrade_check() function - so it'll return a boolean if an upgrade is available | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine-sdk-python | Reporter: | Yaniv Kaul <ykaul> |
| Component: | RFEs | Assignee: | Ondra Machacek <omachace> |
| Status: | CLOSED DEFERRED | QA Contact: | Lukas Svaty <lsvaty> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | --- | CC: | bugs, juan.hernandez, mperina |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | Flags: | oourfali:
ovirt-future?
rule-engine: planning_ack? rule-engine: devel_ack? rule-engine: testing_ack? |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-01 14:46:02 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: | |||
|
Description
Yaniv Kaul
2017-12-25 19:04:25 UTC
Example: host_service = connection.system_service().hosts_service().host_service(host.id) is_upgrade = host_service.upgrade_check() To my surprise, is_upgrade is None. I expected a Boolean. This is quite problematic, because the whole "check-for-upgrade" flow needs to be asynchronous: 1. By default it's executed periodically by engine itself and because it may take really long time to fetch repositories updates on the host 2. If we make it synchronous, the also UI would be blocked when check for upgrade is executed form webadmin So the only option is probably to execute check-for-upgrade flow asynchronously and then periodically check host status (or job status) until the check-for-upgrade flow finished. We didn't get to this bug for more than 2 years, and it's not being considered for the upcoming 4.4. It's unlikely that it will ever be addressed so I'm suggesting to close it. If you feel this needs to be addressed and want to work on it please remove cond nack and target accordingly. ok, closing. Please reopen if still relevant/you want to work on it. ok, closing. Please reopen if still relevant/you want to work on it. |