Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

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

@jwilliams-shadowsoft

Description

@jwilliams-shadowsoft

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions