Bug 2066349
Summary: | [RFE] Leave free space at the end of the overcloud-hardened-uefi-full image | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Juan Larriba <jlarriba> |
Component: | openstack-tripleo-image-elements | Assignee: | Steve Baker <sbaker> |
Status: | CLOSED ERRATA | QA Contact: | nlevinki <nlevinki> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 17.1 (Wallaby) | CC: | apevec, bdobreli, fdiazbra, fpantano, grosenbe, igallagh, jkreger, jparoly, jpretori, mariel, mburns, pweeks, rlandy, sbaker, spower |
Target Milestone: | beta | Keywords: | FutureFeature, Triaged |
Target Release: | 17.1 | Flags: | fdiazbra:
needinfo-
|
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-tripleo-image-elements-13.1.3-1.20221022033813.cfc336b.el8ost | Doc Type: | Enhancement |
Doc Text: |
With this enhancement, the LVM volumes installed by the `overcloud-hardened-uefi-full.qcow2` whole disk overcloud image are now backed by a thin pool. The volumes are still grown to consume the available physical storage, but are not over-provisioned by default.
+
The benefits of thin-provisioned logical volumes:
+
* If a volume fills to capacity, the options for manual intervention now include growing the volume to over-provision the physical storage capacity.
* The RHOSP upgrades process can now create ephemeral backup volumes in thin-provisioned environments.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2023-08-16 01:11:06 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: | |||
Bug Depends On: | |||
Bug Blocks: | 2069624 |
Description
Juan Larriba
2022-03-21 14:57:00 UTC
Partition sizes on the built image only need to be big enough for the image installed contents. When the image is deployed to baremetal the volumes are expanded using the growvols[1] utility which can be given custom grow values[2] based on percentage of remaining disk or absolute values. The default growvols arguments are: /=8GB /tmp=1GB /var/log=10GB /var/log/audit=2GB /home=1GB /var=100% I think we need a clearer idea of snapshot space requirements, 20% takes a lot of space meant for /var. Maybe not that much is required when it only ever needs to handle short-lived thin snapshots for upgrade tasks. Ideally the size can be expressed in absolute terms instead of a percentage. Making /var smaller has an impact in CI with small disks, see [3]. There is actually quite a bit of development required here, I think it will require an RFE and getting it into 17.0 would be a big stretch. The tasks would be something like: - create a small lv_snapshots on the image, just like lv_srv - decide on growvols defaults to grow lv_snapshots, ideally in absolute storage, not percentage - ensure growvols supports growing a volume even when it doesn't have a mount point - manage the CI breakage for cases where /var is no longer big enough Only then would you have an empty volume which can be replaced by upgrade activity with whatever snapshot volumes you require. [1] https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_builder/elements/growvols/README.rst [2] https://docs.openstack.org/project-deploy-guide/tripleo-docs/latest/provisioning/baremetal_provision.html#grow-volumes-playbook [3] https://trello.com/c/KPJoaarA/2402-cixpipelineosp17ceph-rhel9-ceph-storage-nodes-run-out-of-space-pulling-ceph-container That seems like a plan to me. I think it might be a little optimistic trying to get this into 17.0, but it might be worth. I will discuss it with the rest of the team to check on the real priority this could be given. To get an absolute number for the lv_snapshots storage first we need to do some tests, as for now we do not really know how much snapshot space an upgrade will take. It is not easy to find out, as 16.2 does not provide LVM-enabled images, so we cannot test the snapshots from 16.1 to 17.0. And from 17.0 we still cannot upgrade to 17.1 which does not exist yet. Let's see how can we get to it. We are currently working on this feature for 17.1, taking in account your suggestion of having an lv_snapshots lv created that the backup and restore procedure will delete to get free space so it can create the snapshots in. I have been consulting with the rest of the Upgrades people and, even we have no hard data, we think that 16GB should be enough space to do an upgrade. Would it be possible to add a 16GB lv_snapshots logical volume on 17.1 hardened uefi images? The changes have now merged in master, now tracking the wallaby backports *** Bug 2106154 has been marked as a duplicate of this bug. *** This has been implemented with thin provisioning, so the VG is fully consumed by the thin pool called lv_thinpool. You can create new volumes or snapshots backed by that pool, see the RHEL-9 docs: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_logical_volumes/creating-and-managing-thin-provisioned-volumes_configuring-and-managing-logical-volumes#doc-wrapper Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2023:4577 |