Open alexandreLamarre opened 1 year ago
Deleting the CRD and attempting to re-install via the UI results in the call:
http://localhost:12080/opni-api/CortexOps/configuration/default
(nats: wrong last sequence: 1: key exists6
(type.googleapis.com/google.rpc.ErrorInfo
CONFLICT
there is something weird going on with the gateway ref, after I fixed it manually and got cortex to all-in-one to install, when switching to HA preset mode in the UI, it edited the CRD to have:
gateway:
name : opni-gateway
but did not include the namespace
this also did not switch cortex to HA preset:
The status indicates it thinks it should be all in one and has deleted the HA setup
status:
cortex:
version: v1.16.0-opni.8
workloadStatus:
alertmanager:
conditions: StatefulSet has been successfully deleted
ready: true
all:
conditions: All replicas are ready
ready: true
compactor:
conditions: StatefulSet has been successfully deleted
ready: true
distributor:
conditions: Deployment has been successfully deleted
ready: true
ingester:
conditions: StatefulSet has been successfully deleted
ready: true
purger:
conditions: Deployment has been successfully deleted
ready: true
querier:
conditions: StatefulSet has been successfully deleted
ready: true
query-frontend:
conditions: Deployment has been successfully deleted
ready: true
ruler:
conditions: Deployment has been successfully deleted
ready: true
store-gateway:
conditions: StatefulSet has been successfully deleted
ready: true
workloadsReady: true
image: >-
alex7285/opni@sha256:6180a4e04fe1b310b02c437766fbe20bf3702304e5cebf38a797140647d46435
imagePullPolicy: IfNotPresent
spec:
cortex:
cortexConfig:
limits:
compactor_blocks_retention_period: {}
log_level: debug
storage:
backend: s3
filesystem: {}
s3:
// ....
cortexWorkloads:
targets:
all:
replicas: 1
enabled: true
gateway:
name: opni-gateway
namespace: opni
grafana:
config: {}
dashboardContentCacheDuration: 0s
enabled: true
Trying to then edit the config in the UI, results in the following bug:
When the HA configuration was accepted by the UI, it was not applied to the backend:
{
"enabled": true,
"revision": {
"revision": "56399193"
},
"cortexWorkloads": {
"targets": {
"all": {
"replicas": 1
}
}
},
"cortexConfig": {
"limits": {
"compactorBlocksRetentionPeriod": "0s"
},
"storage": {
"backend": "s3",
"s3": {
"endpoint": "s3.us-east-1.amazonaws.com",
"region": "us-east-1",
"secretAccessKey": "***",
"accessKeyId": "AKIARHLSZXXGKCKBHQVX",
"sse": {},
"http": {}
},
"filesystem": {}
},
"logLevel": "debug"
},
"grafana": {
"enabled": true,
"hostname": "//...
}
}
This is also tracks the UI failures and expected behavior for the UI
steps to reproduce
expected
UI
Backend
Not classified
opni-manager logs
monitoring cluster CRD
gateway pod ENV