mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 14:03:09 +00:00
33ac181955
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> |
||
---|---|---|
.. | ||
_advisory_post.pm | ||
_advisory_update.pm | ||
_anaconda_network_static.pm | ||
_boot_to_anaconda.pm | ||
_check_install_source.pm | ||
_collect_data.pm | ||
_console_avc_crash.pm | ||
_console_login.pm | ||
_console_shutdown.pm | ||
_console_wait_login_2.pm | ||
_console_wait_login.pm | ||
_do_install_and_reboot.pm | ||
_graphical_input_2.pm | ||
_graphical_input.pm | ||
_graphical_wait_login_2.pm | ||
_graphical_wait_login.pm | ||
_memcheck.pm | ||
_post_network_static.pm | ||
_setup_browser.pm | ||
_software_selection.pm | ||
_support_server.pm | ||
base_selinux.pm | ||
base_service_manipulation.pm | ||
base_services_start.pm | ||
base_system_logging.pm | ||
base_update_cli.pm | ||
database_client.pm | ||
desktop_browser.pm | ||
desktop_notifications.pm | ||
desktop_terminal.pm | ||
desktop_update_graphical.pm | ||
disk_custom_blivet_btrfs.pm | ||
disk_custom_blivet_ext3.pm | ||
disk_custom_blivet_lvmthin.pm | ||
disk_custom_blivet_no_swap.pm | ||
disk_custom_blivet_software_raid.pm | ||
disk_custom_blivet_xfs.pm | ||
disk_custom_btrfs_postinstall.pm | ||
disk_custom_btrfs.pm | ||
disk_custom_ext3_postinstall.pm | ||
disk_custom_ext3.pm | ||
disk_custom_iscsi_postinstall.pm | ||
disk_custom_iscsi.pm | ||
disk_custom_lvmthin_postinstall.pm | ||
disk_custom_lvmthin.pm | ||
disk_custom_no_swap_postinstall.pm | ||
disk_custom_no_swap.pm | ||
disk_custom_software_raid_postinstall.pm | ||
disk_custom_software_raid.pm | ||
disk_custom_xfs_postinstall.pm | ||
disk_custom_xfs.pm | ||
disk_guided_delete_all.pm | ||
disk_guided_delete_partial_postinstall.pm | ||
disk_guided_delete_partial.pm | ||
disk_guided_empty.pm | ||
disk_guided_encrypted_postinstall_2.pm | ||
disk_guided_encrypted_postinstall.pm | ||
disk_guided_encrypted.pm | ||
disk_guided_free_space_postinstall.pm | ||
disk_guided_multi_empty_all_postinstall.pm | ||
disk_guided_multi_empty_all.pm | ||
disk_guided_multi_postinstall.pm | ||
disk_guided_multi.pm | ||
disk_guided_shrink_postinstall.pm | ||
disk_guided_shrink.pm | ||
firewall_configured.pm | ||
firewall_disabled.pm | ||
freeipa_client.pm | ||
freeipa_password_change.pm | ||
freeipa_webui.pm | ||
install_arm_image_deployment.pm | ||
install_source_graphical.pm | ||
install_text.pm | ||
realmd_join_cockpit.pm | ||
realmd_join_sssd.pm | ||
rescue_mode_encrypted.pm | ||
role_deploy_database_server.pm | ||
role_deploy_domain_controller_check.pm | ||
role_deploy_domain_controller.pm | ||
server_cockpit_basic.pm | ||
server_cockpit_default.pm | ||
server_filesystem_default.pm | ||
server_firewall_default.pm | ||
uefi_postinstall.pm | ||
upgrade_boot.pm | ||
upgrade_postinstall.pm | ||
upgrade_preinstall.pm | ||
upgrade_run.pm |