Project

General

Profile

Actions

Bug #10877

closed

Import from puppet fails with "Failed to list puppetenvironments"

Added by Stefan Hölzle almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Puppet
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This issue occurs with version 1.8.2.
I had the same issue with Smart-proxy and Foreman 1.8.1.
However if I use an older development version (b8e4d47 fixes #9919 - stub DNS lookup during trusted hosts test), it works.

Setup:
OS: OpenSUSE 13.2
Puppetmaster 3.7.5
Foreman 1.8.2
Smart-Proxy 1.8.2

The smart-proxy log says:

D, [2015-06-19T12:12:58.600819 #29743] DEBUG -- : verifying remote client ::1 against trusted_hosts ["localhost"]
D, [2015-06-19T12:12:58.601598 #29743] DEBUG -- : require_ssl_client_verification: skipping, non-HTTPS request
I, [2015-06-19T12:12:58.601827 #29743]  INFO -- : Initializing from Puppet config file: /etc/puppet/puppet.conf
E, [2015-06-19T12:12:58.786286 #29743] ERROR -- : Failed to list puppet environments: Attempt to assign a value to unknown setting :ignoreimport
::1 - - [19/Jun/2015 12:12:58] "GET /puppet/environments " 406 94 0.1860

Actions #1

Updated by Dominic Cleal almost 9 years ago

This looks like it's loading Puppet 4 which is incompatible in this way. Check if you have such a package or gem installed.

Actions #2

Updated by Stefan Hölzle almost 9 years ago

I'm running smartproxy from the sources and installed the dependencies with bundler:

git clone git://github.com/theforeman/smart-proxy.git
bundle install --path vendor

One gem it installs is puppet 4.1.
It should install 3.8.1 right ?

The working installation has an older puppet gem installed (3.7.5).

I was under the impression that bundler installs all required gem-dependenies respecting version restrictions.

Actions #3

Updated by Dominic Cleal almost 9 years ago

Hm yeah, we ought to restrict that to < 4.0 for now.

Actions #4

Updated by Stefan Hölzle almost 9 years ago

I confirm that restricting puppet to '< 4' in bundler.d/puppet.rb solves this issue.
Thanks

Actions #5

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/299 added
  • Pull request deleted ()
Actions #6

Updated by Dominic Cleal over 8 years ago

  • Assignee set to Lukas Zapletal
  • translation missing: en.field_release set to 35
Actions #7

Updated by Anonymous over 8 years ago

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

Also available in: Atom PDF