-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Not able to run Salt minion on MacOS High Sierra and Mojave #50495
Comments
@shahid3507 we did not see this during our high sierra package testing. can you elaborate on how you installed salt? Also as this a clean install or upgrade? |
@Ch3LL These are the steps that I followed for installation.
|
do you see this error after attaching the minion to a master? Or on first startup? Also i noticed in your steps you are doing the following: |
@Ch3LL The problem which occurred is that there isn't a directory named |
I was not able to replicate this. After brew installing it on 10.13 I see that directory:
Was there possibly an error during install? or when you try to start the salt-minion is there any other errors around not being able to create /etc/salt? |
@Ch3LL |
no it should not affect that. I was installing on a parallels VM. Can you answer my initial questions: Was there possibly an error during install? or when you try to start the salt-minion is there any other errors around not being able to create /etc/salt? |
@Ch3LL
|
thanks for the additional information. ping @weswhet can you replicate this by chance? |
having a 👀 |
On a 10.14.1 VMware VM
|
For what it's worth I don't recall having this issue on Physical ("High Sierra, Version 10.13.6").
|
@weswhet |
@shahid3507 sorry for the delay. Have you tried just installing the macOS pkg and not using brew as a work around? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Salt minions fails to start after installation on MacOS High Sierra (10.13) and Mojave (10.14)
Console output
command : sudo salt-minion -l debug
`[ERROR ] '' does not appear to be an IPv4 or IPv6 address
Traceback (most recent call last):
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/parsers.py", line 210, in parse_args
process_option_func()
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/parsers.py", line 548, in process_config_dir
self.config.update(self.setup_config())
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/parsers.py", line 1789, in setup_config
ignore_config_errors=False)
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/config/init.py", line 2390, in minion_config
minion_id=minion_id)
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/config/init.py", line 3726, in apply_minion_config
cache_minion_id=cache_minion_id)
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/config/init.py", line 3608, in get_id
newid = salt.utils.network.generate_minion_id()
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/network.py", line 172, in generate_minion_id
ret = salt.utils.stringutils.to_unicode(_generate_minion_id().first())
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/network.py", line 161, in _generate_minion_id
return hosts.extend([addr for addr in ip_addrs()
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/network.py", line 1202, in ip_addrs
return _ip_addrs(interface, include_loopback, interface_data, 'inet')
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/network.py", line 1190, in _ip_addrs
addr = ipaddress.ip_address(addr.get('address'))
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/ext/ipaddress.py", line 120, in ip_address
address)
ValueError: '' does not appear to be an IPv4 or IPv6 address
Usage: salt-minion [options]
salt-minion: error: Error while processing <bound method Minion.process_config_dir of <salt.cli.daemons.Minion object at 0x102b12ad0>>: Traceback (most recent call last):
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/parsers.py", line 210, in parse_args
process_option_func()
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/parsers.py", line 548, in process_config_dir
self.config.update(self.setup_config())
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/parsers.py", line 1789, in setup_config
ignore_config_errors=False)
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/config/init.py", line 2390, in minion_config
minion_id=minion_id)
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/config/init.py", line 3726, in apply_minion_config
cache_minion_id=cache_minion_id)
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/config/init.py", line 3608, in get_id
newid = salt.utils.network.generate_minion_id()
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/network.py", line 172, in generate_minion_id
ret = salt.utils.stringutils.to_unicode(_generate_minion_id().first())
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/network.py", line 161, in _generate_minion_id
return hosts.extend([addr for addr in ip_addrs()
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/network.py", line 1202, in ip_addrs
return _ip_addrs(interface, include_loopback, interface_data, 'inet')
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/utils/network.py", line 1190, in _ip_addrs
addr = ipaddress.ip_address(addr.get('address'))
File "/usr/local/Cellar/salt/2018.3.2/libexec/lib/python2.7/site-packages/salt/ext/ipaddress.py", line 120, in ip_address
address)
ValueError: '' does not appear to be an IPv4 or IPv6 address
`
The text was updated successfully, but these errors were encountered: