使用kk将 kubesphere 从3.0升级到3.1时, devops中jenkins版本没有进行升级, 查看升级信息是发现报错,
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
Start installing monitoring
Start installing multicluster
Start installing openpitrix
Start installing network
Start installing devops
Start installing events
Start installing logging
Start installing servicemesh
**************************************************
Waiting for all tasks to be completed ...
task network status is successful (1/8)
task multicluster status is successful (2/8)
task openpitrix status is successful (3/8)
task logging status is successful (4/8)
task events status is successful (5/8)
task devops status is failed (6/8)
task monitoring status is successful (7/8)
task servicemesh status is successful (8/8)
**************************************************
Collecting installation results ...
Task 'devops' failed:
******************************************************************************************************************************************************
{
"counter": 65,
"created": "2021-05-07T06:55:22.527744",
"end_line": 65,
"event": "runner_on_failed",
"event_data": {
"duration": 0.256825,
"end": "2021-05-07T06:55:22.527436",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "9af9749b-a15f-b27c-9e0b-000000000005",
"playbook": "/kubesphere/playbooks/devops.yaml",
"playbook_uuid": "371ea9ce-9b33-415d-a63a-56c446644f3c",
"remote_addr": "127.0.0.1",
"res": {
"_ansible_no_log": false,
"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'value'\n\nThe error appears to be in '/kubesphere/installer/roles/ks-devops/jenkins/tasks/get_old_config.yaml': line 9, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: ks-devops | Setting Jenkins configs (EMAIL_SMTP_HOST)\n ^ here\n"
},
"role": "ks-devops/jenkins",
"start": "2021-05-07T06:55:22.270611",
"task": "ks-devops | Setting Jenkins configs (EMAIL_SMTP_HOST)",
"task_action": "set_fact",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-devops/jenkins/tasks/get_old_config.yaml:9",
"task_uuid": "9af9749b-a15f-b27c-9e0b-000000000028",
"uuid": "e753062e-010a-4327-bb75-021565619ab6"
},
"parent_uuid": "9af9749b-a15f-b27c-9e0b-000000000028",
"pid": 6388,
"runner_ident": "devops",
"start_line": 64,
"stdout": "fatal: [localhost]: FAILED! => {\"msg\": \"The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'value'\\n\\nThe error appears to be in '/kubesphere/installer/roles/ks-devops/jenkins/tasks/get_old_config.yaml': line 9, column 3, but may\\nbe elsewhere in the file depending on the exact syntax problem.\\n\\nThe offending line appears to be:\\n\\n\\n- name: ks-devops | Setting Jenkins configs (EMAIL_SMTP_HOST)\\n ^ here\\n\"}",
"uuid": "e753062e-010a-4327-bb75-021565619ab6"
}
******************************************************************************************************************************************************