cloud-bulldozer / cloud-bulldozer/ocm-api-load

create_cluster is not working with cli

Open
#104 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1
Forks
8
PR merge metrics
No merged PRs in 30d

Description

create_cluster is not working with cli and throwing below errors

2022/12/08 19:00:53 Info - Creating '/tmp/868a7473-api-load-20221208/ocm-api-load/results' directory
2022/12/08 19:00:53 Info - Using output directory: /tmp/868a7473-api-load-20221208/ocm-api-load/results
2022/12/08 19:00:53 Debug - Added URL with prefix '', regular expression '^(/.*)?$' and URL 'https://api.integration.openshift.com'
2022/12/08 19:00:53 Debug - Token URL wasn't provided, will use the default 'https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token'
2022/12/08 19:00:53 Debug - Client identifier wasn't provided, will use the default 'cloud-services'
2022/12/08 19:00:53 Debug - Client secret wasn't provided, will use the default
2022/12/08 19:00:53 Info - UUID: 868a7473-api-load-20221208
2022/12/08 19:00:53 Info - no value for create-cluster.rate. Using default value.
2022/12/08 19:00:53 Info - no value for create-cluster.duration. Using default value.
2022/12/08 19:00:53 Info - no value for create-cluster.ramp-type. Using default value.
2022/12/08 19:00:53 Info - Executing Test: create-cluster
2022/12/08 19:00:53 Info - Rate: Constant{1 hits/1m0s}
2022/12/08 19:00:53 Info - Duration: 1m0s
2022/12/08 19:00:53 Info - Endpoint: /api/clusters_mgmt/v1/clusters
panic: interface conversion: interface {} is map[interface {}]interface {}, not map[string]interface {}

goroutine 10 [running]:
github.com/cloud-bulldozer/ocm-api-load/pkg/tests/handlers.generateCreateClusterTargeter({0x11d36d8, 0xc000128000}, {0x7fffae7f0bc8, 0x1a}, {0x10729da, 0x4}, {0x108bd58, 0x1e}, {0x11d5a88, 0xc00004bdc0})
/tmp/868a7473-api-load-20221208/ocm-api-load/pkg/tests/handlers/clusters.go:49 +0x4a5
github.com/cloud-bulldozer/ocm-api-load/pkg/tests/handlers.TestCreateCluster({0x11d36d8, 0xc000128000}, 0xc0001f0140)
/tmp/868a7473-api-load-20221208/ocm-api-load/pkg/tests/handlers/clusters.go:20 +0x78
github.com/cloud-bulldozer/ocm-api-load/pkg/tests.(*Runner).Run.func1({0x11d36d8, 0xc000128000}, 0x0?, 0x0?, 0xc0000b4180, {{0x107d2c8, 0xe}, {0x108bd58, 0x1e}, {0x10729da, ...}, ...})
/tmp/868a7473-api-load-20221208/ocm-api-load/pkg/tests/run.go:111 +0xef7
created by github.com/cloud-bulldozer/ocm-api-load/pkg/tests.(*Runner).Run
/tmp/868a7473-api-load-20221208/ocm-api-load/pkg/tests/run.go:64 +0x4ca

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.