Bug 1543486 - [ansible based] Default cluster in HC installation does not have gluster service enabled
Summary: [ansible based] Default cluster in HC installation does not have gluster serv...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: cockpit-ovirt
Classification: oVirt
Component: Gdeploy
Version: ---
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: ovirt-4.2.3
: ---
Assignee: Phillip Bailey
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1458709 1543346
TreeView+ depends on / blocked
 
Reported: 2018-02-08 14:40 UTC by Sahina Bose
Modified: 2018-05-23 08:22 UTC (History)
10 users (show)

Fixed In Version: cockpit-ovirt-0.11.23-1
Clone Of: 1543346
Environment:
Last Closed: 2018-05-23 08:22:17 UTC
oVirt Team: Gluster
Embargoed:
rule-engine: ovirt-4.2+
ylavi: blocker+
ykaul: planning_ack+
rule-engine: devel_ack+
sasundar: testing_ack+


Attachments (Terms of Use)
Edit cluster tab (45.24 KB, image/png)
2018-05-11 13:50 UTC, SATHEESARAN
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 88187 0 master MERGED ansible: enable gluster at cluster level 2018-09-03 09:35:18 UTC
oVirt gerrit 88303 0 ovirt-hosted-engine-setup-2.2 MERGED ansible: enable gluster at cluster level 2018-02-28 16:34:44 UTC
oVirt gerrit 90449 0 master MERGED wizard: Enable HC gluster service for HCCI 2018-04-24 17:52:12 UTC
oVirt gerrit 90606 0 ovirt-4.2 MERGED wizard: Enable HC gluster service for HCCI 2018-04-24 17:52:35 UTC
oVirt gerrit 91135 0 master ABANDONED Enabling Gluster Service during HE deployment 2018-05-18 05:51:19 UTC

Description Sahina Bose 2018-02-08 14:40:42 UTC
Description of problem:
For HC install, where gluster is enabled - the default cluster in engine does not have gluster service enabled. This is in the ansible based deployment

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


How reproducible:
Always

Steps to Reproduce:
Setup Hosted Engine with GLuster and continue to hosted-engine deployment

Actual results:


Expected results:

Comment 1 SATHEESARAN 2018-04-17 07:58:47 UTC
Tested with ovirt-hosted-engine-setup-2.2.16-1 and ansible-2.5.0-1.el7ae.noarch.

After hosted-engine deployment, from the RHV UI, I could still see that only virt capability is enabled on the cluster, but not the gluster capability.

@Simone, could you help on this issue ?

Comment 2 Red Hat Bugzilla Rules Engine 2018-04-17 07:58:53 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 3 Simone Tiraboschi 2018-04-18 09:44:54 UTC
Gluster service will be enabled at cluster level if ENABLE_HC_GLUSTER_SERVICE is set:
https://github.com/oVirt/ovirt-hosted-engine-setup/blob/master/src/ansible/bootstrap_local_vm.yml#L289

From CLI it works as expected, we need to understand if the cockpit wizard correctly passes it.

Comment 4 Simone Tiraboschi 2018-04-18 11:09:07 UTC
In the console logs from cockpit wizard I see: "Gluster values successfully added." and indeed the configuration of my volume comes from there but ENABLE_HC_GLUSTER_SERVICE is not set.

By the way ENABLE_HC_GLUSTER_SERVICE is neither in the answer file generated by gdeploy

[root@c74he20180302h1 ~]# cat /var/lib/ovirt-hosted-engine-setup/answers/he-answer.conf 
[environment:default]
OVEHOSTED_STORAGE/storageDomainConnection=str:c74he20180302h1.localdomain:/engine
OVEHOSTED_STORAGE/mntOptions=str:backup-volfile-servers=c74he20180302h2.localdomain:c74he20180302h3.localdomain

Comment 5 Sahina Bose 2018-04-18 11:41:55 UTC
Gobinda, can you add ENABLE_HC_GLUSTER_SERVICE to the he-answers file generated by gdeploy?

Comment 6 bipin 2018-05-02 11:35:57 UTC
Phillip,

In the latest cockpit-ovirt-0.11.23-1 ,i still see no gluster service enabled. 

Component version:
gdeploy-2.0.2-26.el7rhgs.noarch
cockpit-ovirt-dashboard-0.11.23-1.el7ev.noarch

Comment 7 Phillip Bailey 2018-05-09 12:51:31 UTC
(In reply to bipin from comment #6)
> Phillip,
> 
> In the latest cockpit-ovirt-0.11.23-1 ,i still see no gluster service
> enabled. 

Bipin,

Could you please try to reproduce? The flag is passed correctly in all my tests and I'm showing that the service is enabled in the engine when it's supposed to be.

Comment 8 SATHEESARAN 2018-05-10 02:39:35 UTC
(In reply to Phillip Bailey from comment #7)
> (In reply to bipin from comment #6)
> > Phillip,
> > 
> > In the latest cockpit-ovirt-0.11.23-1 ,i still see no gluster service
> > enabled. 
> 
> Bipin,
> 
> Could you please try to reproduce? The flag is passed correctly in all my
> tests and I'm showing that the service is enabled in the engine when it's
> supposed to be.

Hi Philip,

I have again retested with RHV 4.2.3 and cockpit-ovirt-dashboard-0.11.24

Again gluster service is not turned on by default on the cluster.

What logs do you need ? We did installation on 3 systems, and all the machines have the same problem. I could also provide you the live setup for investigation

Comment 9 Phillip Bailey 2018-05-10 12:06:59 UTC
(In reply to SATHEESARAN from comment #8)
> What logs do you need ? We did installation on 3 systems, and all the
> machines have the same problem. I could also provide you the live setup for
> investigation

Hi Satheesaran,

Could you please post the ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-* log from /var/log/ovirt-hosted-engine-setup? I'd like to see what's being passed in the var file. I can decide from there whether access to the test environment will be helpful.

Thank you!

Comment 11 bipin 2018-05-10 12:22:34 UTC
Philip,

Have attached the log.

Could see the below in the logs:

ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-20180509112008-ymv7it.log:2018-05-09 11:25:30,572+0530 INFO ansible task start {'status': 'OK', 'ansible_task': u'Enable GlusterFS at cluster level', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/bootstrap_local_vm.yml', 'ansible_type': 'task'}
ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-20180509112008-ymv7it.log:2018-05-09 11:25:30,572+0530 DEBUG ansible on_any args TASK: Enable GlusterFS at cluster level kwargs is_conditional:False 
ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-20180509112008-ymv7it.log:2018-05-09 11:25:31,060+0530 INFO ansible skipped {'status': 'SKIPPED', 'ansible_task': u'Enable GlusterFS at cluster level', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/bootstrap_local_vm.yml', 'ansible_type': 'task'}

Comment 12 Phillip Bailey 2018-05-10 22:18:07 UTC
I tested the current build on the provided test environment and it worked as expected. I disabled and stopped glusterd on the host before installation. Installation was successful. The glusterd service was both enabled and running after installation completed. Pertinent lines from the logs are below.

Could you please check the results on grafton10 and let me know if you have any questions and how you'd like to proceed?

/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-2018410154458-1fzj3y.log

2018-05-11 01:14:59,257+0530 DEBUG var changed: host "localhost" var "ENABLE_HC_GLUSTER_SERVICE" type "<type 'bool'>" value: "True"

2018-05-11 01:19:19,922+0530 INFO ansible task start {'status': 'OK', 'ansible_task': u'Enable GlusterFS at cluster level', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/bootstrap_local_vm.yml', 'ansible_type':'task'}
2018-05-11 01:19:19,922+0530 DEBUG ansible on_any args TASK: Enable GlusterFS at cluster level kwargs is_conditional:False 
2018-05-11 01:19:21,472+0530 INFO ansible ok {'status': 'OK', 'ansible_task': u'Enable GlusterFS at cluster level', 'ansible_host': u'localhost', 'ansible_playbook':u'/usr/share/ovirt-hosted-engine-setup/ansible/bootstrap_local_vm.yml', 'ansible_type': 'task'}

------------

/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-20180511011949-test.example.com-5b2a47da.log

2018-05-11 01:19:27,144+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ***Q:STRING CUSTOMIZATION_COMMAND
2018-05-11 01:19:27,144+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       **%QEnd: CUSTOMIZATION_COMMAND
2018-05-11 01:19:27,146+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:RECEIVE    env-query -k GLUSTER/enable
2018-05-11 01:19:27,146+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       **%QStart: GLUSTER/enable
2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ###
2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ### Please specify value for 'GLUSTER/enable':
2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ### Response is VALUE GLUSTER/enable=type:value or ABORT GLUSTER/enable
2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       ***Q:VALUE GLUSTER/enable
2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:SEND       **%QEnd: GLUSTER/enable
2018-05-11 01:19:27,148+0530 DEBUG otopi.plugins.otopi.dialog.machine dialog.__logString:204 DIALOG:RECEIVE    VALUE GLUSTER/enable=bool:true

Comment 13 SATHEESARAN 2018-05-11 13:47:02 UTC
(In reply to Phillip Bailey from comment #12)
> I tested the current build on the provided test environment and it worked as
> expected. I disabled and stopped glusterd on the host before installation.
> Installation was successful. The glusterd service was both enabled and
> running after installation completed. Pertinent lines from the logs are
> below.
> 
> Could you please check the results on grafton10 and let me know if you have
> any questions and how you'd like to proceed?
> 
> /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-ansible-
> bootstrap_local_vm-2018410154458-1fzj3y.log
> 
> 2018-05-11 01:14:59,257+0530 DEBUG var changed: host "localhost" var
> "ENABLE_HC_GLUSTER_SERVICE" type "<type 'bool'>" value: "True"
> 
> 2018-05-11 01:19:19,922+0530 INFO ansible task start {'status': 'OK',
> 'ansible_task': u'Enable GlusterFS at cluster level', 'ansible_playbook':
> u'/usr/share/ovirt-hosted-engine-setup/ansible/bootstrap_local_vm.yml',
> 'ansible_type':'task'}
> 2018-05-11 01:19:19,922+0530 DEBUG ansible on_any args TASK: Enable
> GlusterFS at cluster level kwargs is_conditional:False 
> 2018-05-11 01:19:21,472+0530 INFO ansible ok {'status': 'OK',
> 'ansible_task': u'Enable GlusterFS at cluster level', 'ansible_host':
> u'localhost',
> 'ansible_playbook':u'/usr/share/ovirt-hosted-engine-setup/ansible/
> bootstrap_local_vm.yml', 'ansible_type': 'task'}
> 
> ------------
> 
> /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-20180511011949-test.
> example.com-5b2a47da.log
> 
> 2018-05-11 01:19:27,144+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:SEND       ***Q:STRING CUSTOMIZATION_COMMAND
> 2018-05-11 01:19:27,144+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:SEND       **%QEnd: CUSTOMIZATION_COMMAND
> 2018-05-11 01:19:27,146+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:RECEIVE    env-query -k GLUSTER/enable
> 2018-05-11 01:19:27,146+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:SEND       **%QStart: GLUSTER/enable
> 2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:SEND       ###
> 2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:SEND       ### Please specify value for
> 'GLUSTER/enable':
> 2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:SEND       ### Response is VALUE
> GLUSTER/enable=type:value or ABORT GLUSTER/enable
> 2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:SEND       ***Q:VALUE GLUSTER/enable
> 2018-05-11 01:19:27,147+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:SEND       **%QEnd: GLUSTER/enable
> 2018-05-11 01:19:27,148+0530 DEBUG otopi.plugins.otopi.dialog.machine
> dialog.__logString:204 DIALOG:RECEIVE    VALUE GLUSTER/enable=bool:true

Phillip,

I think you have mistaken it for gluster service at the systemd level.

The issue is related to the 'gluster' service not enabled on the gluster.
When you create or edit the cluster from RHV Manager UI, you can see that there are 2 checkboxed one for virt service, and other gluster service. For hyperconverged setup both of these needs to enabled. But currently we do see that only virt service is enabled on the cluster

Let me past the screenshot post this comment. Hope that clarifies

Comment 14 SATHEESARAN 2018-05-11 13:50:13 UTC
Created attachment 1434919 [details]
Edit cluster tab

Screenshot of cluster, while editing

Comment 15 Simone Tiraboschi 2018-05-11 14:24:11 UTC
(In reply to SATHEESARAN from comment #13)
> > 2018-05-11 01:19:27,148+0530 DEBUG otopi.plugins.otopi.dialog.machine
> > dialog.__logString:204 DIALOG:RECEIVE    VALUE GLUSTER/enable=bool:true
> 
> Phillip,
> 
> I think you have mistaken it for gluster service at the systemd level.
> 
> The issue is related to the 'gluster' service not enabled on the gluster.
> When you create or edit the cluster from RHV Manager UI, you can see that
> there are 2 checkboxed one for virt service, and other gluster service. For
> hyperconverged setup both of these needs to enabled. But currently we do see
> that only virt service is enabled on the cluster
> 
> Let me past the screenshot post this comment. Hope that clarifies

Philip pointed out host-deploy logs and the engine is going to enable and configure the gluster service on the host only if the gluster server is enabled at cluster level.

Comment 16 SATHEESARAN 2018-05-11 14:40:14 UTC
(In reply to Simone Tiraboschi from comment #15)
> Philip pointed out host-deploy logs and the engine is going to enable and
> configure the gluster service on the host only if the gluster server is
> enabled at cluster level.

So in the hyperconverged cases, the cluster should have got the 'gluster' service enabled, before the addition of first host ( HE host ) to this cluster. Currently this is not happening.

Comment 17 SATHEESARAN 2018-05-15 09:08:32 UTC
Looks like with the latest RHVH build -  rhvh-4.2.3.0-0.20180508.0+1
 - I observe that the gluster service is enabled on the cluster by default.

The infra was used earlier and the test failed as commented in comment8
Not sure why.

I repeated this test multiple times with latest RHVH and finding the gluster service is always enabled on the cluster.

Phillip, Could this bug be moved ON_QA for verification ?

Comment 18 Phillip Bailey 2018-05-15 11:42:54 UTC
(In reply to SATHEESARAN from comment #17)
> Phillip, Could this bug be moved ON_QA for verification ?

Simone got to it before me, but I concur with it being moved to ON_QA.

Comment 19 SATHEESARAN 2018-05-16 08:47:45 UTC
Tested with RHV-4.2.3-5 and glusterfs-3.12 with ovirt-hosted-engine-setup-2.2.20-1.el7ev.noarch

gluster service is enabled in the 'Default' cluster along with 'virt' service

Comment 20 Sandro Bonazzola 2018-05-23 08:22:17 UTC
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018.

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