From 6186d13980c64b18928c15f2ff07f76cd946c072 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Wed, 20 Mar 2024 20:04:31 +0000 Subject: [PATCH] add addtional logging to dataplane-deploy-global-service-test this patch add collectors to the 00-assert.yaml file to collect the deployment cr and dataplane operator logs on assert failure. --- .../00-assert.yaml | 11 +++++++++++ .../01-assert.yaml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/tests/kuttl/tests/dataplane-deploy-global-service-test/00-assert.yaml b/tests/kuttl/tests/dataplane-deploy-global-service-test/00-assert.yaml index 20a41ace2..317d51b4d 100644 --- a/tests/kuttl/tests/dataplane-deploy-global-service-test/00-assert.yaml +++ b/tests/kuttl/tests/dataplane-deploy-global-service-test/00-assert.yaml @@ -1,3 +1,14 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestAssert +timeout: 600 +collectors: +- type: command + command: oc get OpenStackDataPlaneDeployment -n openstack edpm-compute-global -o yaml + name: edpm-compute-global-deployment +- type: command + command: oc logs -n openstack-operators -l openstack.org/operator-name=dataplane + name: dataplane-operator-logs +--- apiVersion: dataplane.openstack.org/v1beta1 kind: OpenStackDataPlaneNodeSet metadata: diff --git a/tests/kuttl/tests/dataplane-deploy-global-service-test/01-assert.yaml b/tests/kuttl/tests/dataplane-deploy-global-service-test/01-assert.yaml index 293e06f09..5054cc9e9 100644 --- a/tests/kuttl/tests/dataplane-deploy-global-service-test/01-assert.yaml +++ b/tests/kuttl/tests/dataplane-deploy-global-service-test/01-assert.yaml @@ -1,3 +1,14 @@ +apiVersion: kuttl.dev/v1beta1 +kind: TestAssert +timeout: 600 +collectors: +- type: command + command: oc get OpenStackDataPlaneDeployment -n openstack edpm-compute-global -o yaml + name: edpm-compute-global-deployment +- type: command + command: oc logs -n openstack-operators -l openstack.org/operator-name=dataplane + name: dataplane-operator-logs +--- apiVersion: dataplane.openstack.org/v1beta1 kind: OpenStackDataPlaneNodeSet metadata: