os-autoinst-distri-rocky/tests
Adam Williamson 33ac181955 Use mirrorlist instead of baseurl for updates tests
The reason we have all this horrible code to use the commented-
out baseurl lines in the repo files instead of the metalinks
that are usually used is a timing issue with the metalink
system. As a protection against stale mirrors, the metalink
system sends the package manager a list of mirrors *and a list
of recent checksums for the repo metadata*. The package manager
goes out and gets the metadata from the first mirror on the
list, then checksums it; if the checksum isn't on the list of
checksums it got from mirrormanager, it assumes that means the
mirror is stale, and tries the next on the list instead.

The problem is that MM's list of checksums is currently only
updated once an hour (by a cron job). So we kept running into
a problem where, when a test ran just after one of the repos
had been regenerated, the infra mirror it's supposed to use
would be rejected because the checksum wasn't on the list - but
not because the mirror was stale, but because it was too fresh,
it had got the new packages and metadata but mirrormanager's
list of checksums hadn't been updated to include the checksum
for the latest metadata.

All this baseurl munging code was getting ridiculous, though,
what with the tests getting more complicated and errors showing
up in the actual repo files and stuff. It occurred to me that
instead of using the baseurl we can just use the 'mirrorlist'
system instead of 'metalink'. mirrorlist is the dumber, older
system which just provides the package manager a list of mirrors
and nothing else - the whole stale-mirror-detection-checksum
thing does not happen with mirrorlists, the package manager just
tries all the mirrors in order and uses the first that works.
And happily, it's very easy to convert the metalink URLs into
mirrorlist URLs, and it saves all that faffing around trying to
fix up baseurls.

Also, adjust upgrade_boot to do the s/metalink/mirrorlist/
substitution, so upgrade tests don't run into the timing issue
in the steps before the main repo_setup run is done by
upgrade_run, and adjust repo_setup_compose to sub this line out
later.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-05-18 16:41:13 -07:00
..
_advisory_post.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
_advisory_update.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
_anaconda_network_static.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
_boot_to_anaconda.pm Click on language select screen (RHBZ #1566066) 2018-04-25 15:04:52 -07:00
_check_install_source.pm _check_install_source: handle 'added repo' and 'enabled repo' 2018-05-07 15:50:47 -07:00
_collect_data.pm Move collect_data and console_shutdown to tty4... 2018-03-09 22:06:18 -08:00
_console_avc_crash.pm Upload all logs when AVCs and/or crashes detected 2017-09-05 09:35:59 -07:00
_console_login.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
_console_shutdown.pm Move collect_data and console_shutdown to tty4... 2018-03-09 22:06:18 -08:00
_console_wait_login_2.pm Workaround issues with loading same module more than once 2017-04-18 10:38:16 -07:00
_console_wait_login.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
_do_install_and_reboot.pm chpasswd -R is blocked by SELinux, sigh... 2018-03-09 17:06:01 -08:00
_graphical_input_2.pm Workaround issues with loading same module more than once 2017-04-18 10:38:16 -07:00
_graphical_input.pm Tweak _graphical_input to work with transparent top bar 2017-07-10 14:41:57 -07:00
_graphical_wait_login_2.pm Workaround issues with loading same module more than once 2017-04-18 10:38:16 -07:00
_graphical_wait_login.pm Of course, we have to actually auth *properly*... 2018-03-28 22:17:33 -07:00
_memcheck.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
_post_network_static.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
_setup_browser.pm Move install of Firefox into its own milestone module 2018-03-23 09:10:51 -07:00
_software_selection.pm Check default package selection is correct 2018-01-05 15:18:09 -08:00
_support_server.pm support_server: workaround RHBZ#1554390 (breaks dnsmasq on F28) 2018-05-03 14:00:41 -07:00
base_selinux.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
base_service_manipulation.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
base_services_start.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
base_system_logging.pm add base system logging test 2017-06-01 11:06:04 +02:00
base_update_cli.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
database_client.pm Bump up some more DNF timeouts due to #1516990 2017-11-23 16:01:58 -08:00
desktop_browser.pm Change up 'clean desktop' check again (use a util function) 2017-07-10 11:47:07 -07:00
desktop_notifications.pm Sleep a bit less in notification tests (to fix KDE postinst) 2018-03-28 19:20:29 -07:00
desktop_terminal.pm Change up 'clean desktop' check again (use a util function) 2017-07-10 11:47:07 -07:00
desktop_update_graphical.pm Handle KDE update test when KDE has aleady found updates 2018-03-28 19:53:19 -07:00
disk_custom_blivet_btrfs.pm Add "PPC PReP Boot" filesystem for PowerPC blivet tests 2017-09-06 08:43:04 +02:00
disk_custom_blivet_ext3.pm Add "PPC PReP Boot" filesystem for PowerPC blivet tests 2017-09-06 08:43:04 +02:00
disk_custom_blivet_lvmthin.pm Add "PPC PReP Boot" filesystem for PowerPC blivet tests 2017-09-06 08:43:04 +02:00
disk_custom_blivet_no_swap.pm Add "PPC PReP Boot" filesystem for PowerPC blivet tests 2017-09-06 08:43:04 +02:00
disk_custom_blivet_software_raid.pm Add "PPC PReP Boot" filesystem for PowerPC blivet tests 2017-09-06 08:43:04 +02:00
disk_custom_blivet_xfs.pm Add "PPC PReP Boot" filesystem for PowerPC blivet tests 2017-09-06 08:43:04 +02:00
disk_custom_btrfs_postinstall.pm add postinstalls to custom partitioning tests 2017-05-09 09:11:34 +02:00
disk_custom_btrfs.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_custom_ext3_postinstall.pm add postinstalls to custom partitioning tests 2017-05-09 09:11:34 +02:00
disk_custom_ext3.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_custom_iscsi_postinstall.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_custom_iscsi.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_custom_lvmthin_postinstall.pm add postinstalls to custom partitioning tests 2017-05-09 09:11:34 +02:00
disk_custom_lvmthin.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_custom_no_swap_postinstall.pm add postinstalls to custom partitioning tests 2017-05-09 09:11:34 +02:00
disk_custom_no_swap.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_custom_software_raid_postinstall.pm add postinstalls to custom partitioning tests 2017-05-09 09:11:34 +02:00
disk_custom_software_raid.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_custom_xfs_postinstall.pm add postinstalls to custom partitioning tests 2017-05-09 09:11:34 +02:00
disk_custom_xfs.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_delete_all.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_delete_partial_postinstall.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_delete_partial.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_empty.pm Try a different workaround for RHBZ #1444225 2017-07-10 12:24:41 -07:00
disk_guided_encrypted_postinstall_2.pm Workaround issues with loading same module more than once 2017-04-18 10:38:16 -07:00
disk_guided_encrypted_postinstall.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_encrypted.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_free_space_postinstall.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_multi_empty_all_postinstall.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_multi_empty_all.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_multi_postinstall.pm Revert "Modify "install_multi" test for PowerPC" 2017-09-06 08:43:04 +02:00
disk_guided_multi.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_shrink_postinstall.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
disk_guided_shrink.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
firewall_configured.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
firewall_disabled.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
freeipa_client.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
freeipa_password_change.pm Check for test3's existence at start of freeipa_password_change 2018-03-23 09:18:39 -07:00
freeipa_webui.pm Move install of Firefox into its own milestone module 2018-03-23 09:10:51 -07:00
install_arm_image_deployment.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
install_source_graphical.pm Fix install_mirrorlist_graphical test 2017-10-16 14:23:56 -07:00
install_text.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
realmd_join_cockpit.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
realmd_join_sssd.pm Bump up some more DNF timeouts due to #1516990 2017-11-23 16:01:58 -08:00
rescue_mode_encrypted.pm First PowerPC specific changes (not templates) 2017-09-06 08:43:04 +02:00
role_deploy_database_server.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
role_deploy_domain_controller_check.pm Always upload logs at end of domain_controller test 2017-09-05 09:32:33 -07:00
role_deploy_domain_controller.pm More debug logging for FreeIPA server (from ab) 2018-03-21 11:34:45 -07:00
server_cockpit_basic.pm Adjust cockpit log needles for Rawhide change 2017-07-10 10:35:27 -07:00
server_cockpit_default.pm Move install of Firefox into its own milestone module 2018-03-23 09:10:51 -07:00
server_filesystem_default.pm Add a check that correct filesystem was used on Server installs 2018-01-05 15:18:05 -08:00
server_firewall_default.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
uefi_postinstall.pm Move UEFI postinstall to tty4 too 2018-03-10 08:38:20 -08:00
upgrade_boot.pm Use mirrorlist instead of baseurl for updates tests 2018-05-18 16:41:13 -07:00
upgrade_postinstall.pm Remove test_flags comments, add ignore_failure flag 2017-04-10 15:00:10 -07:00
upgrade_preinstall.pm Extend some boot timeouts in upgrade tests 2018-05-11 09:02:21 -07:00
upgrade_run.pm Use mirrorlist instead of baseurl for updates tests 2018-05-18 16:41:13 -07:00