Bug 41623 - Не хватает зависимости на java
Summary: Не хватает зависимости на java
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: puppetserver (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Danil Shein
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-24 11:33 MSK by Alexander Makeenkov
Modified: 2022-02-17 14:09 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 Alexander Makeenkov 2021-12-24 11:33:11 MSK
Если в системе не установлена java, то puppetserver становится нерабочий.
Столкнулся с данной проблемной на системе ALT Workstation K 10.0 BETA, на которой java по умолчанию не установлена в дистрибутиве.

-== Шаги воспроизведения ==-
# hostnamectl set-hostname master
# apt-get install puppetserver
# cat > /etc/puppet/puppet.conf <<EOF
[master]
certname = master

[main]
server = master
environment = production
runinterval = 15m
EOF
# systemctl start puppetserver; systemctl status puppetserver
# l /etc/puppet/ssl/private_keys/master.pem; l /etc/puppet/ssl/certs/{master.pem,ca.pem}

-== Результат ==-
После запуска сервиса ключ и сертификат не создались.

Статус сервиса без установленной java:
# systemctl status puppetserver
● puppetserver.service - LSB: puppetserver
     Loaded: loaded (/etc/rc.d/init.d/puppetserver; generated)
     Active: active (exited) since Fri 2021-12-24 11:22:25 MSK; 3s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 7253 ExecStart=/etc/rc.d/init.d/puppetserver start (code=exited, status=0/SUCCESS)
        CPU: 12ms

дек 24 11:22:25 master systemd[1]: Starting LSB: puppetserver...
дек 24 11:22:25 master systemd[1]: Started LSB: puppetserver.

С установленной:
# systemctl status puppetserver
● puppetserver.service - LSB: puppetserver
     Loaded: loaded (/etc/rc.d/init.d/puppetserver; generated)
     Active: active (running) since Fri 2021-12-24 11:19:18 MSK; 8s ago
       Docs: man:systemd-sysv-generator(8)
    Process: 6004 ExecStart=/etc/rc.d/init.d/puppetserver start (code=exited, status=0/SUCCESS)
      Tasks: 71 (limit: 10462)
     Memory: 1.2G
        CPU: 1min 40.327s
     CGroup: /system.slice/puppetserver.service
             └─6039 /usr/bin/java -Xms2g -Xmx2g -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -XX:+CrashOnOutOfMemoryError -XX:ErrorFile=/var/log/puppetserver/puppetserver_err_pid%p.log -cp "/usr/share/puppetserver/>
дек 24 11:18:54 master systemd[1]: Starting LSB: puppetserver...
гдек 24 11:19:18 master puppetserver[6004]: Starting puppetserver Puppet Labs version-checking backend: puppetserver
дек 24 11:19:18 master puppetserver[6175]: . [ DONE ]
дек 24 11:19:18 master systemd[1]: Started LSB: puppetserver.

Версия: puppetserver-6.13.0-alt3.1
Comment 1 Alexander Makeenkov 2022-02-17 14:09:18 MSK
Достаточно установить только пакет java-11-openjdk-headless