Actions
Bug #22479
closedInstaller fails when run with --foreman-proxy-plugin-discovery-install-images true
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
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