Skip to content
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

2018.3 - Master address: '127.0.0.1' could not be resolved #51289

Closed
ghost opened this issue Jan 23, 2019 · 7 comments
Closed

2018.3 - Master address: '127.0.0.1' could not be resolved #51289

ghost opened this issue Jan 23, 2019 · 7 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior fixed-pls-verify fix is linked, bug author to confirm fix severity-critical top severity, seen by most users, serious issues severity-high 2nd top severity, seen by most users, causes major problems v2018.3.4 unsupported version
Milestone

Comments

@ghost
Copy link

ghost commented Jan 23, 2019

Description of Issue/Question

Testing the latest 2018.3 branch since we needed a few mysql module fixes in it that didn't make it to a stable release, and we are now seeing an error when setting up a minion to connect to a local master using 127.0.0.1 as address.

2019-01-21 17:00:20,178 [salt.cli.daemons :357 ][ERROR ][30809] Master address: '127.0.0.1' could not be resolved. Invalid or unresolveable address. Set 'master' value in minion config.

Using localhost instead, works as expected.

Setup

Minion configuration is:

id: test.domain
metadata_server_grains: True
use_superseded: [ 'module.run' ]
log_level: "info"
master: "127.0.0.1"

This config is done by salt-cloud as part of our automated environment, so we really cannot set anything other than 127.0.0.1 for the first bootstrap.

Steps to Reproduce Issue

Use latest 2018.3 branch and setup minion to connect to a local master using 127.0.0.1 as address.

Versions Report

           Salt: 2018.3.0

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.6.1
      docker-py: Not Installed
          gitdb: 2.0.3
      gitpython: 2.1.8
          ioflo: Not Installed
         Jinja2: 2.10
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: 1.2.5
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.10 (default, Dec 19 2015, 08:44:39)
   python-gnupg: Not Installed
         PyYAML: 4.1
          PyZMQ: 17.1.2
           RAET: Not Installed
          smmap: 2.0.3
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.1.4

System Versions:
           dist: centos 7.6.1810 Core
         locale: UTF-8
        machine: x86_64
        release: 3.10.0-957.1.3.el7.x86_64
         system: Linux
        version: CentOS Linux 7.6.1810 Core```
@Ch3LL
Copy link
Contributor

Ch3LL commented Jan 23, 2019

looks like i'm able to replicate this on the head of 2018.3

I was not able to bisect this cleanly but it might be related to this PR: #49755

thanks for the heads up we will need to get this fixed.

@Ch3LL Ch3LL added Bug broken, incorrect, or confusing behavior severity-high 2nd top severity, seen by most users, causes major problems team-core labels Jan 23, 2019
@Ch3LL Ch3LL added this to the Approved milestone Jan 23, 2019
@Ch3LL
Copy link
Contributor

Ch3LL commented Jan 23, 2019

i tested 2019.2.0.rc1 branch and it is not affected.

@Ch3LL Ch3LL added v2018.3.4 unsupported version severity-critical top severity, seen by most users, serious issues labels Jan 23, 2019
@Ch3LL Ch3LL added the fixed-pls-verify fix is linked, bug author to confirm fix label Jan 24, 2019
@max-arnold
Copy link
Contributor

Have the same problem in 2019.2.0.rc1:

root@minion1:~# salt-minion --version
salt-minion 2019.2.0-n/a-b348034 (Fluorine)

root@minion1:~# salt-minion
[INFO    ] Setting up the Salt Minion "minion1"
[INFO    ] Starting up the Salt Minion
[INFO    ] Starting pull socket on /var/run/salt/minion/minion_event_1e9498c860_pull.ipc
[INFO    ] Creating minion process manager
[ERROR   ] Master address: '192.168.10.10' could not be resolved. Invalid or unresolveable address. Set 'master' value in minion config.
[INFO    ] Stopping the Salt Minion
[ERROR   ] Master address: '192.168.10.10' could not be resolved. Invalid or unresolveable address. Set 'master' value in minion config.
[INFO    ] Shutting down the Salt Minion
The Salt Minion is shutdown.
Master address: '192.168.10.10' could not be resolved. Invalid or unresolveable address. Set 'master' value in minion config.


root@minion1:~# ping 192.168.10.10
PING 192.168.10.10 (192.168.10.10) 56(84) bytes of data.
64 bytes from 192.168.10.10: icmp_seq=1 ttl=64 time=0.508 ms
64 bytes from 192.168.10.10: icmp_seq=2 ttl=64 time=0.643 ms
^C
--- 192.168.10.10 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 0.508/0.575/0.643/0.071 ms

@Ch3LL
Copy link
Contributor

Ch3LL commented Jan 25, 2019

that commit in your version is on the 2019.2 branch. We will be releasing from the 2019.2.0.rc1 branch which is not affected. This fixes the issue: #51274 which will be merged forward into 2019.2

@arizvisa
Copy link
Contributor

Hey y'all. As a workaround, I found by explicitly disabling IPv6 it forces things to get handled correctly. Unfortunately though, you lose IPv6...but what the hey...

@Ch3LL Ch3LL closed this as completed Jan 30, 2019
@Ch3LL
Copy link
Contributor

Ch3LL commented Jan 30, 2019

thanks for that workaround @arizvisa i'm sure it might help someone. closing this issue as there is a merged fix. thanks

@takeda
Copy link
Contributor

takeda commented Sep 2, 2020

This is still an issue in 3001.1.

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 fixed-pls-verify fix is linked, bug author to confirm fix severity-critical top severity, seen by most users, serious issues severity-high 2nd top severity, seen by most users, causes major problems v2018.3.4 unsupported version
Projects
None yet
Development

No branches or pull requests

5 participants