cloud-bulldozer / ocm-api-load

A set of load tests for OCM's clusters-service, based on vegeta.
Apache License 2.0
1 stars 8 forks source link

create_service test failing to delete the service #101

Open venkataanil opened 1 year ago

venkataanil commented 1 year ago

2022/12/07 11:38:50 Info - no value for create-services.ramp-type. Using default value. 2022/12/07 11:38:50 Info - Executing Test: create-services 2022/12/07 11:38:50 Info - Rate: Constant{1 hits/1m0s} 2022/12/07 11:38:50 Info - Duration: 1m0s 2022/12/07 11:38:50 Info - Endpoint: /api/service_mgmt/v1/services 2022/12/07 11:39:50 Debug - Bearer token expires in 13m13.651226681s 2022/12/07 11:39:50 Debug - Got tokens on first attempt 2022/12/07 11:39:50 Debug - Request method is POST 2022/12/07 11:39:50 Debug - Request URL is 'https://api.integration.openshift.com/api/service_mgmt/v1/services' 2022/12/07 11:39:50 Debug - Request header 'Accept' is 'application/json' 2022/12/07 11:39:50 Debug - Request header 'Authorization' is omitted 2022/12/07 11:39:50 Debug - Request header 'Content-Type' is 'application/json' 2022/12/07 11:39:50 Debug - Request header 'User-Agent' is 'OCM-SDK/0.1.287' 2022/12/07 11:39:50 Debug - Request header 'X-Vegeta-Attack' is 'create-services' 2022/12/07 11:39:50 Debug - Request header 'X-Vegeta-Seq' is '0' 2022/12/07 11:39:50 Debug - Request body follows 2022/12/07 11:39:50 Debug - { "kind": "ManagedService", "cluster": { "aws": { "access_key_id": "", "account_id": "", "secret_access_key": "", "tags": { "User": "pocm-perf" } }, "name": "pocm-96b2-0", "nodes": { "availability_zones": [ "us-west-2a" ] }, "properties": { "fake_cluster": "true", "rosa_creator_arn": "arn:aws:iam::415909267177:user/osdCcsAdmin" }, "region": { "id": "us-west-2" } }, "parameters": [ { "id": "has-external-resources", "value": "false" } ], "service": "ocm-addon-test-operator" } 2022/12/07 11:39:54 Info - Marking service '2IaIJPYGGeR9vwEepjjNnZbqOvB' for deleting 2022/12/07 11:39:54 Debug - Response protocol is 'HTTP/2.0' 2022/12/07 11:39:54 Debug - Response status is '201 Created' 2022/12/07 11:39:54 Debug - Response header 'Content-Type' is 'application/json' 2022/12/07 11:39:54 Debug - Response header 'Date' is 'Wed, 07 Dec 2022 11:39:54 GMT' 2022/12/07 11:39:54 Debug - Response header 'Server' is 'envoy' 2022/12/07 11:39:54 Debug - Response header 'Vary' is 'Authorization' 2022/12/07 11:39:54 Debug - Response header 'X-Envoy-Upstream-Service-Time' is '4134' 2022/12/07 11:39:54 Debug - Response header 'X-Operation-Id' is '2IaIIqZRakqKN0Ru8FRFh0MvnYm' 2022/12/07 11:39:54 Debug - Response body follows 2022/12/07 11:39:54 Debug - { "addon": { "href": "/api/clusters_mgmt/v1/clusters/20f2r1kr5oloalvr0am33o1ip70uv2k4/addons", "kind": "Addon", "state": "pending" }, "cluster": { "href": "/api/clusters_mgmt/v1/clusters/20f2r1kr5oloalvr0am33o1ip70uv2k4", "id": "20f2r1kr5oloalvr0am33o1ip70uv2k4", "name": "pocm-96b2-0", "state": "validating" }, "created_at": "2022-12-07T11:39:54Z", "expired_at": "2022-12-08T23:39:50.552079184Z", "href": "/api/service_mgmt/v1/services/2IaIJPYGGeR9vwEepjjNnZbqOvB", "id": "2IaIJPYGGeR9vwEepjjNnZbqOvB", "kind": "ManagedService", "parameters": [ { "id": "has-external-resources", "value": "false" } ], "service": "ocm-addon-test-operator", "service_details": "service installing, waiting for cluster to provision", "service_state": "waiting for cluster", "updated_at": "2022-12-07T11:39:54Z" } 2022/12/07 11:39:54 Info - About to delete the following services: 2022/12/07 11:39:54 Info - Service ID: 2IaIJPYGGeR9vwEepjjNnZbqOvB 2022/12/07 11:39:54 Info - Deleting service '2IaIJPYGGeR9vwEepjjNnZbqOvB' 2022/12/07 11:39:54 Debug - Bearer token expires in 13m9.500586478s 2022/12/07 11:39:54 Debug - Got tokens on first attempt 2022/12/07 11:39:54 Debug - Request method is DELETE 2022/12/07 11:39:54 Debug - Request URL is 'https://api.integration.openshift.com/api/service_mgmt/v1/services/2IaIJPYGGeR9vwEepjjNnZbqOvB' 2022/12/07 11:39:54 Debug - Request header 'Accept' is 'application/json' 2022/12/07 11:39:54 Debug - Request header 'Authorization' is omitted 2022/12/07 11:39:54 Debug - Request header 'User-Agent' is 'OCM-SDK/0.1.287' 2022/12/07 11:39:54 Debug - Response protocol is 'HTTP/2.0' 2022/12/07 11:39:54 Debug - Response status is '200 OK' 2022/12/07 11:39:54 Debug - Response header 'Content-Type' is 'application/json' 2022/12/07 11:39:54 Debug - Response header 'Date' is 'Wed, 07 Dec 2022 11:39:54 GMT' 2022/12/07 11:39:54 Debug - Response header 'Server' is 'envoy' 2022/12/07 11:39:54 Debug - Response header 'Vary' is 'Authorization' 2022/12/07 11:39:54 Debug - Response header 'X-Envoy-Upstream-Service-Time' is '82' 2022/12/07 11:39:54 Debug - Response header 'X-Operation-Id' is '2IaIJLei7S8XzZLuLu5g2QpPcDN' 2022/12/07 11:39:54 Debug - Response body follows 2022/12/07 11:39:54 Debug - { "addon": { "href": "/api/clusters_mgmt/v1/clusters/20f2r1kr5oloalvr0am33o1ip70uv2k4/addons", "kind": "Addon", "state": "pending" }, "cluster": { "href": "/api/clusters_mgmt/v1/clusters/20f2r1kr5oloalvr0am33o1ip70uv2k4", "id": "20f2r1kr5oloalvr0am33o1ip70uv2k4", "name": "pocm-96b2-0", "state": "validating" }, "created_at": "2022-12-07T11:39:54Z", "expired_at": "2022-12-08T23:39:50.552079Z", "href": "/api/service_mgmt/v1/services/2IaIJPYGGeR9vwEepjjNnZbqOvB", "id": "2IaIJPYGGeR9vwEepjjNnZbqOvB", "kind": "ManagedService", "parameters": [ { "id": "has-external-resources", "value": "false" } ], "service": "ocm-addon-test-operator", "service_details": "service is deleting, uninstalling cluster and cluster resources", "service_state": "deleting service", "updated_at": "2022-12-07T11:39:54Z" } 2022/12/07 11:39:54 Error - Failed to delete service '2IaIJPYGGeR9vwEepjjNnZbqOvB', got http status 200 2022/12/07 11:39:54 Warning - The following services failed to be deleted: [2IaIJPYGGeR9vwEepjjNnZbqOvB] 2022/12/07 11:39:54 Info - Results written to: 96b2-api-load-20221129_create-services_0.json 2022/12/07 11:39:54 Info - Building ES configuration 2022/12/07 11:39:54 Debug - Using server: https://elastic:tHF50470bOpY96sf20hV8BUT@perf-results-elastic.apps.observability.perfscale.devcluster.openshift.com:443 2022/12/07 11:39:54 Debug - Bearer token expires in 13m9.385709544s 2022/12/07 11:39:54 Debug - Got tokens on first attempt 2022/12/07 11:39:54 Debug - Request method is GET 2022/12/07 11:39:54 Debug - Request URL is 'https://api.integration.openshift.com/api/clusters_mgmt/v1' 2022/12/07 11:39:54 Debug - Request header 'Accept' is 'application/json' 2022/12/07 11:39:54 Debug - Request header 'Authorization' is omitted 2022/12/07 11:39:54 Debug - Request header 'User-Agent' is 'OCM-SDK/0.1.287' 2022/12/07 11:39:54 Debug - Response protocol is 'HTTP/2.0' 2022/12/07 11:39:54 Debug - Response status is '200 OK' 2022/12/07 11:39:54 Debug - Response header 'Content-Type' is 'application/json' 2022/12/07 11:39:54 Debug - Response header 'Date' is 'Wed, 07 Dec 2022 11:39:54 GMT' 2022/12/07 11:39:54 Debug - Response header 'Server' is 'envoy' 2022/12/07 11:39:54 Debug - Response header 'Vary' is 'Accept-Encoding' 2022/12/07 11:39:54 Debug - Response header 'X-Envoy-Upstream-Service-Time' is '3' 2022/12/07 11:39:54 Debug - Response header 'X-Operation-Id' is 'e3e3a423-700c-4034-8b90-7186009b7f7d' 2022/12/07 11:39:54 Debug - Response body follows 2022/12/07 11:39:54 Debug - { "kind": "VersionMetadata", "href": "/api/clusters_mgmt/v1", "server_version": "f858653", "openapi": { "kind": "OpenAPILink", "href": "/api/clusters_mgmt/v1/openapi" }, "addons": { "kind": "AddOnListLink", "href": "/api/clusters_mgmt/v1/addons" }, "cloud_providers": { "kind": "CloudProviderListLink", "href": "/api/clusters_mgmt/v1/cloud_providers" }, "clusters": { "kind": "ClusterListLink", "href": "/api/clusters_mgmt/v1/clusters" }, "flavours": { "kind": "FlavourListLink", "href": "/api/clusters_mgmt/v1/flavours" }, "machine_types": { "kind": "MachineTypesListLink", "href": "/api/clusters_mgmt/v1/machine_types" }, "versions": { "kind": "VersionListLink", "href": "/api/clusters_mgmt/v1/versions" } } 2022/12/07 11:39:54 Info - server version f858653 2022/12/07 11:39:54 Info - BulkIndexer Stats: NumAdded: 1 NumCreate: 0 NumFailed: 0