Skip to content

Commit 7395527

Browse files
committed
Add dependencies for a periodic job with ceph
1 parent a0641a2 commit 7395527

File tree

3 files changed

+114
-0
lines changed

3 files changed

+114
-0
lines changed

ci/deploy-telemetry-with-ceph.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
- name: "Deploy telemetry in a job with ceph"
3+
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
4+
gather_facts: false
5+
environment:
6+
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
7+
PATH: "{{ cifmw_path }}"
8+
tasks:
9+
- name: Deploy logging dependencies
10+
ansible.builtin.import_role:
11+
name: deploy-logging-dependencies
12+
- name: Copy controlplane kustomization
13+
ansible.builtin.copy:
14+
dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/controlplane/90-kustomize-controlplane-telemetry.yaml"
15+
content: |-
16+
apiVersion: kustomize.config.k8s.io/v1beta1
17+
kind: Kustomization
18+
namespace: openstack
19+
patches:
20+
- patch: |-
21+
apiVersion: core.openstack.org/v1beta1
22+
kind: OpenStackControlPlane
23+
metadata:
24+
name: unused
25+
spec:
26+
swift: # required for smoketests to pass
27+
enabled: true
28+
heat: # required for autoscaling
29+
enabled: true
30+
telemetry: # enable all telemetry controlplane services
31+
enabled: true
32+
template:
33+
metricStorage:
34+
enabled: true
35+
monitoringStack:
36+
alertingEnabled: false
37+
autoscaling:
38+
enabled: true
39+
logging:
40+
enabled: true
41+
ceilometer:
42+
enabled: true
43+
mysqldExporterEnabled: true
44+
target:
45+
kind: OpenStackControlPlane
46+
- patch: |-
47+
apiVersion: core.openstack.org/v1beta1
48+
kind: OpenStackControlPlane
49+
metadata:
50+
name: unused
51+
spec:
52+
telemetry:
53+
template:
54+
metricStorage:
55+
dashboardsEnabled: true
56+
target:
57+
kind: OpenStackControlPlane
58+
59+
# Deploy telemetry services and all their prerequisities on the dataplane
60+
- name: Copy dataplane nodeset kustomization
61+
ansible.builtin.copy:
62+
dest: "{{ cifmw_basedir }}/artifacts/manifests/kustomizations/dataplane/60-kustomize-dataplane-telemetry-service.yaml"
63+
content: |-
64+
apiVersion: kustomize.config.k8s.io/v1beta1
65+
kind: Kustomization
66+
resources:
67+
namespace: {{ cifmw_install_yamls_defaults['NAMESPACE'] }}
68+
patches:
69+
- target:
70+
kind: OpenStackDataPlaneNodeSet
71+
name: .*
72+
patch: |-
73+
- op: add
74+
path: /spec/services/-
75+
value: install-certs
76+
- op: add
77+
path: /spec/services/-
78+
value: ovn
79+
- op: add
80+
path: /spec/services/-
81+
value: libvirt
82+
- op: add
83+
path: /spec/services/-
84+
value: telemetry
85+
- op: add
86+
path: /spec/services/-
87+
value: telemetry-power-monitoring
88+
- op: add
89+
path: /spec/services/-
90+
value: logging

ci/vars-telemetry-with-ceph.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
cifmw_run_tests: false
3+
cifmw_edpm_prepare_timeout: 60
4+
cifmw_deploy_obs: true
5+
cifmw_openshift_obs_definition:
6+
apiVersion: operators.coreos.com/v1alpha1
7+
kind: Subscription
8+
metadata:
9+
name: observability-operator
10+
namespace: openshift-operators
11+
spec:
12+
channel: stable
13+
installPlanApproval: Automatic
14+
name: cluster-observability-operator
15+
source: redhat-operators
16+
sourceNamespace: openshift-marketplace
17+
pre_deploy_deploy_telemetry_services:
18+
source: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/deploy-telemetry-with-ceph.yml"
19+
type: playbook

zuul.d/projects.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,8 @@
123123
- functional-logging-tests-osp18: *fvt_jobs_config
124124
- feature-verification-tests-noop:
125125
files: *irrelevant_files
126+
# TODO: Uncomment once the job merges in FVT
127+
#- functional-periodic-telemetry-with-ceph: *fvt_jobs_config
128+
# files:
129+
# - ci/deploy-telemetry-with-ceph.yml
130+
# - ci/var-telemetry-with-ceph.yml

0 commit comments

Comments
 (0)