Problem:
Hello, it is my first attempt with foreman and maybe I’m missing things but I have a hard time to make an initial install with ansible enabled. I had success on a first install without options but wanted to try new clean one with some plugins and compute providers enabled from the beginning so I started clean. Tried to look for this error but I didn’t managed to find something. Any help appreciated.
Installation fails when trying to install ansible plugin with foreman-installer because package ansible-runner doesn’t exist. I’m using the following command for initial install (this is a clean new install).
foreman-installer --enable-foreman-proxy-plugin-dns-powerdns --enable-foreman-compute-ec2 --enable-foreman-compute-gce --enable-foreman-compute-openstack --enable-foreman-plugin-ansible --enable-foreman-proxy-plugin-ansible --enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-ssh -v
I found out that the repository:
Err:16 https://releases.ansible.com/ansible-runner/deb bionic Release
404 Not Found [IP: 2606:4700:20::681a:fa 443]
Is missing a bionic version. I think this repo was added automatically by the installer. Should I change it to “xenial” which exist or it will be overwritten again with the next run of installer?
Expected outcome:
Installation to succeed.
Foreman and Proxy versions:
1.24.1
Foreman and Proxy plugin versions:
Package: ruby-smart-proxy-ansible
Version: 3.0.0-2
Package: ruby-foreman-ansible
Version: 4.0.4-1
Distribution and version:
Ubuntu 18.04 bionic
Other relevant data:
[ INFO 2020-01-22T16:59:24 verbose] Applying configuration version '1579708759'
[ERROR 2020-01-22T16:59:26 verbose] Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install ansible-runner' returned 100: Reading package lists...
[ERROR 2020-01-22T16:59:26 verbose] Building dependency tree...
[ERROR 2020-01-22T16:59:26 verbose] Reading state information...
[ERROR 2020-01-22T16:59:26 verbose] E: Unable to locate package ansible-runner
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/execution.rb:297:in `execute'
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:in `execute'
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider.rb:222:in `block in has_command'
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider.rb:444:in `block in create_class_and_instance_method'
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:78:in `install'
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/package.rb:92:in `block (3 levels) in <module:Puppet>'
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:490:in `set'
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:570:in `sync'
[ERROR 2020-01-22T16:59:26 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:241:in `sync'