rocky-linux / rocky-tools

MIT License
408 stars 144 forks source link

Private repo, package rocky-repos #95

Open blouphil opened 3 years ago

blouphil commented 3 years ago

Hello,

Our nodes do not have access to external repositories, we can only connect to our private repo.

Before starting the migration script, I make sure to use stock repo config files, the only thing that is changed is the baseurl= URL, #mirrorlist= stays commented out

However, package rocky-repos-8.4-32.el8.noarch is installed during the migration process, and this reverts the repo configs to mirrorlist=https://mirrors.rockylinux.org/[...]

[...]
Installed:
  rocky-gpg-keys-8.4-32.el8.noarch        rocky-release-8.4-32.el8.noarch
  rocky-repos-8.4-32.el8.noarch
Removed:
  centos-gpg-keys-1:8-2.el8.noarch   centos-linux-release-8.4-1.2105.el8.noarch
  centos-linux-repos-8-2.el8.noarch

Complete!
Last metadata expiration check: 0:00:03 ago on Tue 10 Aug 2021 03:24:50 PM GMT.
> Leaving Shell
Ensuring repos are enabled before the package swap
No matches found for the following enable plugin patterns: config-manager
Enabling modules

Rocky Linux 8 - AppStream                       0.0  B/s |   0  B     06:00
Errors during downloading metadata for repository 'appstream':
  - Curl error (28): Timeout was reached for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-8 [Connection timed out after 30001 milliseconds]
  - Curl error (28): Timeout was reached for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-8 [Connection timed out after 30000 milliseconds]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-8 [Connection timed out after 30001 milliseconds]

Can't enable modules perl-IO-Socket-SSL:2.066 perl-libwww-perl:6.34 python36:3.6

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

 A log of this installation can be found at /var/log/migrate2rocky.log

Maybe skipping installing the rocky-repos package would fix this? Or any other ideas?

Thanks

pajamian commented 3 years ago

We're looking at an option to specify an alternate (private/local) repository.

m41kc0d3 commented 3 years ago

Hi @blouphil, take a look at #92 . It is not perfect, but it works for me.