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

salt-minion fails with IPv6 #39336

Closed
GevatterGaul opened this issue Feb 12, 2017 · 3 comments
Closed

salt-minion fails with IPv6 #39336

GevatterGaul opened this issue Feb 12, 2017 · 3 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 severity-critical top severity, seen by most users, serious issues severity-high 2nd top severity, seen by most users, causes major problems ZRELEASED - 2016.3.6 ZRELEASED - 2016.11.4
Milestone

Comments

@GevatterGaul
Copy link

GevatterGaul commented Feb 12, 2017

Description of Issue/Question

When I use a domain name that only resolves to a IPv6 address for the master address in the minion config the salt-minion will exit with an error code. With an IPv4 domain, everything works as expected.

Feb 12 01:21:02 mail systemd[1]: Starting The Salt Minion...
Feb 12 01:21:02 mail systemd[1]: Started The Salt Minion.
Feb 12 01:21:04 mail salt-minion[12340]: Permission denied (src/tcp_connecter.cpp:344)
Feb 12 01:21:04 mail systemd[1]: salt-minion.service: Main process exited, code=exited, status=250/n/a
Feb 12 01:21:04 mail systemd[1]: salt-minion.service: Unit entered failed state.
Feb 12 01:21:04 mail systemd[1]: salt-minion.service: Failed with result 'exit-code'.

Setup

Default salt-minion config, except the master entry and ipv6 switch:

master: ipv6-only-domain.duckdns.org
ipv6: True

Steps to Reproduce Issue

Install a current salt-minion and change the master to a ipv6 only domain name. Then restart the salt-minion.

Versions Report

Salt Version:
           Salt: 2016.11.2

Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.4.2
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.8
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.3
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
         Python: 2.7.12 (default, Nov 19 2016, 06:48:10)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.2.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4

System Versions:
           dist: Ubuntu 16.04 xenial
        machine: x86_64
        release: 4.4.0-62-generic
         system: Linux
        version: Ubuntu 16.04 xenial
@gtmanfred
Copy link
Contributor

Can you provide the debug output of the salt minion when it is starting?

I have been unable to get the minion to connect to a master over ipv6, and have been unsuccessful. I just want to compare what you are seeing in debug to my logs.

Thanks,
Daniel

@gtmanfred gtmanfred added Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt severity-high 2nd top severity, seen by most users, causes major problems P3 Priority 3 TEAM Core labels Feb 13, 2017
@gtmanfred gtmanfred added this to the Approved milestone Feb 13, 2017
@gtmanfred gtmanfred added the severity-critical top severity, seen by most users, serious issues label Feb 13, 2017
@GevatterGaul
Copy link
Author

Here is the debug output:

Feb 15 23:30:24 mail systemd[1]: Starting The Salt Minion...
Feb 15 23:30:24 mail systemd[1]: Started The Salt Minion.
Feb 15 23:30:24 mail salt-minion[26521]: [DEBUG   ] Configuration file path: /etc/salt/minion
Feb 15 23:30:24 mail salt-minion[26521]: [WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
Feb 15 23:30:24 mail salt-minion[26521]: [INFO    ] Setting up the Salt Minion "mail"
Feb 15 23:30:24 mail salt-minion[26521]: [DEBUG   ] Created pidfile: /var/run/salt-minion.pid
Feb 15 23:30:24 mail salt-minion[26521]: [INFO    ] Starting up the Salt Minion
Feb 15 23:30:24 mail salt-minion[26521]: [DEBUG   ] AsyncEventPublisher PUB socket URI: /var/run/salt/minion/minion_event_00d8d3f117_pub.ipc
Feb 15 23:30:24 mail salt-minion[26521]: [DEBUG   ] AsyncEventPublisher PULL socket URI: /var/run/salt/minion/minion_event_00d8d3f117_pull.ipc
Feb 15 23:30:24 mail salt-minion[26521]: [INFO    ] Starting pull socket on /var/run/salt/minion/minion_event_00d8d3f117_pull.ipc
Feb 15 23:30:24 mail salt-minion[26521]: [DEBUG   ] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_00d8d3f117_pub.ipc
Feb 15 23:30:24 mail salt-minion[26521]: [DEBUG   ] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_00d8d3f117_pull.ipc
Feb 15 23:30:24 mail salt-minion[26521]: [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_00d8d3f117_pub.ipc
Feb 15 23:30:24 mail salt-minion[26521]: [DEBUG   ] Reading configuration from /etc/salt/minion
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Reading configuration from /etc/salt/minion.d/_schedule.conf
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Please install 'virt-what' to improve results of the 'virtual' grain.
Feb 15 23:30:25 mail salt-minion[26521]: [INFO    ] Creating minion process manager
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Process Manager starting!
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Process Manager starting!
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Connecting to master. Attempt 1 of 1
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'mail', 'tcp://[2003:XXXXXX]:4506')
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Generated random reconnect delay between '1000ms' and '11000ms' (6720)
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Setting zmq_reconnect_ivl to '6720ms'
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Setting zmq_reconnect_ivl_max to '11000ms'
Feb 15 23:30:25 mail salt-minion[26521]: [DEBUG   ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'mail', 'tcp://[2003:XXXXXX]:4506', 'clear')
Feb 15 23:30:26 mail salt-minion[26521]: Permission denied (src/tcp_connecter.cpp:344)
Feb 15 23:30:27 mail systemd[1]: salt-minion.service: Main process exited, code=exited, status=250/n/a
Feb 15 23:30:27 mail systemd[1]: salt-minion.service: Unit entered failed state.
Feb 15 23:30:27 mail systemd[1]: salt-minion.service: Failed with result 'exit-code'.

@rallytime
Copy link
Contributor

rallytime commented Mar 1, 2017

Hi @GevatterGaul - I was not able to reproduce your error specifically here, but I was able to reproduce some general issues with connecting via IPv6. The status of IPv6 has changed a bit with the addition of #39289, and then my fix goes on top of that with #39766.

Are you in a position to give the head of the 2016.3 branch a try, once my fix goes in? I want to make sure we have this cleaned up for you since we weren't able to reproduce your specific error.

EDIT: Or, if the head of the 2016.11 branch is better (since I see you were testing this with 2016.11.2), then my fix will be merged forward in the next couple of days once my fix goes into the 2016.3 branch.

@rallytime rallytime added the fixed-pls-verify fix is linked, bug author to confirm fix label Mar 1, 2017
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 Core relates to code central or existential to Salt fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 severity-critical top severity, seen by most users, serious issues severity-high 2nd top severity, seen by most users, causes major problems ZRELEASED - 2016.3.6 ZRELEASED - 2016.11.4
Projects
None yet
Development

No branches or pull requests

3 participants