Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2870

Can't run puppet on machines with VLANs as facts are failing

    XMLWordPrintable

Details

    • Night's Watch
    • ghost 25.11, ghost-2.12
    • Needs Assessment
    • Bug Fix
    • Dots in legacy fact names are ignored, they are not used as indicator of a fact hierarchy because legacy facts cannot be compose and always have a flat (key - value) structure.
    • Needs Assessment

    Description

      Puppet 7.0.0 can't run on machines with VLANs configured, as facter is failing with:

       

      # puppet agent -t --noop
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Error: Could not retrieve local facts: undefined method `bury' for "ffff:ffff:ffff:ffff::":String
      Error: Failed to apply catalog: Could
       
       
      # puppet facts show
      Error: undefined method `bury' for "ffff:ffff:ffff:ffff::":String
      Error: Try 'puppet help facts show' for usage 

       

      After applying FACT-2851 we get the following message:

       

       # puppet facts show 
      Error: Facter: Legacy fact `netmask6_enp1s0.33` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `netmask6_enp1s0` group
      Error: Facter: Legacy fact `netmask6_enp1s0.77` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `netmask6_enp1s0` group
      Error: Facter: Legacy fact `netmask6_enp1s0.99` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `netmask6_enp1s0` group
      Error: Facter: Legacy fact `network6_enp1s0.33` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `network6_enp1s0` group
      Error: Facter: Legacy fact `network6_enp1s0.77` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `network6_enp1s0` group
      Error: Facter: Legacy fact `network6_enp1s0.99` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `network6_enp1s0` group
      Error: Facter: Legacy fact `scope6_enp1s0.33` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `scope6_enp1s0` group
      Error: Facter: Legacy fact `scope6_enp1s0.77` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `scope6_enp1s0` group
      Error: Facter: Legacy fact `scope6_enp1s0.99` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `scope6_enp1s0` group
      Error: Facter: Legacy fact `mtu_enp1s0.33` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `mtu_enp1s0` group
      Error: Facter: Legacy fact `mtu_enp1s0.77` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `mtu_enp1s0` group
      Error: Facter: Legacy fact `mtu_enp1s0.99` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `mtu_enp1s0` group
      Error: Facter: Legacy fact `macaddress_enp1s0.33` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `macaddress_enp1s0` group
      Error: Facter: Legacy fact `macaddress_enp1s0.77` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `macaddress_enp1s0` group
      Error: Facter: Legacy fact `macaddress_enp1s0.99` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `macaddress_enp1s0` group
      Error: Facter: Legacy fact `ipaddress6_enp1s0.33` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `ipaddress6_enp1s0` group
      Error: Facter: Legacy fact `ipaddress6_enp1s0.77` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `ipaddress6_enp1s0` group
      Error: Facter: Legacy fact `ipaddress6_enp1s0.99` cannot be added to collection. The format of this fact is incompatible with other facts that belong to `ipaddress6_enp1s0` group
      {
        "os": {
          "name": "CentOS",
          "release": {
            "full": "7.9.2009",
            "major": "7",
            "minor": "9"
          },
      [...]

       

      The node has a bunch of vlans configured:

       

       # ip a
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
          inet 127.0.0.1/8 scope host lo
             valid_lft forever preferred_lft forever
          inet6 ::1/128 scope host 
             valid_lft forever preferred_lft forever
      2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
          link/ether 00:0d:b9:45:9a:a4 brd ff:ff:ff:ff:ff:ff
          inet6 fe80::20d:b9ff:fe45:9aa4/64 scope link 
             valid_lft forever preferred_lft forever
      3: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
          link/ether 00:0d:b9:45:9a:a5 brd ff:ff:ff:ff:ff:ff
      4: enp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
          link/ether 00:0d:b9:45:9a:a6 brd ff:ff:ff:ff:ff:ff
      5: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue master brring0 state UNKNOWN group default qlen 1000
          link/ether b6:9e:da:95:94:af brd ff:ff:ff:ff:ff:ff
          inet6 fe80::b49e:daff:fe95:94af/64 scope link 
             valid_lft forever preferred_lft forever
      6: enp1s0.33@enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
          link/ether 00:0d:b9:45:9a:a4 brd ff:ff:ff:ff:ff:ff
          inet 1.2.3.4/27 brd 1.2.3.255 scope global enp1s0.33
             valid_lft forever preferred_lft forever
          inet6 2a00:acab:0:ffff::a0/64 scope global 
             valid_lft forever preferred_lft forever
          inet6 fe80::20d:b9ff:fe45:9aa4/64 scope link 
             valid_lft forever preferred_lft forever
      7: enp1s0.77@enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
          link/ether 00:0d:b9:45:9a:a4 brd ff:ff:ff:ff:ff:ff
          inet 192.168.255.229/24 brd 192.168.255.255 scope global enp1s0.77
             valid_lft forever preferred_lft forever
          inet6 fe80::20d:b9ff:fe45:9aa4/64 scope link 
             valid_lft forever preferred_lft forever
      8: enp1s0.99@enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
          link/ether 00:0d:b9:45:9a:a4 brd ff:ff:ff:ff:ff:ff
          inet 192.168.254.229/24 brd 192.168.254.255 scope global enp1s0.99
             valid_lft forever preferred_lft forever
          inet6 fe80::20d:b9ff:fe45:9aa4/64 scope link 
             valid_lft forever preferred_lft forever
      

       

       

      This is

       puppet-agent-7.0.0-1.el7.x86_64

      Attachments

        Activity

          People

            bogdan.irimie Bogdan Irimie
            duritong Peter Meier
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support