`Task ‘monitoring’ failed:
{
“counter”: 105,
“created”: “2020-11-11T02:30:46.177699”,
“end_line”: 103,
“event”: “runner_on_failed”,
“event_data”: {
“duration”: 37.15608,
“end”: “2020-11-11T02:30:46.177491”,
“event_loop”: null,
“host”: “localhost”,
“ignore_errors”: null,
“play”: “localhost”,
“play_pattern”: “localhost”,
“play_uuid”: “dafc194d-9851-48bd-7dcf-000000000005”,
“playbook”: “/kubesphere/playbooks/monitoring.yaml”,
“playbook_uuid”: “3dc0ce46-b671-4cc7-a2af-c69b63c2f00c”,
“remote_addr”: “127.0.0.1”,
“res”: {
“changed”: true,
“msg”: “All items completed”,
“results”: [
{
“ansible_item_label”: “prometheus”,
“ansible_no_log”: false,
“ansible_loop_var”: “item”,
“attempts”: 5,
“changed”: true,
“cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus”,
“delta”: “0:00:00.256053”,
“end”: “2020-11-11 10:30:27.582535”,
“failed”: true,
“failed_when_result”: true,
“invocation”: {
“module_args”: {
“raw_params”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus”,
“uses_shell”: true,
“argv”: null,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“item”: “prometheus”,
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2020-11-11 10:30:27.326482”,
“stderr”: “error: error validating \”/kubesphere/kubesphere/prometheus/prometheus/prometheus-prometheus.yaml\": error validating data: ValidationError(Prometheus.spec.serviceMonitorSelector): unknown field \“app.kubernetes.io/vendor\” in com.coreos.monitoring.v1.Prometheus.spec.serviceMonitorSelector; if you choose to ignore these errors, turn validation off with –validate=false",
“stderr_lines”: [
“error: error validating \”/kubesphere/kubesphere/prometheus/prometheus/prometheus-prometheus.yaml\": error validating data: ValidationError(Prometheus.spec.serviceMonitorSelector): unknown field \“app.kubernetes.io/vendor\” in com.coreos.monitoring.v1.Prometheus.spec.serviceMonitorSelector; if you choose to ignore these errors, turn validation off with –validate=false"
],
“stdout”: “secret/additional-scrape-configs unchanged\nclusterrole.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged\nclusterrolebinding.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged\nservicemonitor.monitoring.coreos.com/prometheus-operator unchanged\nrolebinding.rbac.authorization.k8s.io/prometheus-k8s-config unchanged\nrole.rbac.authorization.k8s.io/prometheus-k8s-config unchanged\nservice/prometheus-k8s unchanged\nserviceaccount/prometheus-k8s unchanged\nservice/kube-controller-manager-svc unchanged\nservice/kube-scheduler-svc unchanged\nservicemonitor.monitoring.coreos.com/prometheus unchanged\nservicemonitor.monitoring.coreos.com/kube-apiserver unchanged\nservicemonitor.monitoring.coreos.com/coredns unchanged\nservicemonitor.monitoring.coreos.com/kube-controller-manager unchanged\nservicemonitor.monitoring.coreos.com/kube-scheduler unchanged\nservicemonitor.monitoring.coreos.com/kubelet unchanged”,
“stdout_lines”: [
“secret/additional-scrape-configs unchanged”,
“clusterrole.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged”,
“clusterrolebinding.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged”,
“servicemonitor.monitoring.coreos.com/prometheus-operator unchanged”,
“rolebinding.rbac.authorization.k8s.io/prometheus-k8s-config unchanged”,
“role.rbac.authorization.k8s.io/prometheus-k8s-config unchanged”,
“service/prometheus-k8s unchanged”,
“serviceaccount/prometheus-k8s unchanged”,
“service/kube-controller-manager-svc unchanged”,
“service/kube-scheduler-svc unchanged”,
“servicemonitor.monitoring.coreos.com/prometheus unchanged”,
“servicemonitor.monitoring.coreos.com/kube-apiserver unchanged”,
“servicemonitor.monitoring.coreos.com/coredns unchanged”,
“servicemonitor.monitoring.coreos.com/kube-controller-manager unchanged”,
“servicemonitor.monitoring.coreos.com/kube-scheduler unchanged”,
“servicemonitor.monitoring.coreos.com/kubelet unchanged”
]
},
{
“ansible_item_label”: “prometheus”,
“ansible_no_log”: false,
“ansible_loop_var”: “item”,
“attempts”: 5,
“changed”: true,
“cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus”,
“delta”: “0:00:00.244622”,
“end”: “2020-11-11 10:30:46.130431”,
“failed”: true,
“failed_when_result”: true,
“invocation”: {
“module_args”: {
“raw_params”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/prometheus/prometheus”,
“uses_shell”: true,
“argv”: null,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“item”: “prometheus”,
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2020-11-11 10:30:45.885809”,
“stderr”: “error: error validating \”/kubesphere/kubesphere/prometheus/prometheus/prometheus-prometheus.yaml\": error validating data: ValidationError(Prometheus.spec.serviceMonitorSelector): unknown field \“app.kubernetes.io/vendor\” in com.coreos.monitoring.v1.Prometheus.spec.serviceMonitorSelector; if you choose to ignore these errors, turn validation off with –validate=false",
“stderr_lines”: [
“error: error validating \”/kubesphere/kubesphere/prometheus/prometheus/prometheus-prometheus.yaml\": error validating data: ValidationError(Prometheus.spec.serviceMonitorSelector): unknown field \“app.kubernetes.io/vendor\” in com.coreos.monitoring.v1.Prometheus.spec.serviceMonitorSelector; if you choose to ignore these errors, turn validation off with –validate=false"
],
“stdout”: “secret/additional-scrape-configs unchanged\nclusterrole.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged\nclusterrolebinding.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged\nservicemonitor.monitoring.coreos.com/prometheus-operator unchanged\nrolebinding.rbac.authorization.k8s.io/prometheus-k8s-config unchanged\nrole.rbac.authorization.k8s.io/prometheus-k8s-config unchanged\nservice/prometheus-k8s unchanged\nserviceaccount/prometheus-k8s unchanged\nservice/kube-controller-manager-svc unchanged\nservice/kube-scheduler-svc unchanged\nservicemonitor.monitoring.coreos.com/prometheus unchanged\nservicemonitor.monitoring.coreos.com/kube-apiserver unchanged\nservicemonitor.monitoring.coreos.com/coredns unchanged\nservicemonitor.monitoring.coreos.com/kube-controller-manager unchanged\nservicemonitor.monitoring.coreos.com/kube-scheduler unchanged\nservicemonitor.monitoring.coreos.com/kubelet unchanged”,
“stdout_lines”: [
“secret/additional-scrape-configs unchanged”,
“clusterrole.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged”,
“clusterrolebinding.rbac.authorization.k8s.io/kubesphere-prometheus-k8s unchanged”,
“servicemonitor.monitoring.coreos.com/prometheus-operator unchanged”,
“rolebinding.rbac.authorization.k8s.io/prometheus-k8s-config unchanged”,
“role.rbac.authorization.k8s.io/prometheus-k8s-config unchanged”,
“service/prometheus-k8s unchanged”,
“serviceaccount/prometheus-k8s unchanged”,
“service/kube-controller-manager-svc unchanged”,
“service/kube-scheduler-svc unchanged”,
“servicemonitor.monitoring.coreos.com/prometheus unchanged”,
“servicemonitor.monitoring.coreos.com/kube-apiserver unchanged”,
“servicemonitor.monitoring.coreos.com/coredns unchanged”,
“servicemonitor.monitoring.coreos.com/kube-controller-manager unchanged”,
“servicemonitor.monitoring.coreos.com/kube-scheduler unchanged”,
“servicemonitor.monitoring.coreos.com/kubelet unchanged”
]
}
]
},
“role”: “ks-monitor”,
“start”: “2020-11-11T02:30:09.021411”,
“task”: “ks-monitor | Installing prometheus”,
“task_action”: “shell”,
“task_args”: "",
“task_path”: “/kubesphere/installer/roles/ks-monitor/tasks/prometheus.yaml:2”,
“task_uuid”: “dafc194d-9851-48bd-7dcf-000000000042”,
“uuid”: “080f804b-9862-412e-8659-daa45280c037”
},
“parent_uuid”: “dafc194d-9851-48bd-7dcf-000000000042”,
“pid”: 4570,
“runner_ident”: “monitoring”,
“start_line”: 103,
“stdout”: "",
“uuid”: “080f804b-9862-412e-8659-daa45280c037”
}
`