sodafoundation / api

SODA Terra Project API module : is an open source implementation of SODA API connecting storage to platforms like Kubernetes, OpenStack, and VMware
Apache License 2.0
828 stars 316 forks source link

CI is fails because of metric test cases #1092

Open Shruthi-1MN opened 5 years ago

Shruthi-1MN commented 5 years ago

Is this a BUG REPORT or FEATURE REQUEST?: Bug which is causing CI failure in hotpot

Uncomment only one, leave it on its own line:

/kind bug /kind feature

What happened: When new PR raised some jobs in CI fails by throwing following error

ok      github.com/opensds/opensds/contrib/drivers  0.037s  coverage: 18.9% of statements
E1128 06:28:38.393831   19493 metrics_cli.go:52] file ReadDefaultConfigFile can't readrados: Invalid argument
E1128 06:28:38.397011   19493 metrics_cli.go:461] unmarshal failed
--- FAIL: TestCollectMetrics (0.02s)
    ceph_metrics_test.go:208: expected metric spec
    ceph_metrics_test.go:210: &{InstanceID:b987-654-321 InstanceName:opensds-ceph-b987-654-321 Job:ceph Labels:map[cluster:ceph pool:rbd] Component:pool Name:used Unit:bytes AggrType: MetricValues:[0xc0000a1200]}
    ceph_metrics_test.go:212: &{Timestamp:123456 Value:859}

What you expected to happen: CI should pass successfully for all jobs

How to reproduce it (as minimally and precisely as possible): Raising PR in hotpot code against master/development branch After raising PR check CI jobs status

Anything else we need to know?:

Environment:

NajmudheenCT commented 5 years ago

@Shruthi-1MN , Please check and close

Shruthi-1MN commented 5 years ago

@NajmudheenCT , Please assign to someone who knows about metric test cases. I still don't know the RCA.