Project

General

Profile

Actions

Bug #22479

closed

Installer fails when run with --foreman-proxy-plugin-discovery-install-images true

Added by Marek Hulán over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When I run the installer like this

foreman-installer --enable-foreman-plugin-discovery --enable-foreman-proxy-plugin-discovery --foreman-proxy-plugin-discovery-install-images true

I get following error

 Could not find dependency File[/var/lib/tftpboot/boot] for Foreman::Remote_file[/var/lib/tftpboot/boot/fdi-image-latest.tar] at /usr/share/foreman-installer/modules/foreman_proxy/manifests/plugin/discovery.pp:29
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/errors.rb:106:in `fail'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1511:in `block in validate_relationship'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1508:in `each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1508:in `validate_relationship'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:2531:in `block in finish'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:2529:in `collect'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:2529:in `finish'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:283:in `block in finalize'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:283:in `each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:283:in `finalize'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:265:in `block in main'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:306:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:662:in `exit_on_fail'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/opt/puppetlabs/puppet/bin/puppet:5:in `<main>'

The reason is that discovery puppet manifest relies on File resources which is not defined anywhere see https://github.com/theforeman/puppet-foreman_proxy/blob/master/manifests/plugin/discovery.pp#L32

The File for directory creation should probably be defined at https://github.com/theforeman/puppet-tftp/blob/master/manifests/config.pp or in discovery itself but I'm not entirely sure how exactly this should behave or why the require is there.

Actions #1

Updated by Ewoud Kohl van Wijngaarden about 6 years ago

I'm guessing you also disabled tftp management in a previous installer run. Is that correct?

Actions #2

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ewoud Kohl van Wijngaarden
  • Pull request https://github.com/theforeman/puppet-foreman_proxy/pull/410 added
Actions #3

Updated by Ewoud Kohl van Wijngaarden about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF