Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bug)assert:Experiment failure not showing REASON of failure in assert PathCheck #143

Closed
amitbhatt818 opened this issue Sep 12, 2020 · 0 comments
Labels
assert bug Something isn't working

Comments

@amitbhatt818
Copy link
Contributor

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.

bug

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>
@amitbhatt818 amitbhatt818 added assert bug Something isn't working labels Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant