Details
-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
4.12.z
-
?
-
Low
-
Rejected
-
Unspecified
-
If docs needed, set a value
Description
+++ This bug was initially created as a clone of Bug #1890456 +++
Description of problem:
mapi_instance_create_failed doesn't work on openstack
Version-Release number of selected component (if applicable):
4.6.0-rc.4
How reproducible:
Always
Steps to Reproduce:
1.Create a failed machine by setting template to an invalid one
2.Check prometheus metrics
3.
Actual results:
Prometheus web console show "No datapoints found".
$ token=`oc sa get-token prometheus-k8s -n openshift-monitoring`
$ oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 – curl -k -H "Authorization: Bearer $token" 'https://prometheus-k8s.openshift-monitoring.svc:9091/api/v1/label/_name/values' | jq | grep "mapi_instance"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 64475 0 64475 0 0 530k 0 -::- -::- -::- 533k
$ oc get machine
NAME PHASE TYPE REGION ZONE AGE
zhsunvs22-tr2bv-master-0 Running 15h
zhsunvs22-tr2bv-master-1 Running 15h
zhsunvs22-tr2bv-master-2 Running 15h
zhsunvs22-tr2bv-worker-5d6xw Running 15h
zhsunvs22-tr2bv-worker-xrw84 Running 15h
zhsunvs22-tr2bv-worker1-sjkss Failed 13h
Expected results:
Should show mapi_instance_create_failed detail info.