Project

General

Profile

Bug #4686

Proxy attempts to load Puppet config at /usr/share/foreman-proxy/.puppet/puppet.conf

Added by Erik Jacobs over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Puppet
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

foreman-1.5.0-0.develop.201403181056git801a90d.el6.noarch
foreman-postgresql-1.5.0-0.develop.201403181056git801a90d.el6.noarch
foreman-proxy-1.5.0-0.develop.201403141615git2f75941.el6.noarch
foreman-release-1.5.0-0.develop.201403181056git801a90d.el6.noarch
katello-1.5.0-14.201403181055git0744549.el6.noarch
katello-apache-1.0-1.noarch
katello-ca-1.0-1.noarch
katello-certs-tools-1.5.2-1.git.1.edab2c4.el6.noarch
katello-installer-0.0.19-1.201403121737git943ff82.el6.noarch
katello-repos-1.5.1-1.git.14.0868bd1.el6.noarch
pulp-katello-plugins-0.2-1.el6.noarch
ruby193-rubygem-foreman-tasks-0.4.0-1.el6.noarch
ruby193-rubygem-katello-1.5.0-10.201403181055git0744549.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
rubygem-hammer_cli_foreman-0.0.18-1.el6.noarch
rubygem-hammer_cli_foreman_tasks-0.0.1-3.el6.noarch
rubygem-hammer_cli_katello-0.0.3-1.201403171704git261a615.git.0.eb070b4.el6.noarch
rubygem-katello_api-0.0.8-1.201403171700git2b8a301.git.0.da8522e.el6.noarch

When attempting to publish a puppet-based repository that contains only 2 modules, the following error occurs in delayed_job.log:
  1. Logfile created on 2014-03-18 10:29:25 -0400 by logger.rb/31641
    2014-03-18T10:29:25-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] Starting job worker
    2014-03-18T10:53:07-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] Katello::Repository#after_sync completed after 51.6695
    2014-03-18T10:53:07-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] 1 jobs processed at 0.0193 j/s, 0 failed ...
    2014-03-18T10:56:24-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] Katello::Repository#after_sync completed after 31.9576
    2014-03-18T10:56:24-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] 1 jobs processed at 0.0313 j/s, 0 failed ...
    2014-03-18T10:57:26-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] Katello::Repository#after_sync completed after 1.9349
    2014-03-18T10:57:26-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] 1 jobs processed at 0.5132 j/s, 0 failed ...
    2014-03-18T11:09:52-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] Katello::Repository#after_sync completed after 116.2491
    2014-03-18T11:09:52-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] 1 jobs processed at 0.0086 j/s, 0 failed ...
    2014-03-18T11:16:01-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] Katello::ContentViewDefinition#generate_repos failed with RestClient::NotAcceptable: 406 Not Acceptable - 0 failed attempts
    2014-03-18T11:16:01-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] PERMANENTLY removing Katello::ContentViewDefinition#generate_repos because of 1 consecutive failures.
    406 Not Acceptable
    /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!'
    /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result'
    /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `block in transmit'
    /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:746:in `start'
    /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit'
    /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
    /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'
    /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/resource.rb:51:in `get'
    /usr/share/foreman/lib/proxy_api/resource.rb:68:in `get'
    /usr/share/foreman/lib/proxy_api/puppet.rb:9:in `environments'
    /usr/share/foreman/app/services/puppet_class_importer.rb:133:in `actual_environments'
    /usr/share/foreman/app/services/puppet_class_importer.rb:24:in `changes'
    /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/services/katello/puppet_class_importer_extensions.rb:22:in `update_environment'
    /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/foreman.rb:35:in `update_foreman_content'
    /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/models/katello/content_view_definition.rb:96:in `generate_repos'
    /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/models/katello/async_operation.rb:57:in `perform'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/backend/base.rb:94:in `block in invoke_job'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `execute'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/backend/base.rb:91:in `invoke_job'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:178:in `block (2 levels) in run'
    /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:178:in `block in run'
    /opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:295:in `realtime'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:177:in `run'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:234:in `block in reserve_and_run_one_job'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `execute'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:234:in `reserve_and_run_one_job'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:162:in `block in work_off'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:161:in `times'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:161:in `work_off'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:133:in `block (4 levels) in start'
    /opt/rh/ruby193/root/usr/share/ruby/benchmark.rb:295:in `realtime'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:132:in `block (3 levels) in start'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `execute'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:129:in `block (2 levels) in start'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:128:in `loop'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:128:in `block in start'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/plugins/clear_locks.rb:7:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/plugins/clear_locks.rb:7:in `block (2 levels) in <class:ClearLocks>'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:78:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:78:in `block (2 levels) in add'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:60:in `block in initialize'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:78:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:78:in `block in add'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:65:in `execute'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/lifecycle.rb:38:in `run_callbacks'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/worker.rb:127:in `start'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/command.rb:101:in `run'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/command.rb:89:in `block in run_process'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/application.rb:249:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/application.rb:249:in `block in start_proc'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/daemonize.rb:197:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/daemonize.rb:197:in `call_as_daemon'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/application.rb:253:in `start_proc'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/application.rb:293:in `start'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/controller.rb:70:in `run'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons.rb:195:in `block in run_proc'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/cmdline.rb:109:in `call'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/cmdline.rb:109:in `catch_exceptions'
    /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons.rb:194:in `run_proc'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/command.rb:87:in `run_process'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/command.rb:80:in `block in daemonize'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/command.rb:78:in `times'
    /opt/rh/ruby193/root/usr/share/gems/gems/delayed_job-3.0.2/lib/delayed/command.rb:78:in `daemonize'
    /usr/bin/katello-jobs:9:in `<main>'
    2014-03-18T11:16:01-0400: [Worker(delayed_job host:satellite.ejacobs.local pid:4488)] 1 jobs processed at 0.0756 j/s, 1 failed ...

I have attached the two puppet modules.

Steps:

1. create a product
2. create a repository for puppet modules
3. upload the two modules
4. create a content view for the puppet repository
5. publish the view

The error above occurs.

puppetlabs-ntp-3.0.3.tar.gz puppetlabs-ntp-3.0.3.tar.gz 16.3 KB Erik Jacobs, 03/18/2014 03:28 PM
thoraxe-motd-0.1.0.tar.gz thoraxe-motd-0.1.0.tar.gz 1.91 KB Erik Jacobs, 03/18/2014 03:28 PM

Related issues

Related to Smart Proxy - Bug #4658: Environment list returns undefined method `[]' for nil:NilClass on Puppet 3.5Closed2014-03-14

Associated revisions

Revision 597ab3ab (diff)
Added by Dominic Cleal over 6 years ago

fixes #4686 - don't rely on Puppet[:config] to store config file location

History

#1 Updated by Mike McCune over 6 years ago

An even simpler way to reproduce this:

1. lay down some puppet modules in /etc/puppet/environments/
2. Attempt to import classes from a Smart Proxy running on the same machine
3. Note error in the smart proxy log:

I, [2014-03-18T20:59:56.575526 #4632] INFO -- : Initializing from Puppet config file: /etc/puppet/puppet.conf
E, [2014-03-18T20:59:56.579946 #4632] ERROR -- : Failed to list puppet environments: Puppet config at /usr/share/foreman-proxy/.puppet/puppet.conf was not found

there was some discussion on IRC that puppet-2.7 may be the culprit but it is unknown exactly what causes this error.

A system where this is occurring is:

dhcp-8-29-214.lab.eng.rdu2.redhat.com with our standard internal login/password

#2 Updated by Dominic Cleal over 6 years ago

  • Project changed from Katello to Smart Proxy
  • Subject changed from (nightlies 3-18-14) publishing puppet repositories breaks delayed_job to Proxy attempts to load Puppet config at /usr/share/foreman-proxy/.puppet/puppet.conf
  • Category set to Puppet

#3 Updated by Dominic Cleal over 6 years ago

  • Related to Bug #4658: Environment list returns undefined method `[]' for nil:NilClass on Puppet 3.5 added

#4 Updated by Dominic Cleal over 6 years ago

  • Target version set to 1.9.0

#5 Updated by Dominic Cleal over 6 years ago

  • Legacy Backlogs Release (now unused) set to 7

#6 Updated by Dominic Cleal over 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

#7 Updated by Dominic Cleal over 6 years ago

  • Status changed from Assigned to Ready For Testing

#8 Updated by Dominic Cleal over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF