Created
December 29, 2017 09:46
-
-
Save girishbin/a0933d13a797dc90caabfe912331c6d2 to your computer and use it in GitHub Desktop.
Salt api not working
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my salt-api conf file | |
- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - - | |
rest_cherrypy: | |
port: 8000 | |
host: 0.0.0.0 | |
debug: True | |
disable_ssl: true | |
externalauth: | |
pam: | |
salt: | |
- .* | |
- '@wheel' # to allow access to all wheel modules | |
- '@runner' # to allow access to all runner modules | |
- '@jobs' # to allow access to the jobs runner and/or wheel module | |
- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - - | |
I have created a user called salt and set the password. | |
Here are the logs for pam | |
salt -a pam '*' test.ping -l trace | |
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Including configuration from '/etc/salt/master.d/master.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/master.conf | |
[DEBUG ] Including configuration from '/etc/salt/master.d/reactor.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/reactor.conf | |
[DEBUG ] Including configuration from '/etc/salt/master.d/salt-api.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/salt-api.conf | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt-master | |
[DEBUG ] Missing configuration file: /root/.saltrc | |
[TRACE ] The required configuration section, 'fluent_handler', was not found the in the configuration. Not loading the fluent logging handlers module. | |
[TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found in the configuration. Not loading the Logstash logging handlers module. | |
[DEBUG ] Configuration file path: /etc/salt/master | |
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged. | |
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Including configuration from '/etc/salt/master.d/master.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/master.conf | |
[DEBUG ] Including configuration from '/etc/salt/master.d/reactor.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/reactor.conf | |
[DEBUG ] Including configuration from '/etc/salt/master.d/salt-api.conf' | |
[DEBUG ] Reading configuration from /etc/salt/master.d/salt-api.conf | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt-master | |
[DEBUG ] Missing configuration file: /root/.saltrc | |
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc | |
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc | |
[DEBUG ] LazyLoaded pam.auth | |
username: salt | |
password: | |
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/master', 'salt-master_master', 'tcp://127.0.0.1:4506', 'clear') | |
[TRACE ] Inserted key into loop_instance_map id 140408101590080 for key ('/etc/salt/pki/master', 'salt-master_master', 'tcp://127.0.0.1:4506', 'clear') and process 28430 | |
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pub.ipc | |
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc | |
[DEBUG ] LazyLoaded nested.output | |
[TRACE ] data = Failed to authenticate! This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage). | |
Failed to authenticate! This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage). | |
- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - - | |
Versions: | |
salt-master:/etc/salt/master.d# salt-api --version | |
salt-api 2017.7.1 (Nitrogen) | |
- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - - | |
salt-master:/etc/salt/master.d# salt --versions-report | |
Salt Version: | |
Salt: 2017.7.1 | |
Dependency Versions: | |
cffi: Not Installed | |
cherrypy: 3.5.0 | |
dateutil: 2.4.2 | |
docker-py: Not Installed | |
gitdb: 0.6.4 | |
gitpython: 1.0.1 | |
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 | |
pycryptodome: Not Installed | |
pygit2: Not Installed | |
Python: 2.7.12 (default, Nov 20 2017, 18:23:56) | |
python-gnupg: Not Installed | |
PyYAML: 3.11 | |
PyZMQ: 15.2.0 | |
RAET: Not Installed | |
smmap: 0.9.0 | |
timelib: Not Installed | |
Tornado: 4.2.1 | |
ZMQ: 4.1.4 | |
System Versions: | |
dist: Ubuntu 16.04 xenial | |
locale: UTF-8 | |
machine: x86_64 | |
release: 4.4.0-1038-aws | |
system: Linux | |
version: Ubuntu 16.04 xenial | |
- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - - | |
Salt-master debug logs | |
2017-12-28 18:56:50,026 [salt.auth ][WARNING ][17583] Authentication failure of type "eauth" occurred. | |
2017-12-28 18:56:50,027 [salt.master ][WARNING ][17583] Authentication failure of type "eauth" occurred. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment