(bug)assert:Experiment failure not showing REASON of failure in assert PathCheck
amitbhatt818 opened this issue · comments
What Happened?
- Whenever assertion of pathcheck is failing at that time reason is not coming up.
- Empty reason at the time of getting created resource.
Steps Performed
- Used dope image
mayadataio/dope:v1.9.0
amit-bhatt@Amit-Bhatt:~/docs/metac-test$ kubectl get recipe.dope.mayadata.io/svc-1 -n d-testing
NAME AGE TIMETAKEN STATUS REASON
svc-1 2m58s 1m0.277s Failed
Experminet yaml
apiVersion: dope.mayadata.io/v1
kind: Recipe
metadata:
name: svc-1
namespace: d-testing
labels:
d-testing.dope.mayadata.io/inference: "true"
spec:
tasks:
# Check presence of alertstore service
- name: assert-svc-running
assert:
state:
kind: Service
apiVersion: v1
metadata:
name: cassandra
namespace: kubera
pathCheck:
path: spec.clusterIP
pathCheckOperator: Equals
value: None
Describe recipe.dope.mayadata.io/svc-1
amit-bhatt@Amit-Bhatt:~/docs/metac-test$ kubectl describe recipe.dope.mayadata.io/svc-1 -n d-testing
Name: svc-1
Namespace: d-testing
Labels: d-testing.dope.mayadata.io/inference=true
recipe.dope.mayadata.io/phase=Failed
Annotations: <none>
API Version: dope.mayadata.io/v1
Kind: Recipe
Metadata:
Creation Timestamp: 2020-09-12T11:37:09Z
Finalizers:
protect.gctl.metac.openebs.io/dope-finalize-recipe
Generation: 1
Resource Version: 4345237
Self Link: /apis/dope.mayadata.io/v1/namespaces/d-testing/recipes/svc-1
UID: e024c019-b742-4dc5-8e29-3cb311f307a8
Spec:
Tasks:
Assert:
Path Check:
Path: spec.clusterIP
Path Check Operator: Equals
Value: None
State:
API Version: v1
Kind: Service
Metadata:
Name: cassandra
Namespace: kubera
Name: assert-svc-running
Status:
Execution Time:
Readable Value: 1m0.277s
Value In Seconds: 60.276942259
Phase: Failed
Task Count:
Failed: 1
Skipped: 0
Total: 1
Warning: 0
Tasks:
Assert - Svc - Running:
Message: PathCheckValueEquals: Resource kubera cassandra: GVK /v1, Kind=Service: TaskName assert-svc-running
Phase: Failed
Step: 1
Timeout: Retryable condition timed out after 1m0s: PathCheckValueEquals: Resource kubera cassandra: GVK /v1, Kind=Service: TaskName assert-svc-running: .spec.clusterIP accessor error: None is of the type string, expected float64
Events: <none>