Skip to content

[BUG] minion: failed to resolve address 192.168.1.7: host name lookup failure #67925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 9 tasks
Dmitry-N-Medvedev opened this issue Mar 27, 2025 · 1 comment
Open
2 of 9 tasks
Labels
Bug broken, incorrect, or confusing behavior needs-triage

Comments

@Dmitry-N-Medvedev
Copy link

Dmitry-N-Medvedev commented Mar 27, 2025

Description

  1. a salt_master is started locally ( 192.168.1.7 ); shows no errors in the /var/log/salt/master;
  2. a salt_minion is started locally ( 192.168.1.7 ); the /var/log/salt/minion file has precisely two records as following:
radius ~ # tail -n 100 -f /var/log/salt/minion
2025-03-27 13:27:21,754 [salt.modules.network                                        :284 ][ERROR   ][57705] Failed to resolve address 192.168.1.7: [Errno 2] Host name lookup failure
2025-03-27 13:27:22,222 [salt.modules.network                                        :284 ][ERROR   ][57705] Failed to resolve address 192.168.1.7: [Errno 2] Host name lookup failure

Setup

// /usr/local/etc/salt/master

default_include: master.d/*.conf
ipv6: False
user: root
enable_ssh_minions: False
pidfile: /var/run/salt-master.pid
conf_file: /usr/local/etc/salt/master
pki_dir: /usr/local/etc/salt/pki/master
cachedir: /var/cache/salt/master
verify_env: True
file_roots:
  base:
    - /usr/local/etc/salt/states
// /usr/local/etc/salt/master.d/network.conf

interface: 192.168.1.7
ret_port: 4506
publish_port: 4505
// /usr/local/etc/satl/master.d/properties.conf

file_recv: True
// /usr/local/etc/salt/minion

master_port: 4506
user: root
pidfile: /var/run/salt-minion.pid
conf_file: /usr/local/etc/salt/minion
pki_dir: /usr/local/etc/salt/pki/minion
grains:
  roles:
    - mini
  deployment: eosander
  cabinet: 0
cachedir: /var/cache/salt/minion
verify_env: True
sock_dir: /var/run/salt/minion
enable_fqdns_grains: True
enable_gpu_grains: True
color: True
strip_colors: False
// /usr/local/etc/salt/minion.d/id.conf
id: minion-192.168.1.7
// /usr/local/etc/salt/master.conf
master: 192.168.1.7

Please be as specific as possible and give set-up details.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD
  • classic packaging
  • onedir packaging
  • used bootstrap to install

Steps to Reproduce the behavior

radius ~ # cat /var/log/salt/minion
2025-03-27 13:27:21,754 [salt.modules.network                                        :284 ][ERROR   ][57705] Failed to resolve address 192.168.1.7: [Errno 2] Host name lookup failure
2025-03-27 13:27:22,222 [salt.modules.network                                        :284 ][ERROR   ][57705] Failed to resolve address 192.168.1.7: [Errno 2] Host name lookup failure

Expected behavior
the host name look up failure should not occur.

Screenshots
none

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
radius ~ # salt --versions-report
Salt Version:
          Salt: 3006.8

Python Version:
        Python: 3.11.11 (main, Jan  7 2025, 01:12:50) [Clang 18.1.5 (https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15

Dependency Versions:
          cffi: Not Installed
      cherrypy: Not Installed
      dateutil: Not Installed
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.4
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.1.0
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.2
     pycparser: Not Installed
      pycrypto: Not Installed
  pycryptodome: 3.21.0
        pygit2: Not Installed
  python-gnupg: Not Installed
        PyYAML: 6.0.1
         PyZMQ: 25.0.2
        relenv: Not Installed
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.5

System Versions:
          dist: freebsd 14.2
        locale: utf-8
       machine: amd64
       release: 14.2-RELEASE-p1
        system: FreeBSD
       version: FreeBSD 14.2
PASTE HERE

Additional context
none.

@Dmitry-N-Medvedev Dmitry-N-Medvedev added Bug broken, incorrect, or confusing behavior needs-triage labels Mar 27, 2025
@rjc
Copy link
Contributor

rjc commented Mar 29, 2025

 // /usr/local/etc/satl/master.d/properties.conf

The above looks like a typo, but is the below one also a typo, or have you created that file:

// /usr/local/etc/salt/master.conf

if the latter, then it won't work.

Either way, you probably meant:

 /usr/local/etc/salt/minion.d/master.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants