Skip to content

[Bug]: 3007.8 breaks due to #68314 not accounting for minions that may have interfaces that don't support IPv4 #68355

@Sxderp

Description

@Sxderp

What happened?

A traceback occurs during the highstate or grains.items.

File "C:\Program Files\Salt Project\Salt\Lib\site-packages\salt\utils\win_network.py", line 175, in _get_ip_base_properties
    ipv4_properties = ip_properties.GetIPv4Properties()  # DHCP Properties
System.Net.NetworkInformation.NetworkInformationException:  (0x80004005): The requested protocol has not been configured into the system, or no implementation for it exists
   at System.Net.NetworkInformation.SystemIPInterfaceProperties.GetIPv4Properties()

#68314 used the SystemIPInterfaceProperties.GetIPv4Properties() API. According to Microsoft this API can error if IPv4 is not supported on an interface. https://learn.microsoft.com/en-us/dotnet/api/system.net.networkinformation.ipinterfaceproperties.getipv4properties?view=net-9.0#exceptions

ASIDE: I think #68314 also changes how the grain data is output. Grains should be pretty stable and this "fix" is more of a "breaking change".

I did a bit of digging and found out the interface that is causing the issues, if it's relevant:

>>> bad.Description
'Microsoft Teredo Tunneling Adapter'
>>> bad.Name
'Teredo Tunneling Pseudo-Interface'

Type of salt install

Official exe

Major version

3007.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

windows-desktop-11

salt --versions-report output

Salt Version:
          Salt: 3007.8

Python Version:
        Python: 3.10.18 (heads/main:1b25f37, Sep  5 2025, 22:35:19) [MSC v.1944 64 bit (AMD64)]

Dependency Versions:
          cffi: 1.16.0
      cherrypy: 18.8.0
  cryptography: 42.0.5
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: 4.0.10
     gitpython: Not Installed
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.20.6
         smmap: 5.0.1
       timelib: 0.3.0
       Tornado: 6.4.2
           ZMQ: 4.3.4

Salt Package Information:
  Package Type: onedir

System Versions:
          dist:
        locale: utf-8
       machine: AMD64
       release: 10
        system: Windows
       version: 10 10.0.22631 SP0 Multiprocessor Free

Metadata

Metadata

Assignees

Labels

bugbroken, incorrect, or confusing behavior

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions