Skip to content

Vagrant deployment always fails on foreman-installer step with 'Reverse DNS failed' error #1889

@Lennonka

Description

@Lennonka

All deployments fail on the installer step when running with vagrant.
For example:

$ vagrant up centos9-stream-katello-nightly
...output ommitted... // all steps successful until...
TASK [foreman_installer : Run installer] ***************************************
fatal: [centos9-stream-katello-nightly]: FAILED! => changed=true 
  cmd: |-
    foreman-installer -v --no-colors  --tuning development --scenario katello  --foreman-initial-admin-password changeme
  delta: '0:00:04.165121'
  end: '2024-12-06 12:49:03.231139'
  msg: non-zero return code
  rc: 20
  start: '2024-12-06 12:48:59.066018'
  stderr: Reverse DNS failed. Looking up 127.0.0.1 gave localhost, expected to match centos9-stream-katello-nightly.myhost.example.com
  stderr_lines: <omitted>
  stdout: |-
    2024-12-06 12:49:00 [NOTICE] [root] Loading installer configuration. This will take some time.
    2024-12-06 12:49:02 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
    2024-12-06 12:49:02 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
    2024-12-06 12:49:03 [ERROR ] [checks] Your system does not meet configuration criteria
  stdout_lines: <omitted>

How reproducible

100 % for all VMs

This prevents me from using Forklift at all.

Environment

  • Ubuntu 24.04.1 LTS
  • vagrant 2.4.3 (latest)
  • Oracle VM VirtualBox VM Selector v7.0.16_Ubuntu

This problem was previously fixed by #1854 but that PR was reverted later.

Tag me for more information if needed.

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