-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhos-18.0.17 FR 5
-
None
-
0
-
False
-
-
False
-
?
-
rhos-conplat-core-operators
-
None
-
-
-
-
Low
This would apply to any other subsection of the controlplane CR. CloudKitty is just the current example of the behavior.
To Reproduce Steps to reproduce the behavior:
- Apply an openstackcontrolplane CR with the .spec.telemetry.template.cloudkitty completely missing
- Retrieve openstackcontrolplane with `oc get oscp <name> -oyaml`
- See that most of CloudKitty is set to zero values
Expected behavior
- CloudKitty kubebuilder-based defaulting as defined in https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/api/v1beta1/cloudkitty_types.go triggers and defaults the CR.
Bug impact
- This impacts users applying a CR with CloudKitty missing. This would impact anyone having FR4 or earlier and updating to FR5 - CloudKitty section won't get populated.
Known workaround
- Patch the CloudKitty section to empty struct to trigger the defaulting
oc patch oscp <controlplane CR name> --type='json' -p='[{"op": "replace", "path": "/spec/telemetry/template/cloudkitty", "value":{}}]'
Additional context
- CK section, that's not correctly defaulted
cloudkitty:
apiTimeout: 0
auth: {}
cloudKittyAPI:
override: {}
replicas: 1
resources: {}
tls:
api:
internal: {}
public: {}
cloudKittyProc:
replicas: 1
resources: {}
tls: {}
databaseAccount: ""
databaseInstance: ""
enabled: false
lokiRetentionDays: 0
lokiStackSize: ""
memcachedInstance: ""
messagingBus:
cluster: rabbitmq
passwordSelector:
aodhService: ""
ceilometerService: ""
cloudKittyService: ""
period: 0
preserveJobs: false
s3StorageConfig:
schemas:
- effectiveDate: "2020-10-11"
version: v11
secret:
name: ""
type: ""
secret: ""
serviceUser: ""
- CK section that is correctly defaulted (what we want to get instead)
cloudkitty:
apiTimeout: 60
auth: {}
cloudKittyAPI:
override: {}
replicas: 1
resources: {}
tls:
api:
internal: {}
public: {}
cloudKittyProc:
replicas: 1
resources: {}
tls: {}
databaseAccount: cloudkitty
databaseInstance: openstack
enabled: false
lokiRetentionDays: 95
lokiStackSize: 1x.demo
memcachedInstance: memcached
messagingBus:
cluster: rabbitmq
passwordSelector:
aodhService: AodhPassword
ceilometerService: CeilometerPassword
cloudKittyService: CloudKittyPassword
period: 300
preserveJobs: false
s3StorageConfig:
schemas:
- effectiveDate: "2020-10-11"
version: v11
secret:
name: cloudkitty-loki-s3
type: s3
secret: osp-secret
serviceUser: cloudkitty