Skip to content

Commit a2cf2ee

Browse files
committed
Add a configure-cloudkitty hook
1 parent 105f4ae commit a2cf2ee

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

ci/configure-autoscaling.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
name: unused
2222
spec:
2323
heat:
24-
enabled: false
24+
enabled: true
2525
telemetry:
2626
enabled: true
2727
template:
@@ -30,23 +30,21 @@
3030
monitoringStack:
3131
alertingEnabled: false
3232
autoscaling:
33-
enabled: false
33+
enabled: true
3434
ceilometer:
3535
enabled: true
3636
mysqldExporterEnabled: true
37-
cloudkitty:
38-
enabled: true
3937
target:
4038
kind: OpenStackControlPlane
41-
# - patch: |-
42-
# apiVersion: core.openstack.org/v1beta1
43-
# kind: OpenStackControlPlane
44-
# metadata:
45-
# name: unused
46-
# spec:
47-
# telemetry:
48-
# template:
49-
# metricStorage:
50-
# dashboardsEnabled: true
51-
# target:
52-
# kind: OpenStackControlPlane
39+
- patch: |-
40+
apiVersion: core.openstack.org/v1beta1
41+
kind: OpenStackControlPlane
42+
metadata:
43+
name: unused
44+
spec:
45+
telemetry:
46+
template:
47+
metricStorage:
48+
dashboardsEnabled: true
49+
target:
50+
kind: OpenStackControlPlane

ci/vars-cloudkitty-tempest.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ cifmw_openshift_obs_definition:
1515
sourceNamespace: openshift-marketplace
1616

1717
# TODO: Add a kustomization for CK, most likely separate from the autoscaling one.
18-
pre_deploy_kustomize_autoscaling:
19-
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/configure-autoscaling.yml"
18+
pre_deploy_kustomize_cloudkitty:
19+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/configure-cloudkitty.yml"
2020
type: playbook
2121

2222
# test cloudkitty
2323
cifmw_run_tests: true
2424
cifmw_run_test_role: test_operator
25+
# TODO: Consider switching to podified-master-centos10 for features that patch master
2526
cifmw_test_operator_tempest_namespace: podified-antelope-centos9
2627
# cloudkitty tempest plugin is not part of the tempest rpm.
2728
# https://review.rdoproject.org/cgit/openstack/tempest-distgit/tree/openstack-tempest.spec
@@ -32,6 +33,7 @@ cifmw_test_operator_tempest_container: openstack-tempest-all
3233
cifmw_test_operator_tempest_image_tag: 'current-podified'
3334
# This value is used to populate the `tempestconfRun` parameter of the Tempest CR: https://openstack-k8s-operators.github.io/test-operator/crds.html#tempest-custom-resource
3435
# https://github.com/openstack-k8s-operators/ci-framework/blob/main/roles/test_operator/defaults/main.yml
36+
# TODO: Refine this tempest config
3537
tempest_conf:
3638
overrides: |
3739
validation.run_validation true
@@ -50,9 +52,10 @@ cifmw_test_operator_tempest_include_list: |
5052
^tempest.*\[.*\bsmoke\b.*\]
5153
cloudkitty_tempest_plugin.*
5254
telemetry_tempest_plugin.*
53-
cifmw_test_operator_tempest_exclude_list: |
54-
telemetry_tempest_plugin.scenario.test_telemetry_integration_prometheus.PrometheusGabbiTest.test_autoscaling
55-
55+
#cifmw_test_operator_tempest_exclude_list: |
56+
# telemetry_tempest_plugin.scenario.test_telemetry_integration_prometheus.PrometheusGabbiTest.test_autoscaling
57+
# TODO: update this to allow multiple external plugins to be listed with Depends-On.
58+
# Potentially, this can be done via the meta content provider, by adding the tempest images to the list.
5659
external_plugin: "opendev.org/openstack/cloudkitty-tempest-plugin"
5760
change_item: "{{ zuul['items'] | selectattr('project.canonical_name', 'equalto', external_plugin) }}"
5861
# This is a workaround because CK tempest is not packages in RDO. Typically, the default would be [], since we would not require an external installation.

0 commit comments

Comments
 (0)