Bug 1558546

Summary: Cockpit deploy of hosted engine fails at the end when DHCP is used
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Martin Sivák <msivak>
Component: GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Yihui Zhao <yzhao>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.2.13CC: bugs, cshao, huzhao, qiyuan, rbarry, sbonazzo, stirabos, yaniwang, ycui, yzhao
Target Milestone: ovirt-4.2.2Keywords: EasyFix
Target Release: ---Flags: rule-engine: ovirt-4.2+
rule-engine: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-hosted-engine-setup-2.2.14-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-29 11:18:28 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: 1458709    

Description Martin Sivák 2018-03-20 13:03:36 UTC
Description of problem:

[ INFO ] TASK [Generate dhcp network configuration for the engine VM]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The conditional check 'not VM_IP_ADDR|length >= 8' failed. The error was: Unexpected templating type error occurred on ({% if not VM_IP_ADDR|length >= 8 %} True {% else %} False {% endif %}): object of type 'NoneType' has no len()\n\nThe error appears to have been in '/usr/share/ovirt-hosted-engine-setup/ansible/create_target_vm.yml': line 282, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tags: [ 'skip_ansible_lint' ]\n - name: Generate dhcp network configuration for the engine VM\n ^ here\n"}

Version:

cockpit-ovirt-dashboard.noarch 0:0.11.999-0.0.master.20180320.git094807e.el7.centos
ovirt-hosted-engine-setup-2.3.0-0.0.master.20180316231530.git2174e21.el7.centos.noarch

Comment 1 Yihui Zhao 2018-03-28 07:03:43 UTC
Tested with these versions:

rhvh-4.2.2.0-0.20180322.0+1
cockpit-ovirt-dashboard-0.11.19-1.el7ev.noarch
ovirt-hosted-engine-setup-2.2.14-1.el7ev.noarch
ovirt-hosted-engine-ha-2.2.7-1.el7ev.noarch
rhvm-appliance-4.2-20180322.0.el7.noarch

Test result:
Cannot reproduce this issue and deploy HE successfully. It works well for me

Moving to verified. If meet the issue again, please re-open this bug to track.

Comment 2 Sandro Bonazzola 2018-03-29 11:18:28 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.2 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.