The following problems are encountered:
[Email protected]:/etc/salt# salt-key-l
Accepted Keys:
unaccepted Keys:
Rejected Keys:
[Email protected]:/etc/salt# salt-master-l Debug
[DEBUG] Reading Configuration From/etc/salt/master
[DEBUG] Using Cached Minion ID from/etc/salt/minion_id:saltstack.cs2cloud.internal
[DEBUG] Configuration file path:/etc/salt/master
[INFO] Setting up the Salt Master
[WARNING] Unable to bind socket, error: [Errno] cannot assign requested address
The ports is not available to bind
[Email protected]:/etc/salt# salt-minion-l Debug
[DEBUG] Reading Configuration From/etc/salt/minion
[DEBUG] Using Cached Minion ID from/etc/salt/minion_id:saltstack.cs2cloud.internal
[DEBUG] Configuration file path:/etc/salt/minion
[INFO] Setting up the Salt minion "Saltstack.cs2cloud.internal"
[DEBUG] Created Pidfile:/var/run/salt-minion.pid
[DEBUG] Reading Configuration From/etc/salt/minion
[DEBUG] Attempting to authenticate with the Salt Master at 192.168.101.26
[DEBUG] Loaded Minion Key:/etc/salt/pki/minion/minion.pem
[ERROR] Attempt to authenticate with the salt master failed
Workaround:
1,minion cannot authenticate master, view Minion and master configuration issues, no problem.
Note:
2,minion, the master can be ping through. itself on a machine.
3, test from another minion. No feedback to 60 seconds.
4, according to this hint
[WARNING] Unable to bind socket, error: [Errno] cannot assign requested address
The ports is not available to bind
Adjust the number of ports. Or not, indicating that there is a problem with the error, not port issues.
# echo 16777216 >/proc/sys/net/core/rmem_max
# echo 16777216 >/proc/sys/net/core/wmem_max
# echo "4096 87380 16777216" >/proc/sys/net/ipv4/tcp_rmem
# echo "4096 87380 16777216" >/proc/sys/net/ipv4/tcp_wmem
5 Based on this hint
[WARNING] Unable to bind socket, error: [Errno] cannot assign requested address
The ports is not available to bind
Delete the related run content.
KILLALL-SIGUSR2 Salt-master
Still does not make, indicates the error has the problem, is not carries on the service question.
6 But many times the problem of IP address is indicated. Finally enter Python using the following command
#!/usr/bin/python env
Import socket
MyName = Socket.getfqdn (Socket.gethostname ())
MYADDR = Socket.gethostbyname (myname)
Print "myname=%s"% myname
Print "myaddr=%s"% myaddr
The address of the inverse value, not the address of my machine. It's 10.10.10.10.
While master and Minion are configured with 192.168.10.10
Ifconfig View Machine address is 10.10.10.10 oh ~~~~~~~~~~
Why is it? Because I applied NAT on the Vm,couldstack network on Cloudstack.
Write about the problem decomposition of the Couldstack network in a moment.
Saltstack Master cannot receive Minion