Red Hat Bugzilla – Bug 1154170
katello-installer fails if files with a .pp extension are found in the working directory that katello-installer is invoked from.
Last modified: 2016-08-03 11:22:16 EDT
Description of problem: katello-installer fails if files with a .pp extension are found in the working directory that katello-installer is invoked from. Version-Release number of selected component (if applicable): katello-installer-0.0.64-1.el6sat.noarch How reproducible: 100% Steps to Reproduce: [root@satellite ~]# cd ~ [root@satellite ~]# echo foobar > baz.pp [root@satellite ~]# katello-installer --help Actual results: /usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:157:in `on_error': Could not parse for environment production: Syntax error at end of file at /root/baz.pp:2 (Puppet::Error) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `_racc_yyparse_c' from /usr/lib/ruby/site_ruby/1.8/puppet/parser/lexer.rb:522:in `scan' from /usr/lib/ruby/1.8/racc/parser.rb:152:in `_racc_yyparse_c' from /usr/lib/ruby/1.8/racc/parser.rb:152:in `__send__' from /usr/lib/ruby/1.8/racc/parser.rb:152:in `yyparse' from /usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:168:in `parse' from /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:536:in `perform_initial_import' from /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:534:in `map' from /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:534:in `perform_initial_import' from /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:255:in `known_resource_types' from /usr/lib/ruby/site_ruby/1.8/puppet/resource/type_collection_helper.rb:5:in `known_resource_types' from /usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:120:in `import' from /usr/lib/ruby/gems/1.8/gems/kafo_parsers-0.0.3/lib/kafo_parsers/puppet_module_parser.rb:38:in `initialize' from /usr/lib/ruby/gems/1.8/gems/kafo_parsers-0.0.3/lib/kafo_parsers/puppet_module_parser.rb:16:in `new' from /usr/lib/ruby/gems/1.8/gems/kafo_parsers-0.0.3/lib/kafo_parsers/puppet_module_parser.rb:16:in `parse' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/puppet_module.rb:44:in `parse' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/configuration.rb:84:in `modules' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/configuration.rb:84:in `map' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/configuration.rb:84:in `modules' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:170:in `modules' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:152:in `params' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:185:in `set_parameters' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:66:in `initialize' from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `new' from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run' from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.4/lib/kafo/kafo_configure.rb:116:in `run' from /usr/sbin/katello-installer:9 Expected results: katello-installer runs normally & without error. Additional info: .pp files are commonly used for SELinux policy files. In this usage, the end-user had a file in their homedir, which exposed this error.
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Created redmine issue http://projects.theforeman.org/issues/8023 from this bug
Fixed in upstream kafo_parsers 0.0.5
Verified: [root@sat-r220-06 ~]# cd ~ [root@sat-r220-06 ~]# echo foobar > baz.pp [root@sat-r220-06 ~]# foreman-installer --help Usage: foreman-installer [OPTIONS] Options: [...snip...]
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1500
*** Bug 1283787 has been marked as a duplicate of this bug. ***