Hi Jonathan,
Could you also share the facter version/path and the OS that you've 
encountered this on.

facter --version
which facter

I ask because the `facter -p mountpoints` output you're getting doesn't 
match what I see, which shows output for physical mounts only, for example:

root@masterlocal:~/puppet-enterprise-2016.4.0-ubuntu-16.04-amd64# facter -p 
mountpoints
{
  / => {
    available => "15.62 GiB",
    available_bytes => 16771174400,
    capacity => "16.00%",
    device => "/dev/mapper/localhost--vg-root",
    filesystem => "ext4",
    options => [
      "rw",
      "relatime",
      "errors=remount-ro",
      "data=ordered"
    ],
    size => "18.60 GiB",
    size_bytes => 19966849024,
    used => "2.98 GiB",
    used_bytes => 3195674624
  },
  /boot => {
    available => "419.11 MiB",
    available_bytes => 439472128,
    capacity => "11.13%",
    device => "/dev/sda1",
    filesystem => "ext2",
    options => [
      "rw",
      "relatime",
      "block_validity",
      "barrier",
      "user_xattr",
      "acl"
    ],
    size => "471.60 MiB",
    size_bytes => 494512128,
    used => "52.49 MiB",
    used_bytes => 55040000
  }
}

Thanks,
John

On Friday, 4 November 2016 03:07:07 UTC-7, Jonathan Gazeley wrote:
>
> No, I haven't knowingly changed anything about Facter's configuration. 
> In fact the config file I'm using is migrated from a previous Puppet 3 
> install and explicitly has stringify_facts = false. 
>
> Thanks, 
> Jonathan 
>
> On 03/11/16 17:41, Peter Huene wrote: 
> > On Thu, Nov 3, 2016 at 10:30 AM, Justin Stoller <jus...@puppet.com 
> <javascript:> 
> > <mailto:jus...@puppet.com <javascript:>>> wrote: 
> > 
> > 
> > 
> >     On Thu, Nov 3, 2016 at 2:52 AM, Jonathan Gazeley 
> >     <jonathan...@bristol.ac.uk <javascript:> 
> >     <mailto:jonathan...@bristol.ac.uk <javascript:>>> wrote: 
> > 
> >         Hi folks, 
> > 
> >         I've been running open-source Puppet 3.x for years but this week 
> >         I'm dabbling with a new installation of PE 2016.4. I installed 
> >         from the pointy-clicky installer and so far the PE server only 
> >         has itself in the inventory, but is failing to do a puppet run. 
> >         It bails with this error: 
> > 
> >         Could not retrieve catalog from remote server: Error 500 on 
> >         SERVER: Server Error: Evaluation Error: Error while evaluating a 
> >         Resource Statement, Evaluation Error: Error while evaluating a 
> >         Method call, 'dig' parameter 'data' expects a Collection value, 
> >         got String at 
> >         
> /opt/puppetlabs/puppet/modules/puppet_enterprise/manifests/master/puppetserver.pp:673:42
>  
>
> >         on node puppet4-prod.resnet.bris.ac.uk 
> >         <http://puppet4-prod.resnet.bris.ac.uk> 
> > 
> >         I think that manifest is something that came with PE and not 
> >         something I've installed, so I've no idea where to start. Any 
> ideas? 
> > 
> > 
> >     Looking at that line in the puppet configuration it seems that we're 
> >     digging into the mountpoints: 
> > 
> >     $tmp_mount_options = $::mountpoints.dig( '/tmp', 'options' ) 
> > 
> > 
> >     Dig expects to be called on a collection[1], and reading the error I 
> >     would assume that the fact `mountpoints` is returning a string or 
> >     that the "/tmp" key within the fact is returning a string. Which is 
> >     not how Facter should be behaving[2]. 
> > 
> > 
> > Perhaps we're picking up a (deprecated for forever now) `stringify_facts 
> > = true` in Puppet's settings, perhaps from a previous installation? 
> > 
> > My guess is that Facter is operating correctly since this fact is tested 
> > against the schema definition to verify it is always a map. 
> > 
> > 
> > 
> >     Have you changed anything relating to Facter or its configuration? 
> > 
> > 
> >      - Justin 
> > 
> > 
> >     1. https://docs.puppet.com/puppet/4.8/reference/function.html#dig 
> >     <https://docs.puppet.com/puppet/4.8/reference/function.html#dig> 
> >     2. https://docs.puppet.com/facter/latest/core_facts.html#mountpoints 
> >     <https://docs.puppet.com/facter/latest/core_facts.html#mountpoints> 
> > 
> > 
> >         Thanks, 
> >         Jonathan 
> > 
> >         -- 
> >         Jonathan Gazeley 
> >         Senior Systems Administrator 
> >         IT Services 
> >         University of Bristol 
> > 
> >         -- 
> >         You received this message because you are subscribed to the 
> >         Google Groups "Puppet Users" group. 
> >         To unsubscribe from this group and stop receiving emails from 
> >         it, send an email to puppet-users...@googlegroups.com 
> <javascript:> 
> >         <mailto:puppet-users%2bunsubscr...@googlegroups.com 
> <javascript:>>. 
> >         To view this discussion on the web visit 
> >         
> https://groups.google.com/d/msgid/puppet-users/a6b299e2-7ff0-edaa-6f38-4747bb64d758%40bristol.ac.uk
>  
> >         <
> https://groups.google.com/d/msgid/puppet-users/a6b299e2-7ff0-edaa-6f38-4747bb64d758%40bristol.ac.uk>.
>  
>
> >         For more options, visit https://groups.google.com/d/optout 
> >         <https://groups.google.com/d/optout>. 
> > 
> > 
> >     -- 
> >     You received this message because you are subscribed to the Google 
> >     Groups "Puppet Users" group. 
> >     To unsubscribe from this group and stop receiving emails from it, 
> >     send an email to puppet-users...@googlegroups.com <javascript:> 
> >     <mailto:puppet-users+unsubscr...@googlegroups.com <javascript:>>. 
> >     To view this discussion on the web visit 
> >     
> https://groups.google.com/d/msgid/puppet-users/CA%2B%3DBEqU%3D1rQq%2Bws%3DjpybcxJWWfeKsu-WKJXx%2BSpnr_ebhuCE2Q%40mail.gmail.com
>  
> >     <
> https://groups.google.com/d/msgid/puppet-users/CA%2B%3DBEqU%3D1rQq%2Bws%3DjpybcxJWWfeKsu-WKJXx%2BSpnr_ebhuCE2Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>  
>
> > 
> >     For more options, visit https://groups.google.com/d/optout 
> >     <https://groups.google.com/d/optout>. 
> > 
> > 
> > 
> > 
> > -- 
> > -- 
> > Peter Huene - Senior Software Engineer 
> > peter...@puppet.com <javascript:> <mailto:peter...@puppet.com 
> <javascript:>> | @peterhuene 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Puppet Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to puppet-users...@googlegroups.com <javascript:> 
> > <mailto:puppet-users+unsubscr...@googlegroups.com <javascript:>>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/puppet-users/CACZQQfMDTCxkzq1zGXxO2t%2BOnsJUyRB0X88%2BBWa%2BKZZY_vE3Yw%40mail.gmail.com
>  
> > <
> https://groups.google.com/d/msgid/puppet-users/CACZQQfMDTCxkzq1zGXxO2t%2BOnsJUyRB0X88%2BBWa%2BKZZY_vE3Yw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
> -- 
> Jonathan Gazeley 
> Senior Systems Administrator 
> IT Services 
> University of Bristol 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/63bea08f-dffa-4e27-b5f3-3903e78b94ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to