Skip to content

Commit

Permalink
Enable telemetry in OSASINFRA DT
Browse files Browse the repository at this point in the history
Compared to uni01alpha that is the other DT to enable telemetry, we're
not enabling autoscaling as it requires the additional heat service.

Depends on openstack-k8s-operators/ci-framework#2449.
  • Loading branch information
mandre committed Oct 14, 2024
1 parent cd2734a commit c4a9039
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
36 changes: 36 additions & 0 deletions dt/osasinfra/edpm-post-ceph/nodeset/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,3 +310,39 @@ replacements:
- spec.ovn.template.ovnController.nicMappings
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.telemetry.enabled
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.telemetry.enabled
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.telemetry.metricStorage.enabled
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.telemetry.template.metricStorage.enabled
options:
create: true

- source:
kind: ConfigMap
name: service-values
fieldPath: data.telemetry.ceilometer.enabled
targets:
- select:
kind: OpenStackControlPlane
fieldPaths:
- spec.telemetry.template.ceilometer.enabled
options:
create: true
33 changes: 33 additions & 0 deletions examples/dt/osasinfra/control-plane.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,39 @@
## Assumptions

- A storage class called `local-storage` should already exist.
- Cluster observability operator is already deployed. If not, follow the
steps found [below](#cluster-observability-operator).

### Cluster observability operator

Cluster Observability Operator must be installed as it is required by OpenStack
Telemetry operator. If not installed, the below steps can be followed

```bash
cat > subscription.yaml << EOF
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: observability-operator
namespace: openshift-operators
labels:
operators.coreos.com/observability-operator.openshift-operators: ""
spec:
channel: development
installPlanApproval: Automatic
name: cluster-observability-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
EOF

# Apply the cr
oc apply -f subscription.yaml

# Wait for the deployment to be ready
oc wait deployments/observability-operator --for condition=Available \
--timeout=300s
```

## Initialize

Expand Down
7 changes: 7 additions & 0 deletions examples/dt/osasinfra/service-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,10 @@ data:
nicMappings:
datacentre: ocpbr
octavia: octbr

telemetry:
enabled: true
metricStorage:
enabled: true
ceilometer:
enabled: true
1 change: 1 addition & 0 deletions examples/dt/osasinfra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ data:
- neutron-metadata
- libvirt
- nova
- telemetry
ceph:
conf: CHANGEME_CEPH_CONF
keyring: CHANGEME_CEPH_KEYRING

0 comments on commit c4a9039

Please sign in to comment.