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

Bug 1808253

Summary: Hosted engine deploy failed at "Force host-deploy in offline mode" ansible task during prepare vm stage in cockpit
Product: [oVirt] ovirt-ansible-collection Reporter: Wei Wang <weiwang>
Component: hosted-engine-setupAssignee: Evgeny Slutsky <eslutsky>
Status: CLOSED CURRENTRELEASE QA Contact: Wei Wang <weiwang>
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: bugs, cshao, didi, eslutsky, mavital, mtessun, peyu, qiyuan, sbonazzo, shlei, weiwang, yaniwang, yturgema
Target Milestone: ovirt-4.4.0Keywords: Regression, TestBlocker
Target Release: 1.1.0Flags: sbonazzo: ovirt-4.4?
sbonazzo: blocker?
mtessun: planning_ack+
sbonazzo: devel_ack+
cshao: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-hosted-engine-setup-1.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 20:03:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1701490    
Attachments:
Description Flags
picture
none
/var/log files none

Description Wei Wang 2020-02-28 06:18:26 UTC
Created attachment 1666331 [details]
picture

Description of problem:
Hosted engine deploy failed at "Force host-deploy in offline mode" ansible task during prepare vm stage in cockpit.

[ INFO ] TASK [ovirt.hosted_engine_setup : Force host-deploy in offline mode]
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "checksum": "82b526ce45098188dad1eab9d0fe9539b0210b36", "msg": "Destination directory /etc/ovirt-host-deploy.conf.d does not exist"}

- ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-2020128134356-2drzxn.log
2020-02-28 13:03:17,515+0800 ERROR ansible failed {
    "ansible_host": "localhost",
    "ansible_playbook": "/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml",
    "ansible_result": {
        "_ansible_no_log": false,
        "changed": false,
        "checksum": "82b526ce45098188dad1eab9d0fe9539b0210b36",
        "diff": [],
        "invocation": {
            "module_args": {
                "_original_basename": "70-hosted-engine-setup.conf.j2",
                "attributes": null,
                "backup": false,
                "checksum": "82b526ce45098188dad1eab9d0fe9539b0210b36",
                "content": null,
                "delimiter": null,
                "dest": "/etc/ovirt-host-deploy.conf.d/70-hosted-engine-setup.conf",
                "directory_mode": null,
                "follow": false,
                "force": true,
                "group": null,
                "local_follow": null,
                "mode": null,
                "owner": null,
                "regexp": null,
                "remote_src": null,
                "selevel": null,
                "serole": null,
                "setype": null,
                "seuser": null,
                "src": "/root/.ansible/tmp/ansible-tmp-1582866196.232511-86748827730631/source",
                "unsafe_writes": null,
                "validate": null
            }
        },
        "msg": "Destination directory /etc/ovirt-host-deploy.conf.d does not exist"
    },
    "ansible_task": "Force host-deploy in offline mode",
    "ansible_type": "task",
    "status": "FAILED",
    "task_duration": 1
}


Version-Release number of selected component (if applicable):
RHVH-UNSIGNED-ISO-4.4-RHEL-8-20200226.1-RHVH-x86_64-dvd1.iso
cockpit-system-211.2-2.el8.noarch
cockpit-ws-211.2-2.el8.x86_64
cockpit-211.2-2.el8.x86_64
cockpit-ovirt-dashboard-0.14.1-1.el8ev.noarch
cockpit-bridge-211.2-2.el8.x86_64
cockpit-dashboard-211.2-1.el8.noarch
cockpit-storaged-211.2-1.el8.noarch
ovirt-hosted-engine-ha-2.4.2-1.el8ev.noarch
ovirt-hosted-engine-setup-2.4.2-2.el8ev.noarch
rhvm-appliance-4.4-20200123.0.el8ev.rpm

How reproducible:
100%

Steps to Reproduce:
1. Clean install RHVH-UNSIGNED-ISO-4.4-RHEL-8-20200226.1-RHVH-x86_64-dvd1.iso
2. Deploy hosted engine via cockpit


Actual results:
Hosted engine deploy failed at "Force host-deploy in offline mode" ansible task during prepare vm stage in cockpit.

Expected results:
Hosted engine deploy successfully.

Additional info:

Comment 1 Wei Wang 2020-02-28 06:19:35 UTC
Created attachment 1666332 [details]
/var/log files

Comment 2 Wei Wang 2020-03-10 01:37:17 UTC
Test with the latest 4.4 build rhvh-4.4.0.14-0.20200308.0, HE deploys failed with this bug. And ovirt-ansible-hosted-engine-setup-1.0.35-1.el8ev.noarch is not version 1.1.0, so QE will verify this bug untill the new 4.4 build is coming.

Comment 3 Wei Wang 2020-03-10 08:41:43 UTC
Waiting for 4.4 new build, move it to "MODIFIED"

Comment 4 Wei Wang 2020-03-19 05:02:01 UTC
Test Version:
RHVH-UNSIGNED-ISO-4.4-RHEL-8-20200318.0-RHVH-x86_64-dvd1
cockpit-system-211.3-1.el8.noarch
cockpit-ws-211.3-1.el8.x86_64
cockpit-ovirt-dashboard-0.14.2-1.el8ev.noarch
cockpit-211.3-1.el8.x86_64
cockpit-bridge-211.3-1.el8.x86_64
cockpit-dashboard-211.3-1.el8.noarch
cockpit-storaged-211.3-1.el8.noarch
ovirt-ansible-engine-setup-1.2.2-1.el8ev.noarch
ovirt-ansible-hosted-engine-setup-1.1.0-1.el8ev.noarch
rhvm-appliance-4.4-20200123.0.el8ev.x86_64

Test Steps:
According to comment 0

Result:
The ovirt-host-deploy has moved, bug is fixed.

Move the status to "VERIFIED"

Comment 5 Sandro Bonazzola 2020-05-20 20:03:02 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

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