Bug 1847974 - [RHV 4.4 Beta] Hosted-Engine setup failed with error " No package ovirt-engine available" using appliance.
Summary: [RHV 4.4 Beta] Hosted-Engine setup failed with error " No package ovirt-engin...
Keywords:
Status: CLOSED DUPLICATE of bug 1867158
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.4.0
Hardware: All
OS: Linux
high
high
Target Milestone: ovirt-4.4.2
: ---
Assignee: Asaf Rachmani
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-17 13:23 UTC by Ulhas Surse
Modified: 2023-10-06 20:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-26 12:40:54 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ulhas Surse 2020-06-17 13:23:17 UTC
Description of problem:
While deploying hosted engine 4.4 Beta, it is failing with the error while engine-setup runs in bootstrap VM. 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install RHVH latest 4.4 
2. Run hosted engine setup. 
3.

Actual results:
Hosted Engine setup fails

Expected results:
Setup should be sucessful. 

Additional info:

Comment 2 Ulhas Surse 2020-06-17 13:26:24 UTC
2020-06-05 16:16:11,818+1000 ERROR ansible failed {
    "ansible_host": "localhost",
    "ansible_playbook": "/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml",
    "ansible_result": {
        "_ansible_delegated_vars": {
            "ansible_host": "<hostname>"
        },
        "_ansible_no_log": false,
        "changed": false,
        "failures": [
            "No package ovirt-engine available."
        ],

Comment 9 Nikolai Sednev 2020-06-25 10:19:52 UTC
RHVH 4.4 specific issue.

Comment 11 Wei Wang 2020-06-29 02:05:54 UTC
Test with rhvh-4.4.0.21-0.20200518.0 (cockpit-ovirt-dashboard-0.14.6-1.el8ev.noarch,ovirt-hosted-engine-setup-2.4.4-1.el8ev.noarch)

1. Clean install rhvh-4.4.0.21-0.20200518.0
[root@hp-dl388g9-05 ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.2"
VERSION_ID="8.2"
PLATFORM_ID="platform:el8"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Red Hat Virtualization Host"
VARIANT_ID="ovirt-node"
PRETTY_NAME="Red Hat Virtualization Host 4.4.0 (el8.2)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.2:GA:hypervisor"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

# FIXME
REDHAT_BUGZILLA_PRODUCT="Red Hat Virtualization"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.2
REDHAT_SUPPORT_PRODUCT="Red Hat Virtualization"
REDHAT_SUPPORT_PRODUCT_VERSION=8.2
2. [root@hp-dl388g9-05 ~]# subscription-manager register --username=xxxx --password=xxxx --auto-attach
Registering to: subscription.rhsm.redhat.com:443/subscription
The system has been registered with ID: 5247c711-191f-4201-b467-ae9568f794ed
The registered system name is: hp-dl388g9-05.lab.eng.pek2.redhat.com
Installed Product Current Status:
Product Name: Red Hat Virtualization Host
Status:       Subscribed

Product Name: Red Hat Enterprise Linux for x86_64
Status:       Subscribed

3. [root@hp-dl388g9-05 ~]# subscription-manager repos --list
...
Repo ID:   rhvh-4-beta-for-rhel-8-x86_64-rpms
Repo Name: Red Hat Virtualization Host Beta for RHEL 8 x86_64 (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/layered/rhel8/x86_64/rhvh/4/os
Enabled:   0
...

4. [root@hp-dl388g9-05 ~]# subscription-manager repos --disable=*
Repository 'amq-textonly-1-for-middleware-rpms' is disabled for this system.
Repository 'satellite-tools-6.5-for-rhel-8-x86_64-aus-source-rpms' is disabled for this system.
Repository 'openstack-beta-for-rhel-8-x86_64-debug-rpms' is disabled for this system.
...

5. [root@hp-dl388g9-05 ~]# subscription-manager repos --enable=rhvh-4-beta-for-rhel-8-x86_64-rpms
Repository 'rhvh-4-beta-for-rhel-8-x86_64-rpms' is enabled for this system.
[root@hp-dl388g9-05 ~]# yum repolist
Updating Subscription Management repositories.
repo id                                                                                                     repo name
rhvh-4-beta-for-rhel-8-x86_64-rpms                                                                          Red Hat Virtualization Host Beta for RHEL 8 x86_64 (RPMs)

6. Deploy hosted engine via cockpit UI successfully.

7. [root@hp-dl388g9-05 ~]# hosted-engine --vm-status


--== Host hp-dl388g9-05.lab.eng.pek2.redhat.com (id: 1) status ==--

Host ID                            : 1
Host timestamp                     : 14006
Score                              : 3400
Engine status                      : {"vm": "up", "health": "good", "detail": "Up"}
Hostname                           : hp-dl388g9-05.lab.eng.pek2.redhat.com
Local maintenance                  : False
stopped                            : False
crc32                              : 9bad8797
conf_on_shared_storage             : True
local_conf_timestamp               : 14006
Status up-to-date                  : True
Extra metadata (valid at timestamp):
	metadata_parse_version=1
	metadata_feature_version=1
	timestamp=14006 (Sun Jun 28 23:07:43 2020)
	host-id=1
	score=3400
	vm_conf_refresh_time=14006 (Sun Jun 28 23:07:43 2020)
	conf_on_shared_storage=True
	maintenance=False
	state=EngineUp
	stopped=False


Ulhas,
RHVH deploys hosted engine via online download rhvm-appliance successfully. FIO, please check the repos enabled in your environment, and make sure enable the repo "rhvh-4-beta-for-rhel-8-x86_64-rpms".

Comment 13 Asaf Rachmani 2020-07-08 07:08:45 UTC
I'm also not able to reproduce it. 
From the logs, you already have the rhvm-appliance package, and the failure is about ovirt-engine package.
ovirt-engine package should already be inside rhvm-appliance, so I don't see any reason to get "No package ovirt-engine available" error.
This task runs on the HE VM, so the repo in HE VM is not required (as we already have the ovirt-engine package).
I suggest connecting to the HE VM and check the logs/ovirt-engine package.

Comment 14 Wei Wang 2020-07-08 07:36:21 UTC
Hi Ulhas,
There are two points, maybe can help us:
1. After enabling the rhvh right repo, using below command to check the rpm is existed on host.
   # yum search rhvm-appliance
2. During hosted engine deployment, checking whether the rhvm-appliance is installed in to the host.
   # rpm -qa|grep rhvm-appliance

If any one of them fail, I think it is none of hosted engine setup function's business.

Comment 15 Asaf Rachmani 2020-07-26 12:40:54 UTC
Closing since we are unable to reproduce it

Comment 16 Asaf Rachmani 2020-08-24 07:37:34 UTC
This issue is reproducible when applying OpenSCAP security profile.

*** This bug has been marked as a duplicate of bug 1867158 ***


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