icinga-installer
icinga-installer copied to clipboard
Can't re-run Icinga-Installer in Interactive Mode
Please try to fill out as much of the information below as you can. Thank you!
- [X] Yes, I've searched similar issues on GitHub and didn't find any.
Which version contains the bug?
2.0.0-1.bookworm all
Describe the bug
When I try to re-run the Icinga installer on our master and satellites to make configuration changes, I get the following error message.
Could not get default values, check log file at /var/log/icinga-installer/worker.log for more information
worker.log
2024-09-26 13:14:32 [DEBUG ] [root] Creating execution environment in /tmp/kafo_installation20240926-704219-10z8ptc 2024-09-26 13:14:32 [DEBUG ] [root] Configuring Puppet in /tmp/kafo_installation20240926-704219-10z8ptc 2024-09-26 13:14:32 [DEBUG ] [root] Writing facts to /tmp/kafo_installation20240926-704219-10z8ptc/facts 2024-09-26 13:14:32 [DEBUG ] [root] checking presence of /usr/share/icinga-installer/modules/install/manifests/params.pp 2024-09-26 13:14:32 [DEBUG ] [root] checking presence of /usr/share/icinga-installer/modules/install/manifests/params.pp 2024-09-26 13:14:32 [DEBUG ] [root] checking presence of /usr/share/icinga-installer/modules/install/manifests/params.pp 2024-09-26 13:14:32 [DEBUG ] [root] checking presence of /usr/share/icinga-installer/modules/install/manifests/params.pp 2024-09-26 13:14:32 [DEBUG ] [root] checking presence of /usr/share/icinga-installer/modules/install/manifests/web/params.pp 2024-09-26 13:14:32 [INFO ] [root] Loading default values from puppet modules... 2024-09-26 13:14:32 [DEBUG ] [root] Writing Puppet config file at /tmp/kafo_installation20240926-704219-10z8ptc/puppet.conf 2024-09-26 13:14:32 [DEBUG ] [root] echo ' $kafo_config_file="/etc/icinga-installer/scenarios.d/server-db-mysql.yaml" kafo_configure::puppet_version_semver { "puppetlabs-apache": requirement => ">= 7.9.0 < 9.0.0", }
kafo_configure::puppet_version_semver { "puppetlabs-apt": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-archive": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-concat": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-extlib": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-icinga": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-icinga2": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-icingadb": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-icingaweb2": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-inifile": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "icinga-installer": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-mysql": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-php": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-postgresql": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-redis": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-stdlib": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-systemd": requirement => ">= 7.0.0 < 9.0.0", } include install::params class { '::kafo_configure::dump_values': lookups => ["install::icingadb::db_port","install::icingadb::redis_bind","install::icingadb::redis_port","install::icingadb::redis_password","install::features::elastic_username","install::features::elastic_password","install::web::db_port","install::web::icingadb_db_port","install::web::redis_port","install::web::redis_password","install::web::ido_db_port","install::web::director_db_port","install::web::reporting_db_port","install::web::reporting_mail"], variables => ["install::params::configure_backports","install::params::manage_epel","install::params::ticket_salt","install::params::web_api_password","install::params::director_api_password","install::params::icingadb_db_password","install::params::initial_admin_password","install::params::web_db_password","install::params::web_api_password","install::params::icingadb_db_password","install::params::ido_db_password","install::params::director_db_password","install::params::director_endpoint","install::params::director_api_password","install::params::reporting_db_password"], } ' | RUBYLIB=/usr/lib/ruby/vendor_ruby/kafo/modules: /opt/puppetlabs/bin/puppet apply --config=/tmp/kafo_installation20240926-704219-10z8ptc/puppet.conf2024-09-26 13:14:36 [DEBUG ] [root] 2024-09-26 13:14:36 [DEBUG ] [root] Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'kafo_configure::puppet_version_semver' (line: 3, column: 17) on node icinga2.intern.compose.de
2024-09-26 13:14:36 [ERROR ] [root] echo ' $kafo_config_file="/etc/icinga-installer/scenarios.d/server-db-mysql.yaml" kafo_configure::puppet_version_semver { "puppetlabs-apache": requirement => ">= 7.9.0 < 9.0.0", }
kafo_configure::puppet_version_semver { "puppetlabs-apt": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-archive": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-concat": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-extlib": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-icinga": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-icinga2": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-icingadb": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-icingaweb2": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-inifile": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "icinga-installer": requirement => ">= 7.9.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-mysql": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-php": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-postgresql": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-redis": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppetlabs-stdlib": requirement => ">= 7.0.0 < 9.0.0", } kafo_configure::puppet_version_semver { "puppet-systemd": requirement => ">= 7.0.0 < 9.0.0", } include install::params class { '::kafo_configure::dump_values': lookups => ["install::icingadb::db_port","install::icingadb::redis_bind","install::icingadb::redis_port","install::icingadb::redis_password","install::features::elastic_username","install::features::elastic_password","install::web::db_port","install::web::icingadb_db_port","install::web::redis_port","install::web::redis_password","install::web::ido_db_port","install::web::director_db_port","install::web::reporting_db_port","install::web::reporting_mail"], variables => ["install::params::configure_backports","install::params::manage_epel","install::params::ticket_salt","install::params::web_api_password","install::params::director_api_password","install::params::icingadb_db_password","install::params::initial_admin_password","install::params::web_db_password","install::params::web_api_password","install::params::icingadb_db_password","install::params::ido_db_password","install::params::director_db_password","install::params::director_endpoint","install::params::director_api_password","install::params::reporting_db_password"], } ' | RUBYLIB=/usr/lib/ruby/vendor_ruby/kafo/modules: /opt/puppetlabs/bin/puppet apply --config=/tmp/kafo_installation20240926-704219-10z8ptc/puppet.conf2024-09-26 13:14:36 [ERROR ] [root] Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'kafo_configure::puppet_version_semver' (line: 3, column: 17) on node icinga2.intern.compose.de
2024-09-26 13:14:36 [ERROR ] [root] Could not get default values, cannot continue 2024-09-26 13:14:36 [DEBUG ] [root] Exit with status code: 25 (signal was defaults_error) 2024-09-26 13:14:36 [DEBUG ] [root] Cleaning /tmp/kafo_installation20240926-704219-10z8ptc 2024-09-26 13:14:36 [DEBUG ] [root] Cleaning /tmp/default_values.yaml 2024-09-26 13:14:36 [DEBUG ] [root] Exit with status code: 25 (signal was 25) 2024-09-26 13:14:36 [DEBUG ] [root] Cleaning /tmp/kafo_installation20240926-704219-10z8ptc 2024-09-26 13:14:36 [DEBUG ] [root] Cleaning /tmp/default_values.yaml
Installed Puppet Packets
puppet-agent-ansi/unbekannt,now 1.5.0-1.bookworm all [Installiert,automatisch] puppet-agent-clamp/unbekannt,now 1.3.2-1.bookworm all [Installiert,automatisch] puppet-agent-hashie/unbekannt,now 5.0.0-1.bookworm all [Installiert,automatisch] puppet-agent-highline/unbekannt,now 2.1.0-1.bookworm all [Installiert,automatisch] puppet-agent-kafo-parsers/unbekannt,now 1.2.1-1.bookworm all [Installiert,automatisch] puppet-agent-kafo-wizards/unbekannt,now 0.0.2-1.bookworm all [Installiert,automatisch] puppet-agent-kafo/unbekannt,now 7.5.0-1.bookworm all [Installiert,automatisch] puppet-agent-little-plugger/unbekannt,now 1.1.4-1.bookworm all [Installiert,automatisch] puppet-agent-logging/unbekannt,now 2.3.1-1.bookworm all [Installiert,automatisch] puppet-agent-powerbar/unbekannt,now 2.0.1-1.bookworm all [Installiert,automatisch] puppet-agent/bookworm,now 7.33.0-1bookworm amd64 [Installiert,automatisch]
OS
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Am I doing something wrong or is it a bug? This has worked before without issues.
How to recreate the bug?
Re-Run Icinga Installer in Interactive Mode
Thx for the report. I've some questions.
- Which version of puppet is used?
- Is the installer setup an update from a previous version or a clean setup?
- Did you have run the installer before with another scenario?
Thx Lennart
Hi Lennart,
- Puppet Version is 7.33.0
- It's an Update from a previous Version via the Netways Repo.
- Yes, initially we had run the installer with the scenario "server-db-mysql"
Best regards Felix
Ok, simple answer - you're not allowed to change the scenario.
If you really wanna do this, keep in mind you will have many packages installed on the system that you do not need and may be running processes. To do a change of the scenario delete the link /etc/icinga-installer/scenario.d/last_scenario.yaml.
I've tried to rerun with the Scenario "server-db-mysql" but got the same error.
root@icinga2:~# icinga-installer -S server-db-mysql Could not get default values, check log file at /var/log/icinga-installer/server-db-mysql.log for more information
Sorry for the long break. Today I have some time again to take a look at the update behavior.
@citfs I wasn't able to setup a previous version because out packages server lost a erequired version of ruby-clamd and I wasn't able to rebuild the needed version. If you use Puppet agent >= 7.9.0, did you try to purge the Iicnga Installer and reinstall the current version? Maybe backup the files /etc/icinga-installer/custom-hiera.yaml and /etc/icinga-installer/scenario.d/server-db-icingadb-answer.yaml. Bit if you wanna change the scenario that isn't necessary.
We will be sunsetting this project. lbetz might be able to help here https://github.com/lbetz/icinga-installer