Bug 1808253 - Hosted engine deploy failed at "Force host-deploy in offline mode" ansible task during prepare vm stage in cockpit
Summary: Hosted engine deploy failed at "Force host-deploy in offline mode" ansible ta...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: hosted-engine-setup
Version: unspecified
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.4.0
: 1.1.0
Assignee: Evgeny Slutsky
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks: 1701490
TreeView+ depends on / blocked
 
Reported: 2020-02-28 06:18 UTC by Wei Wang
Modified: 2020-05-20 20:03 UTC (History)
13 users (show)

Fixed In Version: ovirt-ansible-hosted-engine-setup-1.1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-20 20:03:02 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.4?
sbonazzo: blocker?
mtessun: planning_ack+
sbonazzo: devel_ack+
cshao: testing_ack+


Attachments (Terms of Use)
picture (121.73 KB, image/png)
2020-02-28 06:18 UTC, Wei Wang
no flags Details
/var/log files (2.48 MB, application/gzip)
2020-02-28 06:19 UTC, Wei Wang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github https://github.com/oVirt ovirt-ansible-hosted-engine-setup pull 288 0 None None None 2020-04-08 08:34:24 UTC

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.


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