Repository navigation
Closed
Labels
Corerelates to code central or existential to SaltP2Priority 2TestsZRELEASED - Berylliumbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
I cannot get #20226 to work.
versions
centos-7-main salt sudo_tests # lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.0.1406 (Core)
Release: 7.0.1406
Codename: Corecentos-7-main salt sudo_tests # salt --versions
Salt: 2015.2.0rc1-842-gec8df42
Python: 2.7.5 (default, Jun 17 2014, 18:11:42)
Jinja2: 2.7.3
M2Crypto: 0.21.1
msgpack-python: 0.4.5
msgpack-pure: Not Installed
pycrypto: 2.6.1
libnacl: Not Installed
PyYAML: 3.11
ioflo: Not Installed
PyZMQ: 14.3.1
RAET: Not Installed
ZMQ: 3.2.4
Mako: Not Installedsetup
centos-7-main salt sudo_tests # adduser dude
centos-7-main salt sudo_tests # finger dude
Login: dude Name:
Directory: /home/dude Shell: /bin/bash
Never logged in.
No mail.
No Plan.
execution
centos-7-main salt sudo_tests # salt centos-7-main test.ping
centos-7-main:
True
centos-7-main salt sudo_tests # salt centos-7-main sudo.salt_call root test.ping
centos-7-main:
The minion function caused an exception: Traceback (most recent call last):
File "/root/salt/salt/minion.py", line 1112, in _thread_return
return_data = func(*args, **kwargs)
File "/root/salt/salt/modules/sudo.py", line 40, in salt_call
cmd_meta = json.loads(cmd_ret['stdout'])['local']
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decodedcentos-7-main salt sudo_tests # salt centos-7-main sudo.salt_call dude test.ping
centos-7-main:
The minion function caused an exception: Traceback (most recent call last):
File "/root/salt/salt/minion.py", line 1112, in _thread_return
return_data = func(*args, **kwargs)
File "/root/salt/salt/modules/sudo.py", line 40, in salt_call
cmd_meta = json.loads(cmd_ret['stdout'])['local']
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decodedMetadata
Metadata
Assignees
Labels
Corerelates to code central or existential to SaltP2Priority 2TestsZRELEASED - Berylliumbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
jfindlay commentedon Mar 10, 2015
update
The minion log indicates that sudo refuses to run without a tty. This (dubious) requirement is default on at least redhat systems.
jfindlay commentedon Mar 11, 2015
@thatch45, any ideas on this?
ssgward commentedon Mar 17, 2015
To be addressed in next release.