Bug 2056146 - Hosted engine deployed failed since no enabled repositories can be found for engine setup.
Summary: Hosted engine deployed failed since no enabled repositories can be found for ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhvm-appliance
Version: 4.5.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.5.0-1
: 4.5.0
Assignee: Asaf Rachmani
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-19 02:51 UTC by Wei Wang
Modified: 2022-06-07 15:23 UTC (History)
10 users (show)

Fixed In Version: rhvm-setup-plugins-4.4.3-1,rhvm-appliance-4.5-20220318.0.el8ev
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-07 15:22:53 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
issue log files (1.92 MB, application/gzip)
2022-02-19 02:51 UTC, Wei Wang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-44723 0 None None None 2022-02-19 02:54:24 UTC
Red Hat Product Errata RHSA-2022:4931 0 None None None 2022-06-07 15:23:11 UTC

Description Wei Wang 2022-02-19 02:51:52 UTC
Created attachment 1862012 [details]
issue log files

Description of problem:
During hosted engine deployment, when runing engine-setup with answerfile task, the deployment is failed since no enabled repositories can be found.

[ ERROR ] fatal: [localhost -> 192.168.222.176]: FAILED! => {"changed": true, "cmd": ["engine-setup", "--accept-defaults", "--config-append=/root/ovirt-engine-answers"], "delta": "0:00:03.826221", "end": "2022-02-19 10:31:53.308479", "msg": "non-zero return code", "rc": 1, "start": "2022-02-19 10:31:49.482258", "stderr": "", "stderr_lines": [], "stdout": "[ INFO ] Stage: Initializing\n[ INFO ] Stage: Environment setup\n Configuration files: /etc/ovirt-engine-setup.conf.d/10-packaging-wsp.conf, /etc/ovirt-engine-setup.conf.d/10-packaging.conf, /root/ovirt-engine-answers\n Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20220219103150-lje9y0.log\n Version: otopi-1.9.6 (otopi-1.9.6-2.el8ev)\n[ INFO ] Stage: Environment packages setup\n[ INFO ] Stage: Programs detection\n[ INFO ] Stage: Environment setup (late)\n[ INFO ] Stage: Environment customization\n \n --== PRODUCT OPTIONS ==--\n \n Configure Cinderlib integration (Currently in tech preview) (Yes, No) [No]: \n \n Configuring ovirt-provider-ovn also sets the Default cluster's default network provider to ovirt-provider-ovn.\n Non-Default clusters may be configured with an OVN after installation.\n Configure ovirt-provider-ovn (Yes, No) [Yes]: \n \n * Please note * : Data Warehouse is required for the engine.\n If you choose to not configure it on this host, you have to configure\n it on a remote host, and then configure the engine on this host so\n that it can access the database of the remote Data Warehouse host.\n Configure Data Warehouse on this host (Yes, No) [Yes]: \n Configure Grafana on this host (Yes, No) [Yes]: \n \n --== PACKAGES ==--\n \n[ INFO ] Checking for product updates...\n[ INFO ] No product updates found\n[ ERROR ] ['ovirt-engine-setup-4.4.9.5-0.1.el8ev.noarch'] cannot be found in enabled repositories.\n Seems like required channels/repositories are not available on the system.\n[ ERROR ] Failed to execute stage 'Environment customization': Setup cannot be found in enabled repositories.\n[ INFO ] Stage: Clean up\n Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20220219103150-lje9y0.log\n[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20220219103153-setup.conf'\n[ INFO ] Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution of setup failed", "stdout_lines": ["[ INFO ] Stage: Initializing", "[ INFO ] Stage: Environment setup", " Configuration files: /etc/ovirt-engine-setup.conf.d/10-packaging-wsp.conf, /etc/ovirt-engine-setup.conf.d/10-packaging.conf, /root/ovirt-engine-answers", " Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20220219103150-lje9y0.log", " Version: otopi-1.9.6 (otopi-1.9.6-2.el8ev)", "[ INFO ] Stage: Environment packages setup", "[ INFO ] Stage: Programs detection", "[ INFO ] Stage: Environment setup (late)", "[ INFO ] Stage: Environment customization", " ", " --== PRODUCT OPTIONS ==--", " ", " Configure Cinderlib integration (Currently in tech preview) (Yes, No) [No]: ", " ", " Configuring ovirt-provider-ovn also sets the Default cluster's default network provider to ovirt-provider-ovn.", " Non-Default clusters may be configured with an OVN after installation.", " Configure ovirt-provider-ovn (Yes, No) [Yes]: ", " ", " * Please note * : Data Warehouse is required for the engine.", " If you choose to not configure it on this host, you have to configure", " it on a remote host, and then configure the engine on this host so", " that it can access the database of the remote Data Warehouse host.", " Configure Data Warehouse on this host (Yes, No) [Yes]: ", " Configure Grafana on this host (Yes, No) [Yes]: ", " ", " --== PACKAGES ==--", " ", "[ INFO ] Checking for product updates...", "[ INFO ] No product updates found", "[ ERROR ] ['ovirt-engine-setup-4.4.9.5-0.1.el8ev.noarch'] cannot be found in enabled repositories.", " Seems like required channels/repositories are not available on the system.", "[ ERROR ] Failed to execute stage 'Environment customization': Setup cannot be found in enabled repositories.", "[ INFO ] Stage: Clean up", " Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20220219103150-lje9y0.log", "[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20220219103153-setup.conf'", "[ INFO ] Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] Execution of setup failed"]}


Version-Release number of selected component (if applicable):
RHVH-4.5-20220216.0-RHVH-x86_64-dvd1.iso
subscription-manager-cockpit-1.28.25-1.el8.noarch
cockpit-bridge-261-1.el8.x86_64
cockpit-system-261-1.el8.noarch
cockpit-storaged-261-1.el8.noarch
cockpit-ws-261-1.el8.x86_64
cockpit-261-1.el8.x86_64
cockpit-ovirt-dashboard-0.15.1-2.el8ev.noarch
rhvm-appliance-4.5-20211114.0.el8ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Clean install RHVH-4.5-20220216.0-RHVH-x86_64-dvd1.iso
2. Deploy hosted engine
3.

Actual results:
Hosted engine deployed failed since no enabled repositories can be found for engine setup.

Expected results:
Hosted engine should be deployed successfully.


Additional info:

Comment 4 Asaf Rachmani 2022-02-28 09:41:48 UTC
Seems like a duplicate of bug 2024142, keeping it open for verification using rhvm-appliance-4.5.

Comment 5 Wei Wang 2022-03-16 09:40:11 UTC
Test with RHVH-4.5-20220315.0-RHVH-x86_64-dvd1.iso, the bug is reproduced.

Comment 7 Wei Wang 2022-03-21 03:40:53 UTC
Test with the latest rhvm-appliance (rhvm-appliance-4.5-20220318.0.el8ev.x86_64), the bug is fixed. Move it to "VERIFIED"

Comment 12 errata-xmlrpc 2022-06-07 15:22:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHV Appliance (rhvm-appliance) security update [ovirt-4.5.0]), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:4931


Note You need to log in before you can comment on or make changes to this bug.