Skip to content

FQDNs grains generate errors in IPv6 #52788

@aplanas

Description

@aplanas

Description of Issue/Question

My salt-master is over a host that contains IPv4 and IPv6 addresses, and not all the IPv6 can be resolved by a DNS.

The grains in core try to resolve all the IPs, but not all of them can be resolved, so my master log errors like this ones:

[ERROR   ] Exception during resolving address: [Errno 1] Unknown host
[ERROR   ] Exception during resolving address: [Errno 4] No address associated with name

Those errors correspond to the HOST_NOT_FOUND and NO_DATA from the socket API.

Setup

Any deployment of develop will recreate the issue

Versions Report

develop branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-discussionThe issue or pull request needs more discussion before it can be closed or merged

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions