Project

General

Profile

Actions

Bug #18182

closed

capsule for puppet can't install without package httpd

Added by Klaas D about 7 years ago. Updated 8 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi,
I'm not sure if this is supposed to be supported or if you should only create capsules with pulp so this may qualify as a feature request not a bug.

I'm running Katello 3.2.3 and I want to install a capsule that handles puppet, only puppet, not pulp+puppet. The installer seems to support it in general but some things don't work as expected. First you'll need to have httpd installed because puppetserver wants to use user apache, secondly it will enable pulp smart proxy, no matter what I tried to pass to installer :)

What I use to install the capsule:

foreman-installer --scenario capsule\
                    --capsule-parent-fqdn                         "foreman.tld"\
                    --foreman-proxy-register-in-foreman           "true"\
                    --foreman-proxy-foreman-base-url              "https://foreman.tld"\
                    --foreman-proxy-trusted-hosts                 "foreman.tld"\
                    --foreman-proxy-trusted-hosts                 "puppetcapsule.tld"\
                    --foreman-proxy-oauth-consumer-key            "KEY"\
                    --foreman-proxy-oauth-consumer-secret         "KEY"\
                    --capsule-pulp-oauth-secret                   "KEY"\
                    --capsule-certs-tar                           "~/puppetcapsule.tld-certs.tar"\
                    --capsule-puppet-server-implementation puppetserver\
                    --capsule-puppet-ca-proxy "https://foreman.tld"\
                    --foreman-proxy-puppetca false\
                    --foreman-proxy-templates false\
                    --foreman-proxy-plugin-remote-execution-ssh-enabled false\
                    --no-enable-foreman-proxy-plugin-pulp\
                    --foreman-proxy-plugin-pulp-enabled false

error log when httpd is not installed:

[DEBUG 2017-01-20 14:21:50 main]  Augeas[puppet::server::puppetserver::bootstrap](provider=augeas): Augeas version 1.4.0 is installed
[DEBUG 2017-01-20 14:21:50 main]  Augeas[puppet::server::puppetserver::bootstrap](provider=augeas): Will attempt to save and only run if files changed
[DEBUG 2017-01-20 14:21:50 main]  Augeas[puppet::server::puppetserver::bootstrap](provider=augeas): sending command 'set' with params ["/files/etc/sysconfig/puppetserver/BOOTSTRAP_CONFIG", "\"/etc/puppetlabs/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/\""]
[DEBUG 2017-01-20 14:21:50 main]  Augeas[puppet::server::puppetserver::bootstrap](provider=augeas): Skipping because no files were changed
[DEBUG 2017-01-20 14:21:50 main]  Augeas[puppet::server::puppetserver::bootstrap](provider=augeas): Closed the augeas connection
[ INFO 2017-01-20 14:21:50 main]  RESOURCE Augeas[puppet::server::puppetserver::bootstrap]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppetserver/services.d]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppetserver/services.d/ca.cfg]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/opt/puppetlabs/server/apps/puppetserver/config]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/opt/puppetlabs/server/apps/puppetserver/config/services.d]
[DEBUG 2017-01-20 14:21:50 main]  /Stage[main]/Puppet::Server::Puppetserver/File[/etc/puppetlabs/puppetserver/conf.d/ca.conf]: Nothing to manage: no ensure and the resource doesn't exist
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppetserver/conf.d/ca.conf]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppetserver/conf.d/puppetserver.conf]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppetserver/conf.d/web-routes.conf]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppetserver/conf.d/webserver.conf]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppetserver/conf.d/auth.conf]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE Concat::Fragment[puppet.conf+30-master]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE Concat::Fragment[puppet.conf+15-main-master]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/opt/puppetlabs/puppet/cache/reports]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE Exec[puppet_server_config-create_ssl_dir]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppet/ssl/private_keys]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppet/ssl/private_keys/puppetcapsule.tld.pem]
[ERROR 2017-01-20 14:21:50 main]  Could not find user apache
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/owner.rb:21:in `block in insync?'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/owner.rb:20:in `map!'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/owner.rb:20:in `insync?'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:277:in `safe_insync?'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:123:in `sync_if_needed'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:88:in `block in perform_changes'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:87:in `each'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:87:in `perform_changes'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
[ERROR 2017-01-20 14:21:50 main] /usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
[ERROR 2017-01-20 14:21:50 main] /usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:274:in `block in main'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
[ERROR 2017-01-20 14:21:50 main] /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
[ERROR 2017-01-20 14:21:50 main]  /Stage[main]/Puppet::Server::Config/File[/etc/puppetlabs/code/environments]/owner: change from puppet to apache failed: Could not find user apache
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/code/environments]
[ INFO 2017-01-20 14:21:50 main]  RESOURCE Package[rubygem-json]
[ WARN 2017-01-20 14:21:50 main]  /Stage[main]/Foreman::Puppetmaster/File[/etc/puppetlabs/puppet/foreman.yaml]/ensure: defined content as '{md5}031bc847ef0b4084b6254f0e08d199b8'
[ INFO 2017-01-20 14:21:50 main]  RESOURCE File[/etc/puppetlabs/puppet/foreman.yaml]
[DEBUG 2017-01-20 14:21:50 main]  /Stage[main]/Foreman::Puppetmaster/File[/etc/puppetlabs/puppet/foreman.yaml]: The container Class[Foreman::Puppetmaster] will propagate my refresh event
[ INFO 2017-01-20 14:21:50 main]  RESOURCE Exec[Create Puppet Reports dir]
[DEBUG 2017-01-20 14:21:50 main]  Evicting cache entry for environment 'production'
[DEBUG 2017-01-20 14:21:50 main]  Caching environment 'production' (ttl = 0 sec)
[DEBUG 2017-01-20 14:21:50 main]  Evicting cache entry for environment 'production'
[DEBUG 2017-01-20 14:21:50 main]  Caching environment 'production' (ttl = 0 sec)

Once I manually install httpd the installation runs without error. But afterwards there pulp is enabled in /etc/foreman-proxy/settings.d/pulp.yml. If I disable it my smartproxy seems to run fine and is able to serve to puppetclients.

Greetings
Klaas

Actions #1

Updated by Justin Sherrill about 7 years ago

Hey Klass,

Apache is still required with the puppet master only because we run the puppet master via passenger in apache. It seems like there are two issues here:

1) Why is apache not being installed?
2) why is the pulp.yaml still being enabled?

Your scenario makes perfect sense and is supported, just seems these two bugs make it problematic.

Actions #2

Updated by Justin Sherrill about 7 years ago

  • Category set to Installer
  • translation missing: en.field_release set to 114
Actions #3

Updated by Ewoud Kohl van Wijngaarden 8 months ago

  • Status changed from New to Rejected
  • Triaged set to No
Actions

Also available in: Atom PDF