Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1583260

Summary: Failure in Ovirt Engine when deploying a new host in the ovirt host deploy ansible log.
Product: [oVirt] ovirt-engine Reporter: Steven Rosenberg <srosenbe>
Component: Backend.CoreAssignee: Nobody <nobody>
Status: CLOSED NOTABUG QA Contact: meital avital <mavital>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, sradco
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-29 06:46:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Log file Simulation of the error none

Description Steven Rosenberg 2018-05-28 15:20:07 UTC
Created attachment 1443377 [details]
Log file Simulation of the error

Description of problem:

When adding a new host to the ovirt engine, there is a failure when the deployment of the host is being performed upon investigation, the log file within the ovirt-engine directory "host-deploy/ovirt-host-deploy-ansible-20180219145641-sla-sheldon-a08d251.log" contained the following error:

-----------------------------------------------------------------------------
2018-02-19 14:56:41,584 p=20778 u=srosenbe |  Using /home/srosenbe/ovirt_engine_master/share/ovirt-engine/playbooks/ansible.cfg as config file
2018-02-19 14:56:41,610 p=20778 u=srosenbe |  ERROR! the role 'oVirt.metrics' was not found in /home/srosenbe/ovirt_engine_master/share/ovirt-engine/playbooks/roles:/home/srosenbe/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/srosenbe/ovirt_engine_master/share/ovirt-engine/playbooks/roles:/home/srosenbe/ovirt_engine_master/share/ovirt-engine/playbooks

The error appears to have been in '/home/srosenbe/ovirt_engine_master/share/ovirt-engine/playbooks/roles/ovirt-host-deploy/meta/main.yml': line 6, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  - ovirt-host-deploy-firewalld
  - oVirt.metrics
    ^ here
-----------------------------------------------------------------------------

Note: Once the offending line oVirt.metrics is removed and one performs a reinstall of the Host, the installation and deployment succeeds.


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

The issue was simulated from both master branch and branch 4.2 of the ovirt-engine project. 


How reproducible:

Create a new host via the ovirt Engine Web Application and allow the host to perform the installation. The installation will fail. Search for the ansible log file in the var/log/ovirt-engine directory to see the error. 


Steps to Reproduce:
1. Create a new host within the ovirt Engine Web Application
2. When the deployment fails, search for the ansible log file in the as described above. 
3. Observe the error in the file.

Actual results:

Host deployment fails. One needs to remove the line and reinstall.


Expected results:

The Host deployment should succeed without manual intervention.


Additional info:

Comment 1 Shirly Radco 2018-05-29 06:46:25 UTC
You are using Dev env.
ovirt-engine-metrics is a dependency of ovirt-engine.
You should manually install the package.