:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: TEST PROTOCOL :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Package : rear syslinux-extlinux syslinux-nonlinux xorriso Installed : rear-snapshot-1.20240614133736290616.pr3250.2.g46ab1738.fc40.x86_64 beakerlib RPM : beakerlib-1.29.3-5.fc40.noarch Test name : Test started : 2024-06-14 13:42:50 UTC Test finished : Test duration : Distro : Fedora release 40 (Forty) Hostname : ip-172-31-16-75.us-east-2.compute.internal Architecture : unknown CPUs : 2 x AMD EPYC 7R13 Processor RAM size : 3807 MB HDD size : 297.80 GB :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test description :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: PURPOSE of /CoreOS/rear/Sanity/make-backup-and-restore-iso Description: Test basic functionality of ReaR on systems with BIOS using bootable ISO image Author: Lukáš Zaoral :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Assert that all required RPMs are installed :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 13:42:50 ] :: [ PASS ] :: Checking for the presence of rear rpm :: [ 13:42:50 ] :: [ LOG ] :: Package versions: :: [ 13:42:50 ] :: [ LOG ] :: rear-snapshot-1.20240614133736290616.pr3250.2.g46ab1738.fc40.x86_64 :: [ 13:42:50 ] :: [ PASS ] :: Checking for the presence of syslinux-extlinux rpm :: [ 13:42:50 ] :: [ LOG ] :: Package versions: :: [ 13:42:50 ] :: [ LOG ] :: syslinux-extlinux-6.04-0.26.fc40.x86_64 :: [ 13:42:50 ] :: [ PASS ] :: Checking for the presence of syslinux-nonlinux rpm :: [ 13:42:50 ] :: [ LOG ] :: Package versions: :: [ 13:42:50 ] :: [ LOG ] :: syslinux-nonlinux-6.04-0.26.fc40.noarch :: [ 13:42:50 ] :: [ PASS ] :: Checking for the presence of xorriso rpm :: [ 13:42:50 ] :: [ LOG ] :: Package versions: :: [ 13:42:50 ] :: [ LOG ] :: xorriso-1.5.6-5.fc40.x86_64 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 4 good, 0 bad :: RESULT: PASS (Assert that all required RPMs are installed) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Create /etc/rear/local.conf :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 13:42:51 ] :: [ INFO ] :: using '/var/ARTIFACTS/work-backup-and-restore9b6fnl61/tests/plans/backup-and-restore/execute/data/guest/default-0/make-backup-and-restore-iso-1/backup' as backup destination :: [ 13:42:51 ] :: [ LOG ] :: Output of 'echo 'OUTPUT=ISO SSH_FILES=no FIRMWARE_FILES=( no ) BACKUP=NETFS BACKUP_URL=iso:///backup OUTPUT_URL=null USER_INPUT_TIMEOUT=10 # 4gb backup limit PRE_RECOVERY_SCRIPT=("mkdir /tmp/mnt;" "mount /dev/nvme0n1p4 -o subvol=/var /tmp/mnt/;" "modprobe brd rd_nr=1 rd_size=2097152;" "dd if=/tmp/mnt//lib/rear/output/rear-ip-172-31-16-75.iso of=/dev/ram0;" "umount /tmp/mnt/;") ISO_FILE_SIZE_LIMIT=4294967296 ISO_DEFAULT=automatic ISO_RECOVER_MODE=unattended' | tee /etc/rear/local.conf': :: [ 13:42:51 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 13:42:51 ] :: [ LOG ] :: OUTPUT=ISO :: [ 13:42:51 ] :: [ LOG ] :: SSH_FILES=no :: [ 13:42:51 ] :: [ LOG ] :: FIRMWARE_FILES=( no ) :: [ 13:42:51 ] :: [ LOG ] :: BACKUP=NETFS :: [ 13:42:51 ] :: [ LOG ] :: BACKUP_URL=iso:///backup :: [ 13:42:51 ] :: [ LOG ] :: OUTPUT_URL=null :: [ 13:42:51 ] :: [ LOG ] :: USER_INPUT_TIMEOUT=10 :: [ 13:42:51 ] :: [ LOG ] :: # 4gb backup limit :: [ 13:42:51 ] :: [ LOG ] :: PRE_RECOVERY_SCRIPT=("mkdir /tmp/mnt;" "mount /dev/nvme0n1p4 -o subvol=/var /tmp/mnt/;" "modprobe brd rd_nr=1 rd_size=2097152;" "dd if=/tmp/mnt//lib/rear/output/rear-ip-172-31-16-75.iso of=/dev/ram0;" "umount /tmp/mnt/;") :: [ 13:42:51 ] :: [ LOG ] :: ISO_FILE_SIZE_LIMIT=4294967296 :: [ 13:42:51 ] :: [ LOG ] :: ISO_DEFAULT=automatic :: [ 13:42:51 ] :: [ LOG ] :: ISO_RECOVER_MODE=unattended :: [ 13:42:51 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 13:42:51 ] :: [ PASS ] :: Creating basic configuration file (Expected 0, got 0) :: [ 13:42:51 ] :: [ PASS ] :: File /etc/rear/local.conf should exist :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Create /etc/rear/local.conf) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 13:42:51 ] :: [ LOG ] :: Output of 'lsblk | tee /root/drive_layout.old': :: [ 13:42:51 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 13:42:51 ] :: [ LOG ] :: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS :: [ 13:42:51 ] :: [ LOG ] :: zram0 252:0 0 3.7G 0 disk [SWAP] :: [ 13:42:51 ] :: [ LOG ] :: nvme0n1 259:0 0 100G 0 disk :: [ 13:42:51 ] :: [ LOG ] :: ├─nvme0n1p1 259:1 0 2M 0 part :: [ 13:42:51 ] :: [ LOG ] :: ├─nvme0n1p2 259:2 0 100M 0 part /boot/efi :: [ 13:42:51 ] :: [ LOG ] :: ├─nvme0n1p3 259:3 0 1000M 0 part /boot :: [ 13:42:51 ] :: [ LOG ] :: └─nvme0n1p4 259:4 0 98.9G 0 part /var :: [ 13:42:51 ] :: [ LOG ] :: /home :: [ 13:42:51 ] :: [ LOG ] :: / :: [ 13:42:51 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 13:42:51 ] :: [ PASS ] :: Store lsblk output in recovery image (Expected 0, got 0) :: [ 13:42:51 ] :: [ PASS ] :: File /root/drive_layout.old should exist :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Test) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Run rear mkbackup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 13:42:51 ] :: [ PASS ] :: Command 'export TMPDIR='/var/tmp'' (Expected 0, got 0) :: [ 13:44:29 ] :: [ LOG ] :: Output of '/usr/sbin/rear -d mkbackup': :: [ 13:44:29 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 13:44:29 ] :: [ LOG ] :: Using autodetected kernel '/boot/vmlinuz-6.8.11-300.fc40.x86_64' as kernel in the recovery system :: [ 13:44:29 ] :: [ LOG ] :: Modified ReaR recovery system area after 'prep' stage (/var/tmp/rear.kJDfkOZBvxkvOit/rootfs contains regular files) :: [ 13:44:29 ] :: [ LOG ] :: Running 'layout/save' stage ====================== :: [ 13:44:29 ] :: [ LOG ] :: Creating disk layout :: [ 13:44:29 ] :: [ LOG ] :: Disabling excluded components in /var/lib/rear/layout/disklayout.conf :: [ 13:44:29 ] :: [ LOG ] :: Using sysconfig bootloader 'grub2-efi' for 'rear recover' :: [ 13:44:29 ] :: [ LOG ] :: Skip saving storage layout as 'barrel' devicegraph (no 'barrel' command) :: [ 13:44:29 ] :: [ LOG ] :: Verifying that the entries in /var/lib/rear/layout/disklayout.conf are correct :: [ 13:44:29 ] :: [ LOG ] :: Created disk layout (check the results in /var/lib/rear/layout/disklayout.conf) :: [ 13:44:29 ] :: [ LOG ] :: Running 'rescue' stage ====================== :: [ 13:44:29 ] :: [ LOG ] :: Creating recovery system root filesystem skeleton layout :: [ 13:44:29 ] :: [ LOG ] :: Adding 'net.ifnames=0' to KERNEL_CMDLINE :: [ 13:44:29 ] :: [ LOG ] :: Adding 'console=tty1' to KERNEL_CMDLINE :: [ 13:44:29 ] :: [ LOG ] :: Adding 'console=ttyS0,115200n8' to KERNEL_CMDLINE :: [ 13:44:29 ] :: [ LOG ] :: Handling network interface 'eth0' :: [ 13:44:29 ] :: [ LOG ] :: eth0 is a physical device :: [ 13:44:29 ] :: [ LOG ] :: Handled network interface 'eth0' :: [ 13:44:29 ] :: [ LOG ] :: Skipping 'lo': not bound to any physical interface. :: [ 13:44:29 ] :: [ LOG ] :: Included current keyboard mapping (via 'dumpkeys -f') :: [ 13:44:29 ] :: [ LOG ] :: Included default US keyboard mapping /lib/kbd/keymaps/legacy/i386/qwerty/defkeymap.map.gz :: [ 13:44:29 ] :: [ LOG ] :: Included other keyboard mappings in /lib/kbd/keymaps :: [ 13:44:29 ] :: [ LOG ] :: Copying logfile /var/log/rear/rear-ip-172-31-16-75.log into initramfs as '/tmp/rear-ip-172-31-16-75-partial-2024-06-14T13:42:56+00:00.log' :: [ 13:44:29 ] :: [ LOG ] :: Running 'build' stage ====================== :: [ 13:44:29 ] :: [ LOG ] :: Copying files and directories :: [ 13:44:29 ] :: [ LOG ] :: Copying binaries and libraries :: [ 13:44:29 ] :: [ LOG ] :: Copying all kernel modules in /lib/modules/6.8.11-300.fc40.x86_64 (MODULES contains 'all_modules') :: [ 13:44:29 ] :: [ LOG ] :: Failed to copy all contents of /lib/modules/6.8.11-300.fc40.x86_64 (dangling symlinks could be a reason) :: [ 13:44:29 ] :: [ LOG ] :: Omit copying files in /lib*/firmware/ (FIRMWARE_FILES='no') :: [ 13:44:29 ] :: [ LOG ] :: Skip copying broken symlink '/etc/mtab' target '/proc/13450/mounts' on /proc/ /sys/ /dev/ or /run/ :: [ 13:44:29 ] :: [ LOG ] :: Testing that the recovery system in /var/tmp/rear.kJDfkOZBvxkvOit/rootfs contains a usable system :: [ 13:44:29 ] :: [ LOG ] :: Testing each binary with 'ldd' and look for 'not found' libraries within the recovery system :: [ 13:44:29 ] :: [ LOG ] :: /usr/lib64/systemd/libsystemd-core-255.7-1.fc40.so requires libraries were 'ldd' shows 'not found' :: [ 13:44:29 ] :: [ LOG ] :: /usr/lib64/systemd/libsystemd-core-255.7-1.fc40.so requires libsystemd-shared-255.7-1.fc40.so which was not found by 'ldd' but exists as /var/tmp/rear.kJDfkOZBvxkvOit/rootfs/usr/lib64/systemd/libsystemd-shared-255.7-1.fc40.so :: [ 13:44:29 ] :: [ LOG ] :: Testing that the existing programs in the PROGS array can be found as executable command within the recovery system :: [ 13:44:29 ] :: [ LOG ] :: Testing that each program in the REQUIRED_PROGS array can be found as executable command within the recovery system :: [ 13:44:29 ] :: [ LOG ] :: Running 'pack' stage ====================== :: [ 13:44:29 ] :: [ LOG ] :: Creating recovery/rescue system initramfs/initrd initrd.cgz with gzip default compression :: [ 13:44:29 ] :: [ LOG ] :: Created initrd.cgz with gzip default compression (102 MiB) in 7 seconds :: [ 13:44:29 ] :: [ LOG ] :: Running 'backup' stage ====================== :: [ 13:44:29 ] :: [ LOG ] :: Making backup (using backup method NETFS) :: [ 13:44:29 ] :: [ LOG ] :: Creating tar archive '/var/tmp/rear.kJDfkOZBvxkvOit/tmp/isofs/backup/backup.tar.gz' :: [ 13:44:29 ] :: [ LOG ] :: Preparing archive operationOK :: [ 13:44:29 ] :: [ LOG ] :: Archived 357 MiB in 51 seconds [avg 7178 KiB/sec] :: [ 13:44:29 ] :: [ LOG ] :: Running 'output' stage ====================== :: [ 13:44:29 ] :: [ LOG ] :: Searching whole /usr for SYSLINUX modules directory (you may specify SYSLINUX_MODULES_DIR) :: [ 13:44:29 ] :: [ LOG ] :: Making ISO image :: [ 13:44:29 ] :: [ LOG ] :: Wrote ISO image: /var/lib/rear/output/rear-ip-172-31-16-75.iso (486M) :: [ 13:44:29 ] :: [ LOG ] :: Exiting rear mkbackup (PID 4545) and its descendant processes ... :: [ 13:44:29 ] :: [ LOG ] :: Running exit tasks :: [ 13:44:29 ] :: [ LOG ] :: To remove the build area you may use (with caution): rm -Rf --one-file-system /var/tmp/rear.kJDfkOZBvxkvOit :: [ 13:44:29 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 13:44:29 ] :: [ PASS ] :: Creating backup to /var/lib/rear/output (Expected 0, got 0) :: [ 13:44:29 ] :: [ INFO ] :: Sending /var/log/rear/rear-ip-172-31-16-75.log as rear-mkbackup.log :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 98s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Run rear mkbackup) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Create dummy file :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 13:44:29 ] :: [ PASS ] :: Create dummy file to be removed by recovery (Expected 0, got 0) :: [ 13:44:29 ] :: [ PASS ] :: File /root/recovery_will_remove_me should exist :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Create dummy file) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Make small iso file that is bootable by memdisk :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 13:44:31 ] :: [ PASS ] :: Command 'xorriso -as mkisofs -r -V 'REAR-ISO' -J -J -joliet-long -cache-inodes -b isolinux/isolinux.bin -c isolinux/boot.cat -boot-load-size 4 -boot-info-table -no-emul-boot -eltorito-alt-boot -dev /var/lib/rear/output/rear-ip-172-31-16-75.iso -o /var/lib/rear/output/rear-rescue-only.iso -- -rm_r backup' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 2s :: Assertions: 1 good, 0 bad :: RESULT: PASS (Make small iso file that is bootable by memdisk) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Force the machine to autoboot the ReaR rescue system :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 13:44:31 ] :: [ PASS ] :: Copying memdisk (Expected 0, got 0) :: [ 13:44:31 ] :: [ PASS ] :: Setup GRUB (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Force the machine to autoboot the ReaR rescue system)