Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4954

filebucket fails when environment is specified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: PUP 4.2.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      3
    • Sprint:
      Client 2015-10-28
    • CS Priority:
      Critical
    • CS Impact:
      Hide
      Most instructors are telling their students how they can silence the environment override warning by putting the environment in their puppet.conf, even doing it automatically with an ini_setting resource. This may be a holdover from when it was a big scary red error message. But in any case, lots and lots of people are doing this.
      Show
      Most instructors are telling their students how they can silence the environment override warning by putting the environment in their puppet.conf, even doing it automatically with an ini_setting resource. This may be a holdover from when it was a big scary red error message. But in any case, lots and lots of people are doing this.

      Description

      If the agent's `puppet.conf` specifies an environment, then filebucketing fails with an inscrutable error and the run is marked as failed in the Console.

      root@binford2k:~ # cat /etc/puppetlabs/puppet/puppet.conf
      # This file can be used to override the default puppet settings.
      # See the following links for more details on what settings are available:
      # - https://docs.puppetlabs.com/puppet/latest/reference/config_important_settings.html
      # - https://docs.puppetlabs.com/puppet/latest/reference/config_about_settings.html
      # - https://docs.puppetlabs.com/puppet/latest/reference/config_file_main.html
      # - https://docs.puppetlabs.com/references/latest/configuration.html
      [main]
      server = master.puppetlabs.vm
      environment_timeout = 0
      environmentpath = /etc/puppetlabs/code/environments
      [agent]
      certname = binford2k.puppetlabs.vm
      environment = binford2k
      root@binford2k:~ # puppet agent -t
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Caching catalog for binford2k.puppetlabs.vm
      Info: Applying configuration version '1438197631'
      Notice: Hello binford2k.puppetlabs.vm
      Notice: /Stage[main]/Main/Node[default]/Notify[Hello binford2k.puppetlabs.vm]/message: defined 'message' as 'Hello binford2k.puppetlabs.vm'
      Notice: /Stage[main]/Userprefs::Bash/File[/root/.bashrc.puppet]/content:
      --- /root/.bashrc.puppet	2015-07-29 19:20:26.719816423 +0000
      +++ /tmp/puppet-file20150729-52505-17roz3n	2015-07-29 19:20:34.453201837 +0000
      @@ -1,5 +1,3 @@
      -#boogers
      -
       # NOTE: This file is managed by Puppet; any changes you make will be erased.
       
       parse_git_branch ()
       
      Info: Computing checksum on file /root/.bashrc.puppet
      Error: Could not back up /root/.bashrc.puppet: Could not find a directory environment named 'binford2k' anywhere in the path: /etc/puppetlabs/code/environments. Does the directory exist?
      Error: Could not back up /root/.bashrc.puppet: Could not find a directory environment named 'binford2k' anywhere in the path: /etc/puppetlabs/code/environments. Does the directory exist?
      Error: /Stage[main]/Userprefs::Bash/File[/root/.bashrc.puppet]/content: change from {md5}1df06bcfcafd1511cccea89849c37102 to {md5}c81901d08fb7e2c27fff6ca1e450e99e failed: Could not back up /root/.bashrc.puppet: Could not find a directory environment named 'binford2k' anywhere in the path: /etc/puppetlabs/code/environments. Does the directory exist?
      Info: Stage[main]: Unscheduling all events on Stage[main]
      Notice: Applied catalog in 1.35 seconds
      

      The environment exists and the file does not get updated.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  branan Branan Riley
                  Reporter:
                  ben.ford Ben Ford
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  15 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support