Project

General

Profile

Bug #10516

Hide parameters in the installer that are not relevant to Katello (i.e. Foreman mysql options)

Added by Edgars Mazurs over 4 years ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

On RHEL7 systems MariaDB is the default DB rather than MySQL. However katello-installer is trying to install MySQL when --foreman-db-type=mysql is set.

Here is the relevant snippet from /usr/share/katello-installer/modules/mysql/manifests/params.pp

case $::osfamily {
'RedHat': {
if $::operatingsystem 'Fedora' and (is_integer($::operatingsystemrelease) and $::operatingsystemrelease >= 19 or $::operatingsystemrelease "Rawhide") {
$client_package_name = 'mariadb'
$server_package_name = 'mariadb-server'
} else {
$client_package_name = 'mysql'
$server_package_name = 'mysql-server'
}

So installer should also install mariadb and mariadb-server packages when operatingsystem is Redhat (or CentOS) and operatingsystemrelease is 7. Because in RHEL7 repos there is no mysql and mysql-server packages.


Related issues

Related to Katello - Feature #8125: As a user with multiple data centers, I need Katello to support MySQL backend so that I can use my fancy-schmancy replicated database universe for making sure Katello is happy when half the world blows up.New
Related to Katello - Bug #15112: expose/add more options to the installer (was: how to manually install katello)Rejected2016-05-20
Blocked by Kafo - Feature #11091: Ability to hide parameters from help in config fileNew2015-07-10

History

#1 Updated by Michael Moll over 4 years ago

  • Related to Feature #8125: As a user with multiple data centers, I need Katello to support MySQL backend so that I can use my fancy-schmancy replicated database universe for making sure Katello is happy when half the world blows up. added

#2 Updated by Michael Moll over 4 years ago

Katello does not support MySQL at the moment, maybe the mysql module should be removed from katello-installer until this is tackled...

Standalone Foreman without Katello is working just fine with MySQL.

#3 Updated by Edgars Mazurs over 4 years ago

Ok, thanks. I was following katello-installer --help

--foreman-db-type Database 'production' type (valid types: mysql/postgresql/sqlite) (default: "postgresql")

#4 Updated by Michael Moll over 4 years ago

Oh, I see... that's a parameter of the foreman module, that's explaining the original problem.

#5 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) changed from 51 to 31
  • Triaged changed from No to Yes

#6 Updated by Eric Helms about 4 years ago

  • Subject changed from katello-installer fails on RHEL7 with --foreman-db-type=mysql to katello-installer fails with --foreman-db-type=mysql

#7 Updated by Stephen Benjamin about 4 years ago

  • Blocked by Feature #11091: Ability to hide parameters from help in config file added

#8 Updated by Stephen Benjamin about 4 years ago

  • Project changed from Katello to Gutterball
  • Subject changed from katello-installer fails with --foreman-db-type=mysql to Hide
  • Legacy Backlogs Release (now unused) deleted (31)

#9 Updated by Stephen Benjamin about 4 years ago

  • Project changed from Gutterball to Katello
  • Subject changed from Hide to Hide parameters in the installer that are not relevant to Katello (i.e. Foreman mysql options)

#10 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

#11 Updated by Michael Moll about 3 years ago

  • Related to Bug #15112: expose/add more options to the installer (was: how to manually install katello) added

Also available in: Atom PDF