Skip to content

Commit

Permalink
[neutron] add support for enabling sentry_sdk
Browse files Browse the repository at this point in the history
This change adds a new environment variable in neutron deployments
to enable using the sentry_sdk for logging.

Needs updated logging config and new images.

Co-authored-by: Sven Rosenzweig <[email protected]>
  • Loading branch information
mutax and sven-rosenzweig committed Nov 5, 2024
1 parent 3a76163 commit 118f23f
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openstack/neutron/templates/deployment-aci-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ spec:
env:
- name: DEBUG_CONTAINER
value: "false"
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions openstack/neutron/templates/deployment-cc-fabric-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ spec:
resources:
{{ toYaml $.Values.pod.resources.cc_fabric_agent | indent 12 }}
env:
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions openstack/neutron/templates/deployment-ironic-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ spec:
periodSeconds: 30
timeoutSeconds: 10
env:
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions openstack/neutron/templates/deployment-rpc-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ spec:
value: "9125"
- name: STATSD_PREFIX
value: "openstack"
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions openstack/neutron/templates/deployment-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ spec:
value: "9125"
- name: STATSD_PREFIX
value: "openstack"
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ spec:
imagePullPolicy: IfNotPresent
command: ["dumb-init", "neutron-dhcp-agent", "--config-file", "/etc/neutron/neutron.conf", "--config-dir", "/etc/neutron/secrets", "--config-file", "/etc/neutron/dhcp-agent.ini", "--config-file", "/etc/neutron/linux-bridge.ini", "--config-file", "/etc/neutron/az-{{ $az }}.conf"]
env:
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -143,6 +145,8 @@ spec:
imagePullPolicy: IfNotPresent
command: ["dumb-init", "neutron-linuxbridge-agent", "--config-file", "/etc/neutron/neutron.conf", "--config-dir", "/etc/neutron/secrets", "--config-file", "/etc/neutron/plugins/ml2/ml2_conf.ini", "--config-file", "/etc/neutron/linux-bridge.ini", "--config-file", "/etc/neutron/apod-{{ $apod }}.conf"]
env:
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -188,6 +192,8 @@ spec:
imagePullPolicy: IfNotPresent
command: ["dumb-init", "neutron-metadata-agent", "--config-file", "/etc/neutron/neutron.conf", "--config-dir", "/etc/neutron/secrets","--config-file", "/etc/neutron/metadata-agent.ini"]
env:
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions openstack/neutron/templates/statefulset-network-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ spec:
imagePullPolicy: IfNotPresent
command: ["dumb-init", "neutron-dhcp-agent", "--config-file", "/etc/neutron/neutron.conf", "--config-dir", "/etc/neutron/secrets", "--config-file", "/etc/neutron/dhcp-agent.ini", "--config-file", "/etc/neutron/linux-bridge.ini", "--config-file", "/etc/neutron/az-{{ $az }}.conf"]
env:
- name: SENTRY_USE_SDK
value: "{{$.Values.global.neutron_use_sentry_sdk | default false }}"
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
Expand Down
1 change: 1 addition & 0 deletions openstack/neutron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ global:
domain_seeds:
skip_hcm_domain: false
linkerd_requested: false
neutron_use_sentry_sdk: false

api_workers: 12
rpc_workers: 5
Expand Down

0 comments on commit 118f23f

Please sign in to comment.