Project

General

Profile

Bug #17863

Fresh install fails because of missing 'puppet' user

Added by Jason Nance over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

A fresh install of Foreman 1.13.3/Katello 3.2.2 fails as the puppet user does not seem to be created early enough in the install process.

# foreman-installer \
>   --scenario katello \
>   --enable-foreman-plugin-bootdisk \
>   --enable-foreman-plugin-discovery \
>   --enable-foreman-plugin-hooks \
>   --enable-foreman-plugin-openscap \
>   --enable-foreman-plugin-remote-execution \
>   --enable-foreman-proxy-plugin-openscap \
>   --enable-foreman-proxy-plugin-remote-execution-ssh \
>   --certs-city 'foo' \
>   --certs-org 'bar' \
>   --certs-org-unit 'baz' \
>   --certs-state Crazy \
>   --foreman-admin-email foo@bar.com \
>   --foreman-admin-password qwerty \
>   --foreman-configure-epel-repo false \
>   --foreman-configure-scl-repo false \
>   --foreman-email-delivery-method sendmail \
>   --foreman-initial-location 'foo' \
>   --foreman-initial-organization 'bar' \
>   --foreman-ipa-authentication true \
>   --foreman-puppetrun true \
>   --foreman-plugin-discovery-install-images true \
>   --foreman-proxy-manage-puppet-group true \
>   --foreman-proxy-manage-sudoersd true \
>   --foreman-proxy-puppetrun-provider ssh \
>   --foreman-proxy-realm true \
>   --foreman-proxy-realm-principal realm-proxy@FOO.COM \
>   --foreman-proxy-tftp true \
>   --foreman-proxy-plugin-openscap-configure-openscap-repo
 Could not find user puppet
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/owner.rb:21:in `block in insync?'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/owner.rb:20:in `map!'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/file/owner.rb:20:in `insync?'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:277:in `safe_insync?'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:123:in `sync_if_needed'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:88:in `block in perform_changes'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:87:in `each'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:87:in `perform_changes'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:230:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:246:in `eval_resource'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/puppet/parser/functions/add_progress.rb:31:in `evaluate_with_trigger'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:142:in `as_logging_destination'
/usr/share/gems/gems/kafo-0.9.8/modules/kafo_configure/lib/kafo/puppet/report_wrapper.rb:34:in `method_missing'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:221:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:241:in `override'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:274: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:241: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:344:in `block in run'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344: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>'
 /Stage[main]/Certs::Puppet/File[/etc/puppetlabs/puppet/ssl/client_key.pem]/owner: change from root to puppet failed: Could not find user puppet

If you just up arrow and re-run everything is happy.

Associated revisions

Revision 1c8129bf (diff)
Added by Stephen Benjamin over 4 years ago

fixes #17863 - use puppet user not uid

The UID is not using the assigned one:
https://tickets.puppetlabs.com/browse/SERVER-1381, so we can't do the 52
trick. We need to require the puppet server install class to ensure the
package is installed first.

History

#2 Updated by Dominic Cleal over 4 years ago

  • Project changed from Installer to Katello

#3 Updated by Justin Sherrill over 4 years ago

  • Category set to Installer
  • Assignee set to Eric Helms
  • Legacy Backlogs Release (now unused) set to 188
  • Difficulty set to easy

#4 Updated by Stephen Benjamin over 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF