Forklift - forman-install fails

Hi,

I can’t get a forklift centos7-katello-devel or any other dev vm up and running:

TASK [foreman_installer : Run installer] ***************************************
fatal: [centos7-katello-devel]: FAILED! => changed=true 
  cmd: |-
    foreman-installer -v --no-colors --disable-system-checks --scenario katello-devel --foreman-proxy-content-enable-ostree=true --katello-devel-scl-ruby=rh-ruby27 --katello-devel-admin-password changeme --katello-devel-github-username=poelzi --katello-devel-extra-plugins theforeman/foreman_remote_execution
  delta: '0:24:01.684806'
  end: '2022-02-02 12:30:33.094951'
  msg: non-zero return code
  rc: 6
  start: '2022-02-02 12:06:31.410145'
  stderr: ''
  stderr_lines: <omitted>
  stdout: |-
    2022-02-02 12:06:36 [NOTICE] [root] Loading installer configuration. This will take some time.
    2022-02-02 12:06:42 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
    2022-02-02 12:06:42 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
    2022-02-02 12:06:44 [WARN  ] [pre] Skipping system checks.
    2022-02-02 12:06:44 [WARN  ] [pre] Skipping system checks.
    2022-02-02 12:06:49 [NOTICE] [configure] Starting system configuration.
    2022-02-02 12:07:00 [NOTICE] [configure] 250 configuration steps out of 1533 steps complete.
    2022-02-02 12:07:04 [NOTICE] [configure] 500 configuration steps out of 1537 steps complete.
    2022-02-02 12:07:05 [NOTICE] [configure] 750 configuration steps out of 1540 steps complete.
    2022-02-02 12:07:09 [ERROR ] [configure] Execution of '/bin/yum -d 0 -e 0 -y install pulpcore-plugin(ostree)' returned 1: Error: Nothing to do
    2022-02-02 12:07:09 [ERROR ] [configure] /Stage[main]/Pulpcore::Plugin::Ostree/Pulpcore::Plugin[ostree]/Package[pulpcore-plugin(ostree)]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/yum -d 0 -e 0 -y install pulpcore-plugin(ostree)' returned 1: Error: Nothing to do
    2022-02-02 12:07:09 [NOTICE] [configure] 1000 configuration steps out of 1544 steps complete.
    2022-02-02 12:07:15 [NOTICE] [configure] 1250 configuration steps out of 1547 steps complete.
    2022-02-02 12:30:24 [NOTICE] [configure] 1500 configuration steps out of 1547 steps complete.
    2022-02-02 12:30:33 [NOTICE] [configure] System configuration has finished.
  
      There were errors detected during install.
      Please address the errors and re-run the installer to ensure the system is properly configured.
      Failing to do so is likely to result in broken functionality.
  
      The full log is at /var/log/foreman-installer/katello-devel.log
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************

vagrant ssh:

type or paste code here
yum search pulpcore-plugin
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.far.fi
 * centos-sclo-rh: centos.mirror.far.fi
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: centos.mirror.far.fi
 * updates: centos.mirror.far.fi
============================================================================================ Matched: pulpcore-plugin =============================================================================================
tfm-rubygem-zest.noarch : Generated Api Bindings for Pulp3

So, Is it just broken for weeks or how is this supposed to work ?

I’ve moved this from Infra & CI to Development. Infra & CI is really for Foreman’s build processes while your question is about developing Foreman.

As for the specifics: I think the OSTree packages on CentOS 7 are too old and not supported. I would recommend using a CentOS 8 Stream based development platform.

Tried that already, just broken somewhere else:

TASK [foreman_installer : Run installer] ***************************************
fatal: [centos8-katello-devel]: FAILED! => changed=true 
  cmd: |-
    foreman-installer -v --no-colors --disable-system-checks --scenario katello-devel --foreman-proxy-content-enable-ostree=true  --katello-devel-admin-password changeme  --katello-devel-extra-plugins theforeman/foreman_remote_execution
  delta: '0:02:00.737921'
  end: '2022-02-02 18:29:20.977190'
  msg: non-zero return code
  rc: 6
  start: '2022-02-02 18:27:20.239269'
  stderr: ''
  stderr_lines: <omitted>
  stdout: |-
    2022-02-02 18:27:28 [NOTICE] [root] Loading installer configuration. This will take some time.
    2022-02-02 18:27:36 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
    2022-02-02 18:27:36 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
    2022-02-02 18:27:39 [WARN  ] [pre] Skipping system checks.
    2022-02-02 18:27:39 [WARN  ] [pre] Skipping system checks.
    2022-02-02 18:27:45 [NOTICE] [configure] Starting system configuration.
    2022-02-02 18:28:03 [NOTICE] [configure] 250 configuration steps out of 1537 steps complete.
    2022-02-02 18:28:14 [NOTICE] [configure] 500 configuration steps out of 1541 steps complete.
    2022-02-02 18:28:16 [NOTICE] [configure] 750 configuration steps out of 1544 steps complete.
    2022-02-02 18:28:20 [NOTICE] [configure] 1000 configuration steps out of 1548 steps complete.
    2022-02-02 18:28:25 [NOTICE] [configure] 1250 configuration steps out of 1551 steps complete.
    2022-02-02 18:28:45 [ERROR ] [configure] 'bundle install --retry 3 --jobs 3 --path .vendor' returned 5 instead of one of [0]
    2022-02-02 18:28:45 [ERROR ] [configure] /Stage[main]/Katello_devel::Setup/Katello_devel::Bundle[install --retry 3 --jobs 3 --path .vendor]/Exec[bundle-install --retry 3 --jobs 3 --path .vendor]/returns: change from 'notrun' to ['0'] failed: 'bundle install --retry 3 --jobs 3 --path .vendor' returned 5 instead of one of [0]
    2022-02-02 18:29:01 [ERROR ] [configure] /Stage[main]/Katello_devel::Setup/Katello_devel::Bundle[install --retry 3 --jobs 3 --path .vendor]/Exec[bundle-install --retry 3 --jobs 3 --path .vendor]: Failed to call refresh: 'bundle install --retry 3 --jobs 3 --path .vendor' returned 5 instead of one of [0]
    2022-02-02 18:29:01 [ERROR ] [configure] /Stage[main]/Katello_devel::Setup/Katello_devel::Bundle[install --retry 3 --jobs 3 --path .vendor]/Exec[bundle-install --retry 3 --jobs 3 --path .vendor]: 'bundle install --retry 3 --jobs 3 --path .vendor' returned 5 instead of one of [0]
    2022-02-02 18:29:17 [NOTICE] [configure] 1500 configuration steps out of 1551 steps complete.
    2022-02-02 18:29:20 [NOTICE] [configure] System configuration has finished.
  
      There were errors detected during install.
      Please address the errors and re-run the installer to ensure the system is properly configured.
      Failing to do so is likely to result in broken functionality.
  
      The full log is at /var/log/foreman-installer/katello-devel.log
  stdout_lines: <omitted>

It seems ´gem install qpid_proton -v ‘0.36.0’ --source 'https://rubygems.org/'´ does not work.
Ahh, No dependency pinning, wonderful. The fun world of ruby, forgot how fun this is.

FIRE unless its not burning…

Are you using vagrant? If so try using the centos7 box with katello-devel play book. I have the following configuration in my forklift/vagrant/boxes.d/99-local.yaml

devel-box:
  box: centos7
  memory: 10000
  ansible:
    playbook: 'playbooks/katello_devel.yml'
    group: 'devel'
    variables:
      ssh_forward_agent: true
      foreman_devel_github_push_ssh: True
      katello_devel_github_username: <GitHub username>

substitute GitHub username with yours.

Then run vagrant up devel-box

1 Like

I hit your qpid proton issue. I had to sudo yum update *proton* to update to 0.36.0 . My centos7 base image had 0.35.0

1 Like

Yeah. And q_proton 0.36.0 is broken on ruby 2.4 on centos 8. I already feel slightly warmer now.
I"m very happy how nix works when I see this :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.