Jira (PUP-10796) puppet filebucket fails when using non-default environment from master

2 views
Skip to first unread message

Nick (Jira)

unread,
Dec 1, 2020, 3:29:04 PM12/1/20
to puppe...@googlegroups.com
Nick created an issue
 
Puppet / Bug PUP-10796
puppet filebucket fails when using non-default environment from master
Issue Type: Bug Bug
Affects Versions: PUP 5.5.21
Assignee: Unassigned
Created: 2020/12/01 12:28 PM
Priority: Normal Normal
Reporter: Nick

Puppet Version: 5.5.21
Puppet Server Version: 5.3.8
OS Name/Version: RHEL 7

When using a non default environment (something other than production) on a puppet agent from the puppet master, for example testenv, running puppet filebucket -l list --bucket /opt/puppetlabs/puppet/cache/clientbucket/ fails with Puppet::Environments::EnvironmentNotFound

Desired Behavior: puppet filebucket uses Puppet environment from /etc/puppetlabs/puppet/puppet.conf and runs successfully.

Actual Behavior:

 

 $ sudo puppet filebucket -l list --bucket /opt/puppetlabs/puppet/cache/clientbucket/ 
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/environments.rb:38:in `get!': Could not find a directory environment named 'testenv' anywhere in the path: /etc/puppetlabs/code/environments. Does the directory exist? (Puppet::Environments::EnvironmentNotFound)
        from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application_support.rb:34:in `push_application_context'
        from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:363:in `run'
        from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:139:in `run'
        from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:77:in `execute'
        from /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
$ puppet --version
5.5.21
$ ls -lhatr /etc/puppetlabs/code/environments/ total 0 drwxr-xr-x. 4 root root 41 Jul 3 07:34 .. drwxr-xr-x. 3 root root 24 Jul 3 07:34 . drwxr-xr-x. 5 root root 92 Aug 21 01:30 production
$ cat /etc/puppetlabs/puppet/puppet.conf
[main]
environment = testenv
server = puppetmaster.example.com
runtimeout = 1h
splay = true
splaylimit = 3m
strict_variables = true
graph = true

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Dec 1, 2020, 7:24:03 PM12/1/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10796
 
Re: puppet filebucket fails when using non-default environment from master

This is a great beginner puppet ticket. The filebucket application needs to do the same thing as the plugin application

Josh Cooper (Jira)

unread,
Dec 1, 2020, 7:25:03 PM12/1/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 15, 2021, 11:53:02 AM6/15/21
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Josh Cooper
Change By: Josh Cooper
Assignee: Josh Cooper
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 15, 2021, 11:54:01 AM6/15/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Bug Fix
Release Notes Summary: The filebucket application no longer requires an environment to exist locally.

Gabriel Nagy (Jira)

unread,
Jun 16, 2021, 10:16:01 AM6/16/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 16, 2021, 11:23:01 AM6/16/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 16, 2021, 11:23:02 AM6/16/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 16, 2021, 11:24:02 AM6/16/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 7.9.0
Fix Version/s: PUP 6.24.0

Josh Cooper (Jira)

unread,
Jun 21, 2021, 2:27:02 PM6/21/21
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Jul 13, 2021, 7:48:03 AM7/13/21
to puppe...@googlegroups.com
Claire Cadman updated an issue
 
Change By: Claire Cadman
Labels: beginner doc-reviewed help_wanted
Reply all
Reply to author
Forward
0 new messages