<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>54801</bug_id>
          
          <creation_ts>2025-06-13 11:45:08 +0300</creation_ts>
          <short_desc>Роль icinga2 не работает</short_desc>
          <delta_ts>2025-06-13 11:45:08 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>deploy</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aleksandr Sysoev">sysoevas</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
    
    <cc>nexxy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>267151</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksandr Sysoev">sysoevas</who>
    <bug_when>2025-06-13 11:45:08 +0300</bug_when>
    <thetext>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 &apos;/usr/bin/mariadb&apos; instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use &apos;/usr/bin/mariadb&apos; instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use &apos;/usr/bin/mariadb&apos; instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use &apos;/usr/bin/mariadb&apos; instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use &apos;/usr/bin/mariadb&apos; instead
shell...
  localhost done | stderr: mysql: Deprecated program name. It will be removed in a future release, use &apos;/usr/bin/mariadb&apos; 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 &quot;Locale&quot; 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-&gt;setLocale(&apos;en_US&apos;)
#1 /usr/share/icingaweb2/library/Icinga/Application/Cli.php(45): Icinga\Application\ApplicationBootstrap-&gt;setupInternationalization()
#2 /usr/share/icingaweb2/library/Icinga/Application/ApplicationBootstrap.php(388): Icinga\Application\Cli-&gt;bootstrap()
#3 /usr/bin/icingacli(7): Icinga\Application\ApplicationBootstrap::start(&apos;/usr/share/icin...&apos;)
#4 {main}
  thrown in /usr/share/icinga-php/ipl/vendor/ipl/i18n/src/GettextTranslator.php on line 199
Fatal error: Uncaught Error: Class &quot;Locale&quot; 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-&gt;setLocale(&apos;en_US&apos;)
#1 /usr/share/icingaweb2/library/Icinga/Application/Cli.php(45): Icinga\Application\ApplicationBootstrap-&gt;setupInternationalization()
#2 /usr/share/icingaweb2/library/Icinga/Application/ApplicationBootstrap.php(388): Icinga\Application\Cli-&gt;bootstrap()
#3 /usr/bin/icingacli(7): Icinga\Application\ApplicationBootstrap::start(&apos;/usr/share/icin...&apos;)
#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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>