Bug 1542148 - ovirt-host should enable cockpit by default
Summary: ovirt-host should enable cockpit by default
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: Documentation
Version: ---
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ovirt-4.2.2
: ---
Assignee: Ido Rosenzwig
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-05 17:05 UTC by Nikolai Sednev
Modified: 2018-03-29 11:01 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-29 11:01:40 UTC
oVirt Team: Docs
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: blocker+
sbonazzo: devel_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1494521 0 medium CLOSED cockpit is not started on deployed hosts 2021-02-22 00:41:40 UTC

Internal Links: 1494521

Description Nikolai Sednev 2018-02-05 17:05:27 UTC
Description of problem:
ovirt-host should enable cockpit by default

Version-Release number of selected component (if applicable):
cockpit-ovirt-dashboard-0.11.9-0.1.el7ev.noarch
ovirt-hosted-engine-setup-2.2.9-1.el7ev.noarch
ovirt-hosted-engine-ha-2.2.4-1.el7ev.noarch
Red Hat Enterprise Linux Server release 7.4 (Maipo)

How reproducible:
100%

Steps to Reproduce:
1.On cleanly reprovisioned RHEL7.4, install ovirt-hosted-engine-setup.
2.Check for cockpit service, it appears off, while should be enabled and running, just like it is on RHEVH-NGN.

Actual results:
Customer have to manually enable cockpit service.

Expected results:
Cockpit service should be automatically enabled and started after hosted-engine installed on RHEL based host, just like its happening on RHEVH-NGN hosts.

Additional info:

Comment 1 Sandro Bonazzola 2018-02-06 07:41:18 UTC
Pavol, this has been fixed and verified working in 4.2.0 with bug #1494521.
Can you please try to reproduce with 4.2.1 and attach deployment logs?

Comment 2 Red Hat Bugzilla Rules Engine 2018-02-06 07:41:26 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Yedidyah Bar David 2018-02-21 06:12:09 UTC
I think I looked at this bug some time ago, didn't fully understand, and then didn't add any comment :-(

The bug is on ovirt-host-deploy, the description says "ovirt-host should enable cockpit by default", but the steps say "On cleanly reprovisioned RHEL7.4, install ovirt-hosted-engine-setup.".

I am pretty certain now that the intent is to fix the flow in the "steps" - that is, on the installation of the first hosted-engine host.

ovirt-host-deploy already fixed this bug, as Sandro mentioned above, but that's not helpful for the requested flow (which is before ovirt-host-deploy runs).

Although it might be solved (if at all) either in ovirt-host or ovirt-hosted-engine-setup, I think the latter makes more sense to me, thus moving there.

Also noting that it might make sense to make this a platform bug - to require that EL (any, or some common subset or whatever) will always install/configure/enable/open/etc cockpit.

Comment 4 Simone Tiraboschi 2018-02-21 18:44:45 UTC
Not sure that enabling a service and opening firewall ports simply getting an rpm installed as a dependency is a good idea, I'd suggest to move to doc.

Comment 5 Sandro Bonazzola 2018-02-22 08:07:01 UTC
(In reply to Simone Tiraboschi from comment #4)
> Not sure that enabling a service and opening firewall ports simply getting
> an rpm installed as a dependency is a good idea, I'd suggest to move to doc.

I agree. We can somehow simplify the process by providing an ansible role for configuring a host to be ready to deploy hosted engine through cockpit, enabling the services and opening the firewall ports. Maybe infra team already did something in this area. Martin?

Comment 6 Ido Rosenzwig 2018-02-25 08:00:31 UTC
Added PR on the ovirt upstream site:
https://github.com/oVirt/ovirt-site/pull/1536

Comment 8 Martin Perina 2018-03-06 09:09:52 UTC
(In reply to Sandro Bonazzola from comment #5)
> (In reply to Simone Tiraboschi from comment #4)
> > Not sure that enabling a service and opening firewall ports simply getting
> > an rpm installed as a dependency is a good idea, I'd suggest to move to doc.
> 
> I agree. We can somehow simplify the process by providing an ansible role
> for configuring a host to be ready to deploy hosted engine through cockpit,
> enabling the services and opening the firewall ports. Maybe infra team
> already did something in this area. Martin?

We are configuring firewalld cockpit service during host-deploy [1]. Do I understand that you want to do that configuration even before host-deploy is executed for the host? If so, then I'd say this should be added into Ansible role, which executes hosted-engine installation (not sure if it already exists, but I know we have talked about it as an possible RFE to enable complete engine or hosted engine installation via Ansible role.



[1] https://github.com/oVirt/ovirt-engine/blob/master/packaging/playbooks/roles/ovirt-host-deploy-firewalld/vars/firewalld_rules_common.yml#L3

Comment 9 Sandro Bonazzola 2018-03-29 11:01:40 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.


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