Details
-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
None
-
False
-
NEW
-
NEW
-
Log Storage - Sprint 221, Log Storage - Sprint 222
Description
Background
The Loki installment for RHOBS (currently known as observatorium-logs) is currently only available for tenant team DPTP (a.k.a. aos-ota-team) on the following clusters/namespaces:
- app-sre-stage-01 / observatorium-logs-stage: The staging environment for observatorium-logs
- telemeter-prod-01 / observatoriumlogs--production: The production environment for observatorium-logs
The main reasons for this installation are:
- Observatorium-logs was meant to be available for a single tenant (DPTP) across it's experimental lifetime (i.e. on hold in transition period since Feb'21)
- Observatorium-logs predates the observatorium-mst creation for SD managed tenants and
Problem statement
Moving forward with SDE-2017 requires to on-board Loki as a part of observatorium-mst to get Loki as a integral part of it. This ensures that SD managed services tenants (e.g. OCM) require in future only to pass through the RHOBS onboarding guide to acquire proper authentication/authorization.
Solution
To ensure a smooth migration from the `observatorium-logs` namespaces (reminder clusters remain the same) we need to migrate all observatorium-logs resource templates from the observatorium-logs/cicd/saas.yaml to the observatorium-mst/cicd/saas.yaml.
Developer Notes
Step-by-step approach:
- Request access for all observatorium-logs roles to observatorium-mst-stage namespace
- Migrate terraform resources from observatorium-logs-stage into observatorium-mst-stage
- Merge image patterns from observatorium-logs/cicd/saas.yaml into observatorium-mst/cicd/saas.yaml
- Replicate observatorium-logs-stage resource templates into observatorium-mst-stage.
- Adapt namespace references in the replicated resource templates from:
targets: - namespace: $ref: /services/rhobs/observatorium/observatorium-logs/namespaces/observatorium-logs-stage.yml
into
targets: - namespace: $ref: /services/rhobs/observatorium-mst/namespaces/observatorium-mst-stage.yml
- Switch observatorium-mst-api to use logs endpoints from observatorium-mst-stage by replacing:
OBSERVATORIUM_LOGS_NAMESPACE: observatorium-logs-stage
with
OBSERVATORIUM_LOGS_NAMESPACE: observatorium-mst-stage
- Repeat above steps for observatorium-mst-production after successful deployment on observatorium-mst-stage
Attachments
Issue Links
- links to
- mentioned on