:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: TEST PROTOCOL :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Package : rear syslinux-extlinux syslinux-nonlinux xorriso Installed : rear-snapshot-1.20240612143040317624.pr3245.1.g89c24abe.fc40.x86_64 beakerlib RPM : beakerlib-1.29.3-5.fc40.noarch Test name : Test started : 2024-06-12 14:48:15 UTC Test finished : Test duration : Distro : Fedora release 40 (Forty) Hostname : ip-172-31-23-181.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 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 14:48:15 ] :: [ PASS ] :: Checking for the presence of rear rpm :: [ 14:48:15 ] :: [ LOG ] :: Package versions: :: [ 14:48:15 ] :: [ LOG ] :: rear-snapshot-1.20240612143040317624.pr3245.1.g89c24abe.fc40.x86_64 :: [ 14:48:15 ] :: [ PASS ] :: Checking for the presence of syslinux-extlinux rpm :: [ 14:48:16 ] :: [ LOG ] :: Package versions: :: [ 14:48:16 ] :: [ LOG ] :: syslinux-extlinux-6.04-0.26.fc40.x86_64 :: [ 14:48:16 ] :: [ PASS ] :: Checking for the presence of syslinux-nonlinux rpm :: [ 14:48:16 ] :: [ LOG ] :: Package versions: :: [ 14:48:16 ] :: [ LOG ] :: syslinux-nonlinux-6.04-0.26.fc40.noarch :: [ 14:48:16 ] :: [ PASS ] :: Checking for the presence of xorriso rpm :: [ 14:48:16 ] :: [ LOG ] :: Package versions: :: [ 14:48:16 ] :: [ LOG ] :: xorriso-1.5.6-5.fc40.x86_64 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 1s :: Assertions: 4 good, 0 bad :: RESULT: PASS (Assert that all required RPMs are installed) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Create /etc/rear/local.conf :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 14:48:16 ] :: [ INFO ] :: using '/var/ARTIFACTS/work-backup-and-restorei10xvj4m/tests/plans/backup-and-restore/execute/data/guest/default-0/make-backup-and-restore-iso-1/backup' as backup destination :: [ 14:48:16 ] :: [ 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-23-181.iso of=/dev/ram0;" "umount /tmp/mnt/;") ISO_FILE_SIZE_LIMIT=4294967296 ISO_DEFAULT=automatic ISO_RECOVER_MODE=unattended' | tee /etc/rear/local.conf': :: [ 14:48:16 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 14:48:16 ] :: [ LOG ] :: OUTPUT=ISO :: [ 14:48:16 ] :: [ LOG ] :: SSH_FILES=no :: [ 14:48:16 ] :: [ LOG ] :: FIRMWARE_FILES=( no ) :: [ 14:48:16 ] :: [ LOG ] :: BACKUP=NETFS :: [ 14:48:16 ] :: [ LOG ] :: BACKUP_URL=iso:///backup :: [ 14:48:16 ] :: [ LOG ] :: OUTPUT_URL=null :: [ 14:48:16 ] :: [ LOG ] :: USER_INPUT_TIMEOUT=10 :: [ 14:48:16 ] :: [ LOG ] :: # 4gb backup limit :: [ 14:48:16 ] :: [ 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-23-181.iso of=/dev/ram0;" "umount /tmp/mnt/;") :: [ 14:48:16 ] :: [ LOG ] :: ISO_FILE_SIZE_LIMIT=4294967296 :: [ 14:48:16 ] :: [ LOG ] :: ISO_DEFAULT=automatic :: [ 14:48:16 ] :: [ LOG ] :: ISO_RECOVER_MODE=unattended :: [ 14:48:16 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 14:48:16 ] :: [ PASS ] :: Creating basic configuration file (Expected 0, got 0) :: [ 14:48:16 ] :: [ PASS ] :: File /etc/rear/local.conf should exist :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Create /etc/rear/local.conf) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 14:48:16 ] :: [ LOG ] :: Output of 'lsblk | tee /root/drive_layout.old': :: [ 14:48:16 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 14:48:16 ] :: [ LOG ] :: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS :: [ 14:48:16 ] :: [ LOG ] :: zram0 252:0 0 3.7G 0 disk [SWAP] :: [ 14:48:16 ] :: [ LOG ] :: nvme0n1 259:0 0 100G 0 disk :: [ 14:48:16 ] :: [ LOG ] :: ├─nvme0n1p1 259:1 0 2M 0 part :: [ 14:48:16 ] :: [ LOG ] :: ├─nvme0n1p2 259:2 0 100M 0 part /boot/efi :: [ 14:48:16 ] :: [ LOG ] :: ├─nvme0n1p3 259:3 0 1000M 0 part /boot :: [ 14:48:16 ] :: [ LOG ] :: └─nvme0n1p4 259:4 0 98.9G 0 part /home :: [ 14:48:16 ] :: [ LOG ] :: /var :: [ 14:48:16 ] :: [ LOG ] :: / :: [ 14:48:16 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 14:48:16 ] :: [ PASS ] :: Store lsblk output in recovery image (Expected 0, got 0) :: [ 14:48:16 ] :: [ PASS ] :: File /root/drive_layout.old should exist :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 0s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Test) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Run rear mkbackup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 14:48:16 ] :: [ PASS ] :: Command 'export TMPDIR='/var/tmp'' (Expected 0, got 0) :: [ 14:49:53 ] :: [ LOG ] :: Output of '/usr/sbin/rear -d mkbackup': :: [ 14:49:53 ] :: [ LOG ] :: --------------- OUTPUT START --------------- :: [ 14:49:53 ] :: [ LOG ] :: Modified ReaR recovery system area after 'prep' stage (/var/tmp/rear.W6td9J7FFja4jG5/rootfs contains regular files) :: [ 14:49:53 ] :: [ LOG ] :: Running 'layout/save' stage ====================== :: [ 14:49:53 ] :: [ LOG ] :: Creating disk layout :: [ 14:49:53 ] :: [ LOG ] :: Disabling excluded components in /var/lib/rear/layout/disklayout.conf :: [ 14:49:53 ] :: [ LOG ] :: Using sysconfig bootloader 'grub2-efi' for 'rear recover' :: [ 14:49:53 ] :: [ LOG ] :: Skip saving storage layout as 'barrel' devicegraph (no 'barrel' command) :: [ 14:49:53 ] :: [ LOG ] :: Verifying that the entries in /var/lib/rear/layout/disklayout.conf are correct :: [ 14:49:53 ] :: [ LOG ] :: Created disk layout (check the results in /var/lib/rear/layout/disklayout.conf) :: [ 14:49:53 ] :: [ LOG ] :: Running 'rescue' stage ====================== :: [ 14:49:53 ] :: [ LOG ] :: Creating recovery system root filesystem skeleton layout :: [ 14:49:53 ] :: [ LOG ] :: Adding 'net.ifnames=0' to KERNEL_CMDLINE :: [ 14:49:53 ] :: [ LOG ] :: Adding 'console=tty1' to KERNEL_CMDLINE :: [ 14:49:53 ] :: [ LOG ] :: Adding 'console=ttyS0,115200n8' to KERNEL_CMDLINE :: [ 14:49:53 ] :: [ LOG ] :: Handling network interface 'eth0' :: [ 14:49:53 ] :: [ LOG ] :: eth0 is a physical device :: [ 14:49:53 ] :: [ LOG ] :: Handled network interface 'eth0' :: [ 14:49:53 ] :: [ LOG ] :: Skipping 'lo': not bound to any physical interface. :: [ 14:49:53 ] :: [ LOG ] :: Included current keyboard mapping (via 'dumpkeys -f') :: [ 14:49:53 ] :: [ LOG ] :: Included default US keyboard mapping /lib/kbd/keymaps/legacy/i386/qwerty/defkeymap.map.gz :: [ 14:49:53 ] :: [ LOG ] :: Included other keyboard mappings in /lib/kbd/keymaps :: [ 14:49:53 ] :: [ LOG ] :: Copying logfile /var/log/rear/rear-ip-172-31-23-181.log into initramfs as '/tmp/rear-ip-172-31-23-181-partial-2024-06-12T14:48:21+00:00.log' :: [ 14:49:53 ] :: [ LOG ] :: Running 'build' stage ====================== :: [ 14:49:53 ] :: [ LOG ] :: Copying files and directories :: [ 14:49:53 ] :: [ LOG ] :: Copying binaries and libraries :: [ 14:49:53 ] :: [ LOG ] :: Copying all kernel modules in /lib/modules/6.8.11-300.fc40.x86_64 (MODULES contains 'all_modules') :: [ 14:49:53 ] :: [ LOG ] :: Failed to copy all contents of /lib/modules/6.8.11-300.fc40.x86_64 (dangling symlinks could be a reason) :: [ 14:49:53 ] :: [ LOG ] :: Omit copying files in /lib*/firmware/ (FIRMWARE_FILES='no') :: [ 14:49:53 ] :: [ LOG ] :: Skip copying broken symlink '/etc/mtab' target '/proc/13428/mounts' on /proc/ /sys/ /dev/ or /run/ :: [ 14:49:53 ] :: [ LOG ] :: Testing that the recovery system in /var/tmp/rear.W6td9J7FFja4jG5/rootfs contains a usable system :: [ 14:49:53 ] :: [ LOG ] :: Testing each binary with 'ldd' and look for 'not found' libraries within the recovery system :: [ 14:49:53 ] :: [ LOG ] :: /usr/lib64/systemd/libsystemd-core-255.7-1.fc40.so requires additional libraries :: [ 14:49:53 ] :: [ LOG ] :: libsystemd-shared-255.7-1.fc40.so => not found :: [ 14:49:53 ] :: [ LOG ] :: ReaR recovery system in '/var/tmp/rear.W6td9J7FFja4jG5/rootfs' needs additional libraries, check /var/log/rear/rear-ip-172-31-23-181.log for details :: [ 14:49:53 ] :: [ LOG ] :: Testing that the existing programs in the PROGS array can be found as executable command within the recovery system :: [ 14:49:53 ] :: [ LOG ] :: Testing that each program in the REQUIRED_PROGS array can be found as executable command within the recovery system :: [ 14:49:53 ] :: [ LOG ] :: Running 'pack' stage ====================== :: [ 14:49:53 ] :: [ LOG ] :: Creating recovery/rescue system initramfs/initrd initrd.cgz with gzip default compression :: [ 14:49:53 ] :: [ LOG ] :: Created initrd.cgz with gzip default compression (102 MiB) in 8 seconds :: [ 14:49:53 ] :: [ LOG ] :: Running 'backup' stage ====================== :: [ 14:49:53 ] :: [ LOG ] :: Making backup (using backup method NETFS) :: [ 14:49:53 ] :: [ LOG ] :: Creating tar archive '/var/tmp/rear.W6td9J7FFja4jG5/tmp/isofs/backup/backup.tar.gz' :: [ 14:49:53 ] :: [ LOG ] :: Preparing archive operationOK :: [ 14:49:53 ] :: [ LOG ] :: Archived 357 MiB in 48 seconds [avg 7632 KiB/sec] :: [ 14:49:53 ] :: [ LOG ] :: Running 'output' stage ====================== :: [ 14:49:53 ] :: [ LOG ] :: Searching whole /usr for SYSLINUX modules directory (you may specify SYSLINUX_MODULES_DIR) :: [ 14:49:53 ] :: [ LOG ] :: Making ISO image :: [ 14:49:53 ] :: [ LOG ] :: Wrote ISO image: /var/lib/rear/output/rear-ip-172-31-23-181.iso (486M) :: [ 14:49:53 ] :: [ LOG ] :: Exiting rear mkbackup (PID 4526) and its descendant processes ... :: [ 14:49:53 ] :: [ LOG ] :: Running exit tasks :: [ 14:49:53 ] :: [ LOG ] :: To remove the build area you may use (with caution): rm -Rf --one-file-system /var/tmp/rear.W6td9J7FFja4jG5 :: [ 14:49:53 ] :: [ LOG ] :: --------------- OUTPUT END --------------- :: [ 14:49:53 ] :: [ PASS ] :: Creating backup to /var/lib/rear/output (Expected 0, got 0) :: [ 14:49:53 ] :: [ INFO ] :: Sending /var/log/rear/rear-ip-172-31-23-181.log as rear-mkbackup.log :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 97s :: Assertions: 2 good, 0 bad :: RESULT: PASS (Run rear mkbackup) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Create dummy file :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 14:49:53 ] :: [ PASS ] :: Create dummy file to be removed by recovery (Expected 0, got 0) :: [ 14:49:53 ] :: [ 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 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 14:49:54 ] :: [ 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-23-181.iso -o /var/lib/rear/output/rear-rescue-only.iso -- -rm_r backup' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 1s :: 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 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 14:49:54 ] :: [ PASS ] :: Copying memdisk (Expected 0, got 0) :: [ 14:49:54 ] :: [ 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)