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

Failed to get IP Address

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: FACT 3.4.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Os : Linux Debian in vserver

      Puppet version : official puppet-agent from Puppetlabs

    • Template:
    • Team:
      Platform OS

      Description

      When I use facter on a server who DON'T have eth0 but only eth1 (or more), the facter ipaddress return a empty string.

      root:~# /opt/puppetlabs/puppet/bin/facter ipaddress

      root:~#

      The second problem (I think related) is the network.primary information are incorrect. For example

      {
      domain => "xxx.fr",
      fqdn => "yyy.xxx.fr",
      hostname => "yyy",
      interfaces => {
      eth1 => {
      bindings => [

      { address => "aaa.bbb.ccc.78", netmask => "255.255.255.0", network => "aaa.bbb.ccc.0" }

      ,

      { address => "aaa.bbb.ccc.86" }

      ],
      ip => "aaa.bbb.ccc.78",
      mac => "00:00:00:00:00:00",
      mtu => 1500,
      netmask => "255.255.255.0",
      network => "aaa.bbb.193.0"
      },
      lo => {
      bindings => [

      { address => "127.0.0.1", netmask => "255.0.0.0", network => "127.0.0.0" }

      ],
      ip => "127.0.0.1",
      mtu => 65536,
      netmask => "255.0.0.0",
      network => "127.0.0.0"
      }
      },
      primary => "if2"
      }

      so I get a primary « if2 » but it's « eth1 »

        Attachments

          Activity

            People

            Assignee:
            ashih t
            Reporter:
            ashih t
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support