The node booted from the ISO image generated by ReaR is configured with only ctlplane network

Solution In Progress - Updated -

Environment

  • Red Hat OpenStack Platform 16.1
  • Red Hat Enterprise Linux 8
  • ReaR

Issue

  • The following error occurred when running rear recover.
ERROR: Mount command 'mount -v -t nfs -o rw,noatime 192.168.0.1:/ctl_plane_backups /tmp/rear.29i9xRoXztZoD5b/outputfs' failed.
  • NFS server resides on a VLAN network.

Resolution

  • Add the parameter MODULES=( 'all_modules' ) to /etc/rear/local.conf on the target Controller node.
    /etc/rear/local.conf:
...
OUTPUT_URL=nfs://192.168.0.1/ctl_plane_backups
ISO_PREFIX=overcloud-controller-0
BACKUP_PROG_OPTIONS+=( --anchored --xattrs-include='*.*' --xattrs )
BACKUP_PROG_EXCLUDE=( '/data/*' '/tmp/*' '/ctl_plane_backups/*' )
BACKUP_URL=nfs://192.168.10.203/ctl_plane_backups
ISO_DEFAULT="automatic"
USING_UEFI_BOOTLOADER=1
OUTPUT=ISO
BACKUP=NETFS
BACKUP_PROG_COMPRESS_OPTIONS=( --gzip)
BACKUP_PROG_COMPRESS_SUFFIX=".gz"
MODULES=( 'all_modules' )         <==(*)
  • Backup the Controller nodes in Director.
  • Start the Controller node from the ISO image generated by the backup, and execute the following commands in rescue mode.
    (*)The following shows ens20 as the target NIC for creating VLAN interfaces.
# ip link add link ens20 name ens20.110 type vlan id 110
# ip addr add 172.16.11.201/255.255.255.0 dev ens20.110
# ip link set dev ens20 up
# ip link set ens20.110 up

Root Cause

  • The node booted from the ISO image generated by ReaR is configured with only ctlplane network.
  • If the backup server is not on the ctlplane network, the Network Interface must be configured during restore.
  • ReaR's Rescue mode does not load the 8021q module, so the VLAN interface cannot be created in default's configuration.
  • Set MODULES=( 'all_modules' ) to add 8021q module when creating backup image in ReaR.
  • Related Issue: Bug 1888437

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments