Bug 54801 - Роль icinga2 не работает
Summary: Роль icinga2 не работает
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: deploy (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-13 11:45 MSK by Aleksandr Sysoev
Modified: 2025-06-13 11:45 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandr Sysoev 2025-06-13 11:45:08 MSK
server-11.0.beta20250213-x86-64 обновленный до актуального состояния p11

# rpm -qa | grep deploy
deploy-0.4.4-alt1.noarch

# deploy icinga2
Deploying icinga2...
Executing playbook icinga2.yml

- deploy MariaDB database server and icinga2 on hosts: local -
install MariaDB server packages...
  localhost done | item: mariadb-server | msg: mariadb-server present(s)
  localhost done
start MariaDB service...
  localhost done
install icinga2 packages...
  localhost done | item: icinga2 | msg: icinga2 present(s)
  localhost done | item: icinga2-ido-mysql | msg: icinga2-ido-mysql present(s)
  localhost done | item: icingaweb2 | msg: icingaweb2 present(s)
  localhost done | item: icingaweb2-php-mysql | msg: icingaweb2-php-mysql present(s)
  localhost done | item: icingaweb2-nginx | msg: icingaweb2-nginx present(s)
  localhost done
create databases for icinga2...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
start icinga2 services...
  localhost done | item: icinga2
  localhost done | item: nginx
  localhost failed | item: php8.3-fpm | msg: Could not find the requested service php8.3-fpm: host
  localhost failed | msg: One or more items failed

- Play recap -
  localhost                  : ok=9    changed=9    unreachable=0    failed=1    rescued=0    ignored=0   
Error deploy icinga2

Если предварительно установить php8.3, php8.3-fpm-fcgi, то ошибка возникает на другом шаге, связанная с отсутствием php8.3-intl:
start icinga2 services...
  localhost done | item: icinga2
  localhost done | item: nginx
  localhost done | item: php8.3-fpm
  localhost done
setup icinga2 api...
  localhost failed | msg: non-zero return code | stderr: PHP Fatal error:  Uncaught Error: Class "Locale" not found in /usr/share/icinga-php/ipl/vendor/ipl/i18n/src/GettextTranslator.php:199
Stack trace:
#0 /usr/share/icingaweb2/library/Icinga/Application/ApplicationBootstrap.php(702): ipl\I18n\GettextTranslator->setLocale('en_US')
#1 /usr/share/icingaweb2/library/Icinga/Application/Cli.php(45): Icinga\Application\ApplicationBootstrap->setupInternationalization()
#2 /usr/share/icingaweb2/library/Icinga/Application/ApplicationBootstrap.php(388): Icinga\Application\Cli->bootstrap()
#3 /usr/bin/icingacli(7): Icinga\Application\ApplicationBootstrap::start('/usr/share/icin...')
#4 {main}
  thrown in /usr/share/icinga-php/ipl/vendor/ipl/i18n/src/GettextTranslator.php on line 199
Fatal error: Uncaught Error: Class "Locale" not found in /usr/share/icinga-php/ipl/vendor/ipl/i18n/src/GettextTranslator.php:199
Stack trace:
#0 /usr/share/icingaweb2/library/Icinga/Application/ApplicationBootstrap.php(702): ipl\I18n\GettextTranslator->setLocale('en_US')
#1 /usr/share/icingaweb2/library/Icinga/Application/Cli.php(45): Icinga\Application\ApplicationBootstrap->setupInternationalization()
#2 /usr/share/icingaweb2/library/Icinga/Application/ApplicationBootstrap.php(388): Icinga\Application\Cli->bootstrap()
#3 /usr/bin/icingacli(7): Icinga\Application\ApplicationBootstrap::start('/usr/share/icin...')
#4 {main}
  thrown in /usr/share/icinga-php/ipl/vendor/ipl/i18n/src/GettextTranslator.php on line 199

- Play recap -
  localhost                  : ok=10   changed=10   unreachable=0    failed=1    rescued=0    ignored=0   
Error deploy icinga2