Bug 1956159
| Summary: | [RFE] Add option to pass "LEAPP_OVL_SIZE" variable with desired value in "Run upgrade via Leapp" job template | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Prakash Ghadge <pghadge> |
| Component: | Leapp integration | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED WONTFIX | QA Contact: | Lucie Vrtelova <lvrtelov> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.8.0 | CC: | aruzicka, lstejska, podvody, thadzhie |
| Target Milestone: | Unspecified | Keywords: | FutureFeature, Triaged |
| Target Release: | Unused | ||
| 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: | 2022-07-20 08:43:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Prakash Ghadge
2021-05-03 05:16:33 UTC
Additional Information - While upgrading from the RHEL7 to RHEL8, the leapp upgrade fails with an error if an "XFS ftype=0 case" condition is met.(typical for systems installed with RHEL 7.4 or before) ~~~ At least X MB more space needed on the </XXX> filesystem ~~~ For more information please check ~~~ [leapp] At least X MB more space needed on the </XXX> filesystem https://access.redhat.com/solutions/5057391 ~~~ The solution is to set the LEAPP_OVL_SIZE variable with a larger value (computation is XXX + 2048 + some space for security). But this needs to be done manually on all affected clients and completely and does not fit incomplete automation using satellite 6. The solution for this issue is to add an option in "Run upgrade via Leapp" job template to pass the value of the LEAPP_OVL_SIZE variable based on the following conditions. 1. Check XFS file systems built with ftype=0 option. There is a check in "preupgrade check with leapp" which checks for the same. Maybe we can utilize that If YES - Set the "LEAPP_OVL_SIZE" If NO - Do Not set the "LEAPP_OVL_SIZE" Current Workaround which is working fine. - - Satellite WebUI > Hosts > Job Template > In search box search "Run upgrade via Leapp" > Clone the template by clicking on drop-down menu next to run button - Here modify the code as follows and save ~~~ --- - hosts: all tasks: - name: Populate Env lineinfile: dest: "/etc/environment" state: present line: "LEAPP_OVL_SIZE=4096" <<< Set the value as per requirement. - name: Source ENV shell: "source /etc/environment" - name: Run Leapp Upgrade command: leapp upgrade <%- if input('Reboot') == "true" -%> - name: Reboot the machine reboot: reboot_timeout: 1800 <%- end -%> ~~~ Moving over to leapp. While the suggestion from #0 would probably work, permanently modifying system environment feels like something we should avoid if possible. Ansible allows setting environment variables on a per-task or per-play level, wouldn't this be enough? @Pavel sorry for pulling you into our BZs all the time, but opinions on #2? Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team. Thank you. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |