Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone "vagrant up" fails due to "icingacli x509 import" returning 255 #207

Open
jwilliams-shadowsoft opened this issue Aug 14, 2020 · 3 comments

Comments

@jwilliams-shadowsoft
Copy link

The Standalone vagrant box does not build correctly. Using OS X Catalina / VirtualBox 6.1 / Vagrant 2.2.9.

The machine is provisioned and the Puppet catalog runs, but the important error seems to be this:

==> icinga2: Error: 'icingacli x509 import --file /etc/ssl/certs/ca-bundle.crt' returned 255 instead of one of [0]
==> icinga2: Error: /Stage[main]/Profiles::Icinga::Icingaweb2/Exec[x509-import-trust-store]/returns: change from 'notrun' to ['0'] failed: 'icingacli x509 import --file /etc/ssl/certs/ca-bundle.crt' returned 255 instead of one of [0]

Then there are a lot of errors like this:

==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Package[pytz]: Skipping because of failed dependencies
==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/File[pip-symlink]: Skipping because of failed dependencies
==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Package[python2-pip]: Skipping because of failed dependencies
==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Package[python-devel]: Skipping because of failed dependencies
==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Package[cairo-devel]: Skipping because of failed dependencies

Finally the catalog terminates with this:

==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Exec[dashing-bundle-install]: Skipping because of failed dependencies
==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/File[icinga2.local.json]: Skipping because of failed dependencies
==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/File[/usr/lib/systemd/system/dashing-icinga2.service]: Skipping because of failed dependencies
==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Exec[dashing-reload-systemd]: Skipping because of failed dependencies
==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Service[dashing-icinga2]: Skipping because of failed dependencies
==> icinga2: Notice: Applied catalog in 1035.08 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Expected Behavior

The Vagrant file (and Puppet catalog) should run to completion making a working standalone Icinga server.

Current Behavior

The Vagrant file aborts because the Puppet catalog never runs to completion. It is clear that the installations did not completely work since httpd is not running, and if it is started manually the following error comes from the icingaweb2 login screen:

It appears that you did not configure Icinga Web 2 yet so it's not possible to log in without any defined authentication method. Please define a authentication method by following the instructions in the documentation or by using our web-based setup-wizard.

Steps to Reproduce (for bugs)

  1. git clone https://github.com/Icinga/icinga-vagrant && cd icinga-vagrant
  2. cd standalone
  3. git checkout v2.2.0
  4. vagrant up

Context

Want to give a customer a quick POC machine.

Your Environment

  • Vagrant version (vagrant -v): 2.2.9
  • Box name: Standalone
  • Release version: v2.2.0
  • Operating system: OSX Catalina
  • Provider (VirtualBox, Parallels, libvirt): VirtualBox 6.1
@Arukadox
Copy link

I have exactly same issue on latest version 2.2.0 on windows 10 using virtualbox 6.1.12 r139181

@jwilliams-shadowsoft
Copy link
Author

I have exactly same issue on latest version 2.2.0 on windows 10 using virtualbox 6.1.12 r139181

@Arukadox I'm not surprised because the failure is being caused by the Puppet job not dealing with the X509 certificate successfully, so the platform underlying the VM is not really a factor.

@fscaptain
Copy link

fscaptain commented Sep 10, 2021

Hi,
i also have the following errors:
==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Mysql::Db[graphite]/Mysql_user[graphite@localhost]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Mysql::Db[graphite]/Mysql_grant[graphite@localhost/graphite.*]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/File[/opt/graphite/webapp]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/webapp/graphite/local_settings.py]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/Exec[Initial django db creation]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/storage]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/rrd]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/lists]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/log/webapp]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/var/lib/graphite-web]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/bin]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/whisper]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/log/carbon-cache]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/storage/graphite.db]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/webapp/graphite/graphite_wsgi.py]: Skipping because of failed dependencies ==> icinga2: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/bin/carbon-logrotate.sh]: Dependency Package[icingaweb2] has failures: true ==> icinga2: Notice: /Stage[main]/Graphite::Config/File[/opt/graphite/bin/carbon-logrotate.sh]: Dependency Package[icingacli] has failures: true ==> icinga2: Warning: /Stage[main]/Graphite::Config/File[/opt/graphite/bin/carbon-logrotate.sh]: Skipping because of failed dependencies

and

==> icinga2: Warning: /Stage[main]/Graphite::Config/Cron[Rotate carbon logs]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Graphite/Anchor[graphite::end]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Exec[fix-graphite-web-log-perms]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat[25-graphite.vagrant.demo.icinga.com.conf]/Concat_file[25-graphite.vagrant.demo.icinga.com.conf]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat[25-graphite.vagrant.demo.icinga.com.conf]/File[/etc/httpd/conf.d/25-graphite.vagrant.demo.icinga.com.conf]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Apache::Service/Service[httpd]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-apache-header]/Concat_fragment[graphite.vagrant.demo.icinga.com-apache-header]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-docroot]/Concat_fragment[graphite.vagrant.demo.icinga.com-docroot]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-aliases]/Concat_fragment[graphite.vagrant.demo.icinga.com-aliases]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-directories]/Concat_fragment[graphite.vagrant.demo.icinga.com-directories]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-logging]/Concat_fragment[graphite.vagrant.demo.icinga.com-logging]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-serversignature]/Concat_fragment[graphite.vagrant.demo.icinga.com-serversignature]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-access_log]/Concat_fragment[graphite.vagrant.demo.icinga.com-access_log]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-header]/Concat_fragment[graphite.vagrant.demo.icinga.com-header]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-wsgi]/Concat_fragment[graphite.vagrant.demo.icinga.com-wsgi]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Concat::Fragment[graphite.vagrant.demo.icinga.com-file_footer]/Concat_fragment[graphite.vagrant.demo.icinga.com-file_footer]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Graphite::Server/Apache::Vhost[graphite.vagrant.demo.icinga.com]/Apache::Listen[8003]/Concat::Fragment[Listen 8003]/Concat_fragment[Listen 8003]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Grafana::Server/File[grafana-graphite-setup]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Grafana::Server/File[graphite-dashboard-vagrant-grafana-demo]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Grafana::Server/File[graphite-base-metrics-grafana-web-module]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Grafana::Server/File[graphite-icinga2-default-grafana-web-module]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Grafana::Server/Exec[finish-grafana-graphite-setup]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Package[rubygems]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Package[rubygem-bundler]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Package[ruby-devel]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Package[openssl]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Package[gcc-c++]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Package[make]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Package[nodejs]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Package[v8]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Vcsrepo[/usr/share/dashing-icinga2]: Skipping because of failed dependencies ==> icinga2: Notice: /Stage[main]/Profiles::Dashing::Icinga2/File[icinga2.local.json]: Dependency Package[icingaweb2] has failures: true ==> icinga2: Notice: /Stage[main]/Profiles::Dashing::Icinga2/File[icinga2.local.json]: Dependency Package[icingacli] has failures: true ==> icinga2: Notice: /Stage[main]/Profiles::Dashing::Icinga2/File[/usr/lib/systemd/system/dashing-icinga2.service]: Dependency Package[icingaweb2] has failures: true ==> icinga2: Notice: /Stage[main]/Profiles::Dashing::Icinga2/File[/usr/lib/systemd/system/dashing-icinga2.service]: Dependency Package[icingacli] has failures: true ==> icinga2: Notice: /Stage[main]/Profiles::Dashing::Icinga2/Exec[dashing-reload-systemd]: Dependency Package[icingaweb2] has failures: true ==> icinga2: Notice: /Stage[main]/Profiles::Dashing::Icinga2/Exec[dashing-reload-systemd]: Dependency Package[icingacli] has failures: true ==> icinga2: Notice: /Stage[main]/Profiles::Dashing::Icinga2/Service[dashing-icinga2]: Dependency Package[icingaweb2] has failures: true ==> icinga2: Notice: /Stage[main]/Profiles::Dashing::Icinga2/Service[dashing-icinga2]: Dependency Package[icingacli] has failures: true ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Exec[dashing-bundle-install]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/File[icinga2.local.json]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/File[/usr/lib/systemd/system/dashing-icinga2.service]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Exec[dashing-reload-systemd]: Skipping because of failed dependencies ==> icinga2: Warning: /Stage[main]/Profiles::Dashing::Icinga2/Service[dashing-icinga2]: Skipping because of failed dependencies ==> icinga2: Notice: Applied catalog in 216.40 seconds The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.
Vagrant: 2.2.18
Virtualbox 6.1.26 on Ubuntu 20.04
Box: Standalone Rel. 2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants