Bug 1557480

Summary: The deployment fails on [Create configuration templates] task
Product: [oVirt] cockpit-ovirt Reporter: Simone Tiraboschi <stirabos>
Component: Hosted EngineAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Yihui Zhao <yzhao>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 0.11.17CC: bugs, cshao, huzhao, jiaczhan, qiyuan, weiwang, yaniwang, ycui, yzhao
Target Milestone: ovirt-4.2.2Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
yzhao: testing_ack+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.11.18-0.1, ovirt-hosted-engine-setup-2.2.14-1 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-29 11:09:16 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: 1556866    
Bug Blocks:    
Attachments:
Description Flags
failed_cockpit none

Description Simone Tiraboschi 2018-03-16 16:24:40 UTC
Description of problem:
The deployment fails on [Create configuration templates] task

with something like:
2018-03-16 14:42:09,129+0100 ERROR ansible failed {'status': 'FAILED', 'ansible_type': 'task', 'ansible_task': u'Create configuration templates', 'ansible_result': u'type: <type 'dict'>\nstr: {'msg': u'All items completed', 'changed': True, 'results': [{'_ansible_parsed': True, u'src': u'/root/.ansible/tmp/ansible-tmp-1521207727.71-239679883822671/source', '_ansible_item_result': True, u'group': u'root', u'uid': 0, u'size': 1306, 'item': {u'dest': u'/var/tmp/localvmVby9Iz/vm.conf', u'src\nrepr: {'msg': u'All items completed', 'changed': True, 'results': [{'_ansible_parsed': True, u'src': u'/root/.ansible/tmp/ansible-tmp-1521207727.71-239679883822671/source', '_ansible_item_result': True, u'group': u'root', u'uid': 0, u'size': 1306, 'item': {u'dest': u'/var/tmp/localvmVby9Iz/vm.conf', u'src\ndir: ['__class__', '__cmp__', '__contains__', '__delattr__', '__delitem__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'has_key', 'items', 'iteritems', 'iterkeys', 'itervalues', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values', 'viewitems', 'viewkeys', 'viewvalues']\npprint: {'changed': True,\n 'msg': u'All items completed',\n 'results': [{'_ansible_ignore_errors': None,\n              '_ansible_item_result': True,\n              '_ansible_no_log': False,\n              '_ansible_parsed': True,\n              u'changed': True,\n              u'checksum': u'c7252b2356e264c832e8\n{'msg': u'All items completed', 'changed': True, 'results': [{'_ansible_parsed': True, u'src': u'/ro.__doc__: "dict() -> new empty dictionary\\ndict(mapping) -> new dictionary initialized from a mapping object's\\n    (key, value) pairs\\ndict(iterable) -> new dictionary initialized as if via:\\n    d = {}\\n    for k, v in iterable:\\n        d[k] = v\\ndict(**kwargs) -> new dictionary initialized with the name=value pairs\\n    in the keyword argument list.  For example:  dict(one=1, two=2)"\n{'msg': u'All items completed', 'changed': True, 'results': [{'_ansible_parsed': True, u'src': u'/ro.__hash__: None', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/create_target_vm.yml'}
2018-03-16 14:42:09,129+0100 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x3806b50> kwargs ignore_errors:None 
2018-03-16 14:42:09,132+0100 INFO ansible stats {'status': 'FAILED', 'ansible_playbook_duration': 134.148824, 'ansible_result': u'type: <type 'dict'>\nstr: {u'enginevm.localdomain': {'unreachable': 0, 'skipped': 0, 'ok': 9, 'changed': 4, 'failures': 0}, u'localhost': {'unreachable': 0, 'skipped': 0, 'ok': 51, 'changed': 10, 'failures': 1}}\nrepr: {u'enginevm.localdomain': {'unreachable': 0, 'skipped': 0, 'ok': 9, 'changed': 4, 'failures': 0}, u'localhost': {'unreachable': 0, 'skipped': 0, 'ok': 51, 'changed': 10, 'failures': 1}}\ndir: ['__class__', '__cmp__', '__contains__', '__delattr__', '__delitem__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'has_key', 'items', 'iteritems', 'iterkeys', 'itervalues', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values', 'viewitems', 'viewkeys', 'viewvalues']\npprint: {u'enginevm.localdomain': {'changed': 4,\n                           'failures': 0,\n                           'ok': 9,\n                           'skipped': 0,\n                           'unreachable': 0},\n u'localhost': {'changed': 10,\n                'failures': 1,\n                'ok': 51,\n      \n{u'enginevm.localdomain': {'unreachable': 0, 'skipped': 0, 'ok': 9, 'changed': 4, 'failures': 0}, u'.__doc__: "dict() -> new empty dictionary\\ndict(mapping) -> new dictionary initialized from a mapping object's\\n    (key, value) pairs\\ndict(iterable) -> new dictionary initialized as if via:\\n    d = {}\\n    for k, v in iterable:\\n        d[k] = v\\ndict(**kwargs) -> new dictionary initialized with the name=value pairs\\n    in the keyword argument list.  For example:  dict(one=1, two=2)"\n{u'enginevm.localdomain': {'unreachable': 0, 'skipped': 0, 'ok': 9, 'changed': 4, 'failures': 0}, u'.__hash__: None', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/create_target_vm.yml', 'ansible_type': 'finish'}


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

How reproducible:
100%

Steps to Reproduce:
1. deploy hosted-engine from cockpit
2.
3.

Actual results:
it fails on [Create configuration templates] task

Expected results:
Successful deployment

Additional info:

Comment 1 Yihui Zhao 2018-03-20 02:32:12 UTC
Cannot meet this issue , due to blocked by the bug: https://bugzilla.redhat.com/show_bug.cgi?id=1556866

Comment 3 Yihui Zhao 2018-03-22 08:01:42 UTC
Created attachment 1411629 [details]
failed_cockpit

Comment 8 Simone Tiraboschi 2018-03-22 11:10:48 UTC
Please test it with:
cockpit-ovirt >= 0.11.18-0.1
ovirt-hosted-engine-setup >= 2.2.14-1

Comment 9 Yihui Zhao 2018-03-26 07:29:36 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 results:

From the cockpit:
"""
[ INFO ] TASK [Set ha_version]
[ INFO ] ok: [localhost]
[ INFO ] TASK [Create configuration templates]
[ INFO ] TASK [Create configuration archive]
[ INFO ] changed: [localhost]
[ INFO ] TASK [Create ovirt-hosted-engine-ha run directory]
[ INFO ] ok: [localhost]
[ INFO ] TASK [Copy configuration files to the right location on host]
[ INFO ] TASK [Copy configuration archive to storage]
"""

It works well on the [Create configuration templates] task

So, change this bug's status to verified.

Comment 10 Sandro Bonazzola 2018-03-29 11:09:16 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.