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

jumpserver4.0 用户推送问题 #640

Closed
johnny-wang86 opened this Issue Aug 23, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@johnny-wang86

johnny-wang86 commented Aug 23, 2017

   推送目标主机能成功创建用户,但配置的sudo信息未被推送成功。并且在作业中心的任务里面成功列显示为红X状态,系统用户我采用的是password方式认证。
  • 系统用户信息
    001

  • 作业中心任务
    002
    003

  • 推送过程中的日志信息
    2017-08-23 15:49:44 [utils DEBUG] Start runner Push user maintain [2017-08-23 15:49:44,505: DEBUG/ForkPoolWorker-3] Start runner Push user maintain 2017-08-23 15:49:44 [basehttp INFO] "GET /ops/task/f7967124-563b-45d8-a5d6-a056d9d2232b/run/ HTTP/1.1" 302 0 2017-08-23 15:49:45 [basehttp INFO] "GET /ops/task/f7967124-563b-45d8-a5d6-a056d9d2232b/ HTTP/1.1" 200 21085 2017-08-23 15:49:46 [runner DEBUG] {'contacted': {'192.168.10.76': [{'comment': '', 'shell': '/bin/bash', 'group': 507, 'name': 'maintain', 'changed': False, 'state': 'present', 'invocation': {'module_args': {'comment': None, 'ssh_key_bits': 0, 'update_password': 'always', 'non_unique': False, 'force': False, 'ssh_key_type': 'rsa', 'ssh_key_passphrase': None, 'createhome': True, 'uid': None, 'home': None, 'append': False, 'skeleton': None, 'ssh_key_comment': 'ansible-generated on johnny', 'group': None, 'system': False, 'state': 'present', 'shell': '/bin/bash', 'expires': None, 'ssh_key_file': None, 'groups': None, 'move_home': False, 'password': 'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', 'name': 'maintain', 'seuser': None, 'remove': False, 'login_class': None, 'generate_ssh_key': None}}, 'home': '/home/maintain', 'move_home': False, 'password': 'NOT_LOGGING_PASSWORD', 'append': False, 'uid': 507, '_ansible_parsed': True, '_ansible_no_log': False}]}, 'dark': {'192.168.10.76': [{'msg': 'invalid key specified: {}', 'failed': True, 'invocation': {'module_args': {'exclusive': False, 'validate_certs': True, 'key_options': None, 'state': 'present', 'user': 'maintain', 'key': '{}', 'path': None, 'unique': False, 'keyfile': '/home/maintain/.ssh/authorized_keys', 'manage_dir': True}}, '_ansible_parsed': True, '_ansible_no_log': False, 'changed': False}]}} [2017-08-23 15:49:46,582: DEBUG/ForkPoolWorker-3] {'contacted': {'192.168.10.76': [{'comment': '', 'shell': '/bin/bash', 'group': 507, 'name': 'maintain', 'changed': False, 'state': 'present', 'invocation': {'module_args': {'comment': None, 'ssh_key_bits': 0, 'update_password': 'always', 'non_unique': False, 'force': False, 'ssh_key_type': 'rsa', 'ssh_key_passphrase': None, 'createhome': True, 'uid': None, 'home': None, 'append': False, 'skeleton': None, 'ssh_key_comment': 'ansible-generated on johnny', 'group': None, 'system': False, 'state': 'present', 'shell': '/bin/bash', 'expires': None, 'ssh_key_file': None, 'groups': None, 'move_home': False, 'password': 'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', 'name': 'maintain', 'seuser': None, 'remove': False, 'login_class': None, 'generate_ssh_key': None}}, 'home': '/home/maintain', 'move_home': False, 'password': 'NOT_LOGGING_PASSWORD', 'append': False, 'uid': 507, '_ansible_parsed': True, '_ansible_no_log': False}]}, 'dark': {'192.168.10.76': [{'msg': 'invalid key specified: {}', 'failed': True, 'invocation': {'module_args': {'exclusive': False, 'validate_certs': True, 'key_options': None, 'state': 'present', 'user': 'maintain', 'key': '{}', 'path': None, 'unique': False, 'keyfile': '/home/maintain/.ssh/authorized_keys', 'manage_dir': True}}, '_ansible_parsed': True, '_ansible_no_log': False, 'changed': False}]}} [2017-08-23 15:49:46,607: INFO/ForkPoolWorker-3] Task ops.tasks.rerun_task[dec792ff-fedf-4555-8c19-22068e1dce4a] succeeded in 2.194367210380733s: ({'success': ['192.168.10.76'], 'failed': [(...)]}, {'contacted': {'192.168.10.76': [...]}, 'dark': {'192.168.10.76': [...]}}) 2017-08-23 15:49:46 [basehttp INFO] "POST /api/applications/v1/terminal/heatbeat/ HTTP/1.1" 201 28 2017-08-23 15:49:52 [basehttp INFO] "POST /api/applications/v1/terminal/heatbeat/ HTTP/1.1" 201 28

@guoshengye

This comment has been minimized.

Show comment
Hide comment
@guoshengye

guoshengye Sep 24, 2017

你是怎么解决的,我也碰到这个问题了

guoshengye commented Sep 24, 2017

你是怎么解决的,我也碰到这个问题了

@ibuler

This comment has been minimized.

Show comment
Hide comment
@ibuler

ibuler Sep 28, 2017

Member

这个很奇怪啊,既成功又失败的

Member

ibuler commented Sep 28, 2017

这个很奇怪啊,既成功又失败的

@ibuler ibuler added the bug label Sep 28, 2017

@ibuler

This comment has been minimized.

Show comment
Hide comment
@ibuler
Member

ibuler commented Sep 28, 2017

image

@kevinliusir

This comment has been minimized.

Show comment
Hide comment
@kevinliusir

kevinliusir Oct 14, 2017

这个问题解决了吗/

kevinliusir commented Oct 14, 2017

这个问题解决了吗/

@ibuler

This comment has been minimized.

Show comment
Hide comment
@ibuler

ibuler Jan 15, 2018

Member

0.5.0解决了

Member

ibuler commented Jan 15, 2018

0.5.0解决了

@ibuler ibuler closed this Jan 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment