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

facter get child interfaces's ip address twice with intended for the primary interface

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: FACT 3.6.4
    • Fix Version/s: None
    • Component/s: None
    • Template:
      APAC (Asia Pacific) Exit
    • Team:
      Platform OS
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 4.10.1
      OS Name/Version: Ubuntu 14.04

      Network configured as below:

      3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
          link/ether 08:00:27:25:89:b4 brd ff:ff:ff:ff:ff:ff
          inet 192.168.56.103/24 brd 192.168.56.255 scope global eth1
             valid_lft forever preferred_lft forever
          inet 10.0.1.3/24 brd 10.0.1.255 scope global eth1:1
             valid_lft forever preferred_lft forever
          inet6 fe80::a00:27ff:fe25:89b4/64 scope link
             valid_lft forever preferred_lft forever
      

      facter networking.interfaces.eth1
      Desired Behavior:

      {
        bindings => [
          {
            address => "192.168.56.103",
            netmask => "255.255.255.0",
            network => "192.168.56.0"
          }
        ],
        bindings6 => [
          {
            address => "fe80::a00:27ff:fe25:89b4",
            netmask => "ffff:ffff:ffff:ffff::",
            network => "fe80::"
          }
        ],
        dhcp => "192.168.56.100",
        ip => "192.168.56.103",
        ip6 => "fe80::a00:27ff:fe25:89b4",
        mac => "08:00:27:25:89:b4",
        mtu => 1500,
        netmask => "255.255.255.0",
        netmask6 => "ffff:ffff:ffff:ffff::",
        network => "192.168.56.0",
        network6 => "fe80::"
      }
      
      

      Actual Behavior:

       
      {
        bindings => [
          {
            address => "192.168.56.103",
            netmask => "255.255.255.0",
            network => "192.168.56.0"
          },
          {
            address => "10.0.1.3"
          }
        ],
        bindings6 => [
          {
            address => "fe80::a00:27ff:fe25:89b4",
            netmask => "ffff:ffff:ffff:ffff::",
            network => "fe80::"
          }
        ],
        dhcp => "192.168.56.100",
        ip => "192.168.56.103",
        ip6 => "fe80::a00:27ff:fe25:89b4",
        mac => "08:00:27:25:89:b4",
        mtu => 1500,
        netmask => "255.255.255.0",
        netmask6 => "ffff:ffff:ffff:ffff::",
        network => "192.168.56.0",
        network6 => "fe80::"
      }
      

      This means facter get the ip address of eth1:1 when running facter networking.interfaces.eth1

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            clux clux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support