http://10.233.10.175:9000/api/permissions/add_user 报错401。但是升级成功了,这块不知道有没有影响呢
Task 'devops' failed:
******************************************************************************************************************************************************
{
"counter": 188,
"created": "2020-04-22T05:35:11.686784",
"end_line": 184,
"event": "runner_on_failed",
"event_data": {
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "0a580ae9-43a9-b6bc-f9d2-000000000005",
"playbook": "/kubesphere/playbooks/devops.yaml",
"playbook_uuid": "851f7d95-a764-497a-bbd8-7905e1fc621d",
"remote_addr": "127.0.0.1",
"res": {
"_ansible_no_log": false,
"changed": false,
"connection": "close",
"content": "",
"content_length": "0",
"date": "Wed, 22 Apr 2020 05:35:11 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.233.10.175: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.233.10.175: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": "0a580ae9-43a9-b6bc-f9d2-000000000066",
"uuid": "f6dd04d1-4e0b-4648-a0b0-b118907d786e"
},
"parent_uuid": "0a580ae9-43a9-b6bc-f9d2-000000000066",
"pid": 16075,
"runner_ident": "devops",
"start_line": 183,
"stdout": "fatal: [localhost]: FAILED! => {\"changed\": false, \"connection\": \"close\", \"content\": \"\", \"content_length\": \"0\", \"date\": \"Wed, 22 Apr 2020 05:35:11 GMT\", \"elapsed\": 0, \"msg\": \"Status code was 401 and not [204]: HTTP Error 401: \", \"redirected\": false, \"status\": 401, \"url\": \"http://10.233.10.175:9000/api/permissions/add_user\", \"x_content_type_options\": \"nosniff\", \"x_frame_options\": \"SAMEORIGIN\", \"x_xss_protection\": \"1; mode=block\"}",
"uuid": "f6dd04d1-4e0b-4648-a0b0-b118907d786e"
}