Bug 1422880 - [RFE] Allow sync of configuration when adding a new host
Summary: [RFE] Allow sync of configuration when adding a new host
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Host-Deploy
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Ondra Machacek
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-16 13:05 UTC by Gianluca Cecchi
Modified: 2017-02-27 12:35 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-17 13:31:12 UTC
oVirt Team: Infra
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

Description Gianluca Cecchi 2017-02-16 13:05:06 UTC
Description of problem:
If you have a pre-existing cluster and you add a new host, it gets default values for conf files (vdsm.conf, multipath.conf, ecc..)

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

How reproducible:


Steps to Reproduce:
1. Add new host to existing infrastructure
2. Verify its settings
3. vdsm.conf is default and no sync with /etc/vdsm/vdsm.conf.d entries

Actual results:
host has to be manually aligned with pre-existing ones

Expected results:
automatic alignment or proposal of alignment of some files like vdsm.conf and multipath.conf

Additional info:

Comment 1 Yaniv Kaul 2017-02-16 13:24:36 UTC
So essentially, a vdsm.conf per cluster?

Comment 2 Gianluca Cecchi 2017-02-16 13:28:13 UTC
I think host in a cluster are tightly connected, so it would be nice to have a sort of sync.
Or eventually some tool, initiated from inside the web admin gui that is able to crosscheck the config of the hosts and notify about discrepancy between config of the hosts...

Comment 3 Nir Soffer 2017-02-16 13:44:47 UTC
I don't think we need to sync vdsm configuration, this will disable the option
to have different configuration on one host.

What we need is to manage the configuration in engine, and when adding a new host
install the cluster configuration in /etc/vdsm.conf.d/50_cluster.conf.

A system administrator can override settings on particular host by having
/etc/vdsm/vdsm.conf.d/99_my_cluster.conf file (conf file are sorted and last
settings wins).

This configuration can be stored when adding or reinstalling a host, we already
do this for the pki files, why not for vdsm configuration?

Same solution will also solve multipath and lvm configuration, done now by
vdsm-tool configure step.

Comment 4 Yaniv Kaul 2017-02-16 14:01:15 UTC
This all sounds very suitable for Ansible. We should perhaps pack it with our Ansible modules and have it so users will be able to easily use it.
Ondra, thoughts?

Comment 5 Ondra Machacek 2017-02-16 15:38:33 UTC
This can be solved very easily with simple playbook and using 'ovirt-engine-hosts-ansible-inventory'. Do we want to integrate it with webadmin, or is using ansible from command line sufficient?

Comment 6 Nir Soffer 2017-02-16 16:31:07 UTC
Adding a host to a cluster is a core feature of the system, user may expect that
using engine to add a host does everything needed without running a separate
command line tool to complete the task.

Comment 7 Michal Skrivanek 2017-02-17 07:35:31 UTC
If there is a need for engine-defined configuration to be applied to cluster or group of hosts - it should be a regular property sent by regular API channels. Either extend the API with new parameter or use existing spec params or custom properties.

Comment 8 Oved Ourfali 2017-02-17 13:31:12 UTC
That was discussed in the past, and the decision was not to sync vdsm.conf and other host configuration files. This won't be done out of the box within the engine. 
There were some ideas here, Gianluca, I think ansible was the easier one, but any configuration management tool can be used to set this up. Foreman as well, for example. I'm closing this as wontfix. If you need help with ansible, use the mailing list and we'll be happy to help.


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