Bug 2073374 - [17.0] Support doing backups of empty LVM volumegroups
Summary: [17.0] Support doing backups of empty LVM volumegroups
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Juan Larriba
QA Contact: myadla
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-08 10:33 UTC by Juan Larriba
Modified: 2022-09-21 12:21 UTC (History)
0 users

Fixed In Version: tripleo-ansible-3.3.1-0.20220513002809.47d0ab5.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:20:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-14584 0 None None None 2022-04-08 10:36:37 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:21:18 UTC

Description Juan Larriba 2022-04-08 10:33:19 UTC
ReaR does not currently support the backup of empty volumegroups (vgs) in an lvm setup. This means that if a vg is just free space without any lv created, it refuses to take a backup of just free space due to the incapacity of doing the restoration.

In RHOSP 17.0 there is one node that has precisely an empty vg called /dev/cinder-volumes. When ReaR tries to verify the disk layout to take the backup of the node, it fails:

2022-04-08 10:14:35.986711968 Verifying that the 'part' entries for /dev/vda in /var/lib/rear/layout/disklayout.conf specify consecutive partitions
2022-04-08 10:14:35.990255874 Verifying that the 'lvm...' entries in /var/lib/rear/layout/disklayout.conf are correct
2022-04-08 10:14:36.028014189 LVM no 'lvmvol /dev/cinder-volumes' for 'lvmdev /dev/cinder-volumes'
2022-04-08 10:14:36.040790096 ERROR:
====================
BUG in /usr/share/rear/layout/save/default/950_verify_disklayout_file.sh line 254:
'Entries in /var/lib/rear/layout/disklayout.conf are broken ('rear recover' would fail)'
--------------------
Please report this issue at https://github.com/rear/rear/issues
and include the relevant parts from /var/log/rear/rear-controller-0.log
preferably with full debug information via 'rear -D mkbackup'
====================

Comment 1 Juan Larriba 2022-04-11 11:30:19 UTC
After a conversation with Cinder team, this problem only exists when the deployment type is "lvm", which stores volumes only on one of the controllers. This setup does not offer high-availability or failover capabilities so it is not supported in production setups.

It is even highlighted on the Storage documentation, section 2.1 [1]:

Red Hat OpenStack Platform supports Red Hat Ceph and NFS as Block Storage (cinder) back ends. By default, the Block Storage service uses an LVM back end as a repository for volumes. While this back end is suitable for test environments, LVM is not supported in production environments.

With this information available, as non-production setups are not supported by B&R, the process will ignore the cinder-volumes if it encounters them. This will make the backup and restore process not to fail in case of an "lvm" setup, but at the cost of losing the volumes that might have been stored in the cinder-volumes vg. This is also reasonable because those would entail backuping and restoring workloads, which is also out-of-scope. 

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html/storage_guide/assembly-configuring-the-block-storage-service_osp-storage-guide#con-block-storage-back-ends_configuring-cinder

Comment 7 errata-xmlrpc 2022-09-21 12:20:36 UTC
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.0 (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-2022:6543


Note You need to log in before you can comment on or make changes to this bug.