runzexia 升级sonar失败了,添加admin用户的时候出错了,但我不能删了admin这个用户,admin绑定了很多token
Task ‘devops’ failed:
{
“counter”: 155,
“created”: “2019-12-10T07:17:46.010673″,
“end_line”: 152,
“event”: “runner_on_failed”,
“event_data”: {
“event_loop”: null,
“host”: “localhost”,
“ignore_errors”: null,
“play”: “localhost”,
“play_pattern”: “localhost”,
“play_uuid”: “42f36af0-128d-ab3b-ca12-000000000005”,
“playbook”: “/kubesphere/playbooks/devops.yaml”,
“playbook_uuid”: “ecd99478-4c92-4dd4-888c-0bd3e0f2176a”,
“remote_addr”: “127.0.0.1″,
“res”: {
“_ansible_no_log”: false,
“changed”: false,
“content”: "",
“content_length”: “0”,
“date”: “Tue, 10 Dec 2019 07:17:46 GMT”,
“elapsed”: 0,
“invocation”: {
“module_args”: {
“attributes”: null,
“backup”: null,
“body”: {
“login”: “sonarqube”,
“permission”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”
},
“body_format”: “form-urlencoded”,
“client_cert”: null,
“client_key”: null,
“content”: null,
“creates”: null,
“delimiter”: null,
“dest”: null,
“directory_mode”: null,
“follow”: false,
“follow_redirects”: “safe”,
“force”: false,
“force_basic_auth”: true,
“group”: null,
“headers”: {
“Content-Type”: “application/x-www-form-urlencoded”
},
“http_agent”: “ansible-httpget”,
“method”: “POST”,
“mode”: null,
“owner”: null,
“password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“regexp”: null,
“remote_src”: null,
“removes”: null,
“return_content”: false,
“selevel”: null,
“serole”: null,
“setype”: null,
“seuser”: null,
“src”: null,
“status_code”: [
“204”
],
“timeout”: 30,
“unix_socket”: null,
“unsafe_writes”: null,
“url”: “http://10.1.239.61:9000/api/permissions/add_user”,
“url_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“url_username”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“use_proxy”: true,
“user”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”,
“validate_certs”: true
}
},
“msg”: “Status code was 401 and not [204]: HTTP Error 401: ”,
“redirected”: false,
“status”: 401,
“url”: “http://10.1.239.61:9000/api/permissions/add_user”,
“x_content_type_options”: “nosniff”,
“x_frame_options”: “SAMEORIGIN”,
“x_xss_protection”: “1; mode=block”
},
“role”: “ks-devops/jenkins”,
“task”: “ks-devops | Setting user permission(admin)”,
“task_action”: “uri”,
“task_args”: "",
“task_path”: “/kubesphere/installer/roles/ks-devops/jenkins/tasks/sonar_token.yaml:68″,
“task_uuid”: “42f36af0-128d-ab3b-ca12-000000000053”,
“uuid”: “3f824977-1a72-4029-a3fb-87ddbe83fa41″
},
“parent_uuid”: “42f36af0-128d-ab3b-ca12-000000000053”,
“pid”: 5420,
“runner_ident”: “devops”,
“start_line”: 151,
“stdout”: "fatal: [localhost]: FAILED! => {\“changed\”: false, \“connection\”: \“close\”, \“content\”: \“\”, \“content_length\”: \“0\”, \“date\”: \“Tue, 10 Dec 2019 07:17:46 GMT\”, \“elapsed\”: 0, \“msg\”: \“Status code was 401 and not [204]: HTTP Error 401: \”, \“redirected\”: false, \“status\”: 401, \“url\”: \“http://10.1.239.61:9000/api/permissions/add_user\”, \“x_content_type_options\”: \“nosniff\”, \“x_frame_options\”: \“SAMEORIGIN\”, \“x_xss_protection\”: \“1; mode=block\”}",
“uuid”: “3f824977-1a72-4029-a3fb-87ddbe83fa41″
}