Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ovirt-engine installer breaks when resolving mirrorlist.centos.org #961

Open
cg5labs opened this issue Aug 30, 2024 · 4 comments
Open

ovirt-engine installer breaks when resolving mirrorlist.centos.org #961

cg5labs opened this issue Aug 30, 2024 · 4 comments
Labels

Comments

@cg5labs
Copy link

cg5labs commented Aug 30, 2024

Affected version: 4.5.5

  • oVirt Engine: (example: ovirt-engine-appliance-20231201120201.1.el9)
  • Host OS Variant: (example: ovirt-node-ng-installer-4.5.5-2023113015.el9 ISO)

Describe the bug

[ INFO  ] TASK [ovirt.ovirt.engine_setup : Install oVirt Engine package]
[ ERROR ] fatal: [localhost -> 192.168.222.98]: FAILED! => {"changed": false, "msg": "Failed to download me
tadata for repo 'centos-ceph-pacific': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect
 to server for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=storage-ceph-pacific [Failed
 to connect to mirrorlist.centos.org port 80: Connection refused]", "rc": 1, "results": []}
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Sync on engine machine]

The CentOS mirror URL is down since July 2024:
(Ref.: https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve )

Example resolving from other system:

~ $ curl http://mirrorlist.centos.org
curl: (6) Could not resolve host: mirrorlist.centos.org
~ $ curl https://google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>
~ $

To reproduce
On oVirt node (directly after iso-install):

[root@ovirt ~]# ovirt-hosted-engine-setup
...
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Include before engine-setup custom tasks files for the en
gine VM]
[ INFO  ] skipping: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : include_tasks]
[ INFO  ] skipping: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : include_tasks]
[ INFO  ] skipping: [localhost]
[ INFO  ] TASK [ovirt.ovirt.engine_setup : Perform pre-install checks]
[ INFO  ] ok: [localhost]
[ INFO  ] TASK [ovirt.ovirt.engine_setup : Gather facts on installed packages]
[ INFO  ] ok: [localhost -> 192.168.222.98]
[ INFO  ] TASK [ovirt.ovirt.engine_setup : Fail when firewall manager is not installed]
[ INFO  ] skipping: [localhost]
[ INFO  ] TASK [ovirt.ovirt.engine_setup : Install required packages for oVirt Engine deployment]
[ INFO  ] ok: [localhost]
[ INFO  ] TASK [ovirt.ovirt.engine_setup : Install oVirt Engine package]
[ ERROR ] fatal: [localhost -> 192.168.222.98]: FAILED! => {"changed": false, "msg": "Failed to download me
tadata for repo 'centos-ceph-pacific': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect
 to server for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=storage-ceph-pacific [Failed
 to connect to mirrorlist.centos.org port 80: Connection refused]", "rc": 1, "results": []}
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Sync on engine machine]
[ INFO  ] changed: [localhost -> 192.168.222.98]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Set destination directory path]
[ INFO  ] ok: [localhost -> localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Create destination directory]
[ INFO  ] changed: [localhost -> localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : include_tasks]
[ INFO  ] ok: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Find the local appliance image]
[ INFO  ] ok: [localhost -> localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Set local_vm_disk_path]
[ INFO  ] ok: [localhost -> localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Give the vm time to flush dirty buffers]
[ INFO  ] ok: [localhost -> localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Copy engine logs]
[ INFO  ] changed: [localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Change ownership of copied engine logs]
[ INFO  ] changed: [localhost -> localhost]
[ INFO  ] TASK [ovirt.ovirt.hosted_engine_setup : Notify the user about a failure]
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "There was a failure deploying the engine
 on the local engine VM. The system may not be provisioned according to the playbook results: please check 
the logs for the issue, fix accordingly or re-deploy from scratch.\n"}
[ ERROR ] b'[DEPRECATION WARNING]: Encryption using the Python crypt module is deprecated. \n'
[ ERROR ] b'The Python crypt module is deprecated and will be removed from Python 3.13. \n'
[ ERROR ] b'Install the passlib library for continued encryption functionality. This \n'
[ ERROR ] b'feature will be removed in version 2.17. Deprecation warnings can be disabled \n'
[ ERROR ] b'by setting deprecation_warnings=False in ansible.cfg.\n'
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook
[ INFO  ] Stage: Clean up
[ INFO  ] Cleaning temporary resources

  • Ansible task on hosted-engine VM breaks with repo config.
  • Playbook fails. Installer exits with error (s.above)

Expected behavior

Resolving the repo URL successfully and continue with ovirt-hosted-engine installer setup.

@cg5labs cg5labs added the bug label Aug 30, 2024
@cg5labs
Copy link
Author

cg5labs commented Aug 30, 2024

CentOS 8 is obsolete with no more updates released:

From https://www.centos.org/download/
"Upcoming EOL Dates. CentOS Stream 8 end of builds is May 31, 2024."

Please update the ovirt-engine installer playbook dependencies and repository mirror.

@cg5labs
Copy link
Author

cg5labs commented Aug 30, 2024

Further output from affected oVirt node host package system:

[root@ovirt ~]# dnf update
Last metadata expiration check: 3:21:45 ago on Fri 30 Aug 2024 07:34:54 PM +08.
Dependencies resolved.
Nothing to do.
Complete!
[root@ovirt ~]# dnf update ovirt-hosted-engine-setup
Last metadata expiration check: 3:21:53 ago on Fri 30 Aug 2024 07:34:54 PM +08.
Dependencies resolved.
Nothing to do.
Complete!
[root@ovirt ~]# dnf info ovirt-hosted-engine-setup
Last metadata expiration check: 3:22:04 ago on Fri 30 Aug 2024 07:34:54 PM +08.
Installed Packages
Name         : ovirt-hosted-engine-setup
Version      : 2.7.1
Release      : 1.el9
Architecture : noarch
Size         : 1.3 M
Source       : ovirt-hosted-engine-setup-2.7.1-1.el9.src.rpm
Repository   : @System
Summary      : oVirt Hosted Engine setup tool
URL          : https://www.ovirt.org/
License      : LGPL-2.0-or-later
Description  : Hosted Engine setup tool for oVirt project.

[root@ovirt ~]#

@rtundra
Copy link

rtundra commented Sep 4, 2024

hey did you fixed this problem?

@cg5labs
Copy link
Author

cg5labs commented Sep 4, 2024

@rtundra , I switched to nightly build on the VM appliance and updated the ovirt-engine installer package.

Ref.: https://www.ovirt.org/develop/dev-process/install-nightly-snapshot.html

With the updated ovirt-engine installer (latest), the dependency error is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants