[BUG] minion: failed to resolve address 192.168.1.7: host name lookup failure
Open
Nobody has claimed this yet.
bug
needs-triage
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
Description
- a salt_master is started locally ( 192.168.1.7 ); shows no errors in the
/var/log/salt/master; - a salt_minion is started locally ( 192.168.1.7 ); the
/var/log/salt/minionfile 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the network module reported in the log at salt.modules.network:284, then reproduce the address-resolution error using the provided FreeBSD 14.2, Salt 3006.8 master and minion configuration. Done means the local setup no longer produces the reported host name lookup failure for 192.168.1.7.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100