Project

General

Profile

Bug #10146

Running capsule-certs-generate results in a does not exist on node

Added by Rien Valkenaers about 7 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
Urgent
Assignee:
-
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Trying to generate certificate for a capsule result in following error:
does not exist on node

Changing raise Puppet::ParseError, "does not exist" unless File.exist?(arg) to raise Puppet::ParseError, "#{arg.inspect} does not exist" unless File.exist?(arg) in "/usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_file_exists.rb" gives a little more information:
"certs::params::server_cert" does not exist on node

Running it in interactive mode I can see some strange values:
16. Set server_ca_cert, current value: certs::params::server_ca_cert
17. Set server_cert, current value: certs::params::server_cert
18. Set server_key, current value: certs::params::server_key
19. Set server_cert_req, current value: certs::params::server_cert_req

I attached a foreman debug

History

#1 Updated by Stephen Benjamin about 7 years ago

  • File deleted (foreman-debug-TknMb.tar.xz)

#2 Updated by Eric Helms about 7 years ago

  • Status changed from New to Need more information
  • Legacy Backlogs Release (now unused) set to 23
  • Triaged changed from No to Yes

Can you please provide the command as you ran it with any parameters?

#3 Updated by Rien Valkenaers about 7 years ago

capsule-certs-generate --capsule-fqdn "capsule.example.com" --certs-tar "~/capsule.example.com-certs.tar"

#4 Updated by Rien Valkenaers about 7 years ago

Some more info. It was on katello 2.0 with puppet 3.7.4 installed.

#5 Updated by Eric Helms about 7 years ago

Are you able to upgrade to 2.1 or 2.2 when it releases sometime next week? Our typical policy is to support 1 major version at a time and from having tested this I know this is not an issue with the latest code base. If you really need, we could potentially craft you a work around for 2.0 as I imagine a line in the installer would need commenting out.

#6 Updated by Rien Valkenaers about 7 years ago

I already tried updating to 2.1 but had some issues with another bug (http://projects.theforeman.org/issues/9068)

It is a production environment so it takes some time to update. Also we need to install a capsule at a customers site next week so a workaround would be nice....

#7 Updated by Eric Helms about 7 years ago

Can you run the generate command with '-v' and paste me the output?

#8 Updated by Rien Valkenaers about 7 years ago

[ INFO 2015-04-16 17:32:44 verbose] Executing hooks in group boot
[ INFO 2015-04-16 17:32:44 verbose] All hooks in group boot finished
[ INFO 2015-04-16 17:32:44 verbose] Executing hooks in group init
[ INFO 2015-04-16 17:32:44 verbose] All hooks in group init finished
[ INFO 2015-04-16 17:32:44 verbose] Parsing default values from puppet modules...
[ INFO 2015-04-16 17:32:44 verbose] ... finished
[ INFO 2015-04-16 17:32:44 verbose] Executing hooks in group pre_values
[ INFO 2015-04-16 17:32:44 verbose] All hooks in group pre_values finished
[ INFO 2015-04-16 17:32:44 verbose] Executing hooks in group pre_validations
[ INFO 2015-04-16 17:32:44 verbose] All hooks in group pre_validations finished
[ INFO 2015-04-16 17:32:44 verbose] Running validation checks
[ INFO 2015-04-16 17:32:44 verbose] Executing hooks in group pre
[ INFO 2015-04-16 17:32:44 verbose] All hooks in group pre finished
[ INFO 2015-04-16 17:32:45 verbose] Loading facts
[ INFO 2015-04-16 17:32:45 verbose] Loading facts
[ INFO 2015-04-16 17:32:45 verbose] Loading facts
[ INFO 2015-04-16 17:32:45 verbose] Loading facts
[ INFO 2015-04-16 17:32:45 verbose] Loading facts
[ERROR 2015-04-16 17:32:53 verbose] "certs::params::server_cert" does not exist on node *
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_file_exists.rb:13:in `block (2 levels) in <module:Functions>'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_file_exists.rb:12:in `each'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_file_exists.rb:12:in `block in <module:Functions>'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/functions.rb:164:in `block (2 levels) in newfunction'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/functions.rb:157:in `block in newfunction'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:248:in `call_function'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:771:in `eval_CallNamedFunctionExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:844:in `block in eval_IfExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1076:in `with_guarded_scope'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:842:in `eval_IfExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:521:in `block in eval_BlockExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:521:in `each'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:521:in `eval_BlockExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:55:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:27:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/ast.rb:61:in `safeevaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/resource/type.rb:127:in `evaluate_code'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/resource.rb:79:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:384:in `block (4 levels) in evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:383:in `block (3 levels) in evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:382:in `each'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:382:in `block (2 levels) in evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:381:in `block in evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/errors.rb:62:in `exceptwrap'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:380:in `evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:403:in `block (2 levels) in evaluate_generators'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:400:in `block in evaluate_generators'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:397:in `loop'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:397:in `evaluate_generators'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:137:in `block (2 levels) in compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:137:in `block in compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet.rb:244:in `override'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:117:in `compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:34:in `compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:95:in `block (2 levels) in compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:93:in `block in compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/benchmark.rb:296:in `realtime'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:92:in `compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:52:in `find'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:217:in `block in main'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet.rb:244:in `override'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:193:in `main'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:154:in `run_command'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:488:in `exit_on_fail'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
[ INFO 2015-04-16 17:32:53 verbose] /usr/bin/puppet:8:in `<main>'
[ERROR 2015-04-16 17:32:53 verbose] "certs::params::server_cert" does not exist on node *

[ INFO 2015-04-16 17:32:53 verbose] /usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_file_exists.rb:13:in `block (2 levels) in <module:Functions>'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_file_exists.rb:12:in `each'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/katello-installer/modules/common/lib/puppet/parser/functions/validate_file_exists.rb:12:in `block in <module:Functions>'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/functions.rb:164:in `block (2 levels) in newfunction'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/functions.rb:157:in `block in newfunction'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:248:in `call_function'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:771:in `eval_CallNamedFunctionExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:844:in `block in eval_IfExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:1076:in `with_guarded_scope'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:842:in `eval_IfExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:521:in `block in eval_BlockExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:521:in `each'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:521:in `eval_BlockExpression'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/visitor.rb:64:in `visit_this_1'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:55:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:27:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/ast.rb:61:in `safeevaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/resource/type.rb:127:in `evaluate_code'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/resource.rb:79:in `evaluate'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:384:in `block (4 levels) in evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:383:in `block (3 levels) in evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:382:in `each'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:382:in `block (2 levels) in evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:381:in `block in evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/errors.rb:62:in `exceptwrap'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:380:in `evaluate_definitions'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:403:in `block (2 levels) in evaluate_generators'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:400:in `block in evaluate_generators'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:397:in `loop'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:397:in `evaluate_generators'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:137:in `block (2 levels) in compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:137:in `block in compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet.rb:244:in `override'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:117:in `compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/parser/compiler.rb:34:in `compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:95:in `block (2 levels) in compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:93:in `block in compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/benchmark.rb:296:in `realtime'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:92:in `compile'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:52:in `find'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:217:in `block in main'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet.rb:244:in `override'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:193:in `main'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application/apply.rb:154:in `run_command'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util.rb:488:in `exit_on_fail'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
[ INFO 2015-04-16 17:32:53 verbose] /usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:92:in `execute'
[ INFO 2015-04-16 17:32:53 verbose] /usr/bin/puppet:8:in `<main>'
[ INFO 2015-04-16 17:32:53 verbose] Puppet has finished, bye!
[ INFO 2015-04-16 17:32:53 verbose] Executing hooks in group post
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/katello-installer/capsule-certs-generate.log
[ INFO 2015-04-16 17:32:53 verbose] All hooks in group post finished
[ERROR 2015-04-16 17:32:53 verbose] Repeating errors encountered during run:
[ERROR 2015-04-16 17:32:53 verbose] "certs::params::server_cert" does not exist on node *
[ERROR 2015-04-16 17:32:53 verbose] "certs::params::server_cert" does not exist on node *

#9 Updated by Eric Helms about 7 years ago

If you look at '/etc/katello-installer/answers.capsule-certs-generate.yaml' do you see an entry for `server_cert` within it?

#10 Updated by Rien Valkenaers about 7 years ago

No, it only contains the following:

certs:
generate: true
deploy: false
group: foreman
capsule_certs: true

#11 Updated by Eric Helms about 7 years ago

One last question, are you using custom certs at all or stock what the installer generates?

#12 Updated by Rien Valkenaers about 7 years ago

Just the ones the installer generates

#13 Updated by Eric Helms about 7 years ago

I am still not sure what the root cause is, however, I think you can get around the error by finding /usr/share/katello-installer/modules/certs/init.pp and then commenting out these lines:

https://github.com/Katello/katello-installer/blob/KATELLO-2.0/modules/certs/manifests/init.pp#L116-L118

As you aren't trying to use custom server certificates, commenting this out should have no side effects.

#14 Updated by Rien Valkenaers about 7 years ago

I already tried that before. It results in following errors:

Could not set 'present' on ensure: No such file or directory - certs::params::server_cert at 15:/usr/share/katello-installer/modules/certs/manifests/apache.pp
Could not set 'present' on ensure: No such file or directory - certs::params::server_cert at 15:/usr/share/katello-installer/modules/certs/manifests/apache.pp
/Stage[main]/Certs::Apache/Cert[***-apache]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - certs::params::server_cert at 15:/usr/share/katello-installer/modules/certs/manifests/apache.pp
Could not set 'present' on ensure: No such file or directory - certs::params::server_cert at 17:/usr/share/katello-installer/modules/certs/manifests/foreman_proxy.pp
Could not set 'present' on ensure: No such file or directory - certs::params::server_cert at 17:/usr/share/katello-installer/modules/certs/manifests/foreman_proxy.pp
/Stage[main]/Certs::Foreman_proxy/Cert[***-foreman-proxy]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - certs::params::server_cert at 17:/usr/share/katello-installer/modules/certs/manifests/foreman_proxy.pp
Installing Done [100%] [.........................................................................]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/katello-installer/capsule-certs-generate.log

(I replaced the fqdn of the capsule with ***)

Should't certs::params::server_cert be some actual file?

#15 Updated by Rien Valkenaers about 7 years ago

I just realised I had the future parser already enabled. I've just disabled it and the command succeeded successfully. This bug can be closed...

Many thanks for your effort!

#16 Updated by Eric Helms about 7 years ago

  • Status changed from Need more information to Rejected
  • Legacy Backlogs Release (now unused) deleted (23)

I was just about to ask about puppet versions and such :)

#17 Updated by Justin Sherrill almost 6 years ago

  • Legacy Backlogs Release (now unused) set to 166

Also available in: Atom PDF