Skip to content

Commit

Permalink
Add API Timeout for ceilometer
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzigold committed Nov 12, 2024
1 parent 3a5a9f4 commit f8906f3
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/bases/telemetry.openstack.org_ceilometers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ spec:
spec:
description: CeilometerSpec defines the desired state of Ceilometer
properties:
apiTimeout:
default: 60
description: APITimeout for Apache
minimum: 60
type: integer
centralImage:
type: string
computeImage:
Expand Down
5 changes: 5 additions & 0 deletions api/bases/telemetry.openstack.org_telemetries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ spec:
ceilometer:
description: Ceilometer - Parameters related to the ceilometer service
properties:
apiTimeout:
default: 60
description: APITimeout for Apache
minimum: 60
type: integer
centralImage:
type: string
computeImage:
Expand Down
6 changes: 6 additions & 0 deletions api/v1beta1/ceilometer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ type CeilometerSpec struct {

// CeilometerSpecCore defines the desired state of Ceilometer. This version is used by the OpenStackControlplane (no image parameters)
type CeilometerSpecCore struct {
// +kubebuilder:validation:Optional
// +kubebuilder:default=60
// +kubebuilder:validation:Minimum=60
// APITimeout for Apache
APITimeout int `json:"apiTimeout"`

// RabbitMQ instance name
// Needed to request a transportURL that is created and used in Telemetry
// +kubebuilder:default=rabbitmq
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/telemetry.openstack.org_ceilometers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ spec:
spec:
description: CeilometerSpec defines the desired state of Ceilometer
properties:
apiTimeout:
default: 60
description: APITimeout for Apache
minimum: 60
type: integer
centralImage:
type: string
computeImage:
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/telemetry.openstack.org_telemetries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ spec:
ceilometer:
description: Ceilometer - Parameters related to the ceilometer service
properties:
apiTimeout:
default: 60
description: APITimeout for Apache
minimum: 60
type: integer
centralImage:
type: string
computeImage:
Expand Down
1 change: 1 addition & 0 deletions controllers/ceilometer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ func (r *CeilometerReconciler) generateServiceConfig(
"CeilometerPassword": string(ceilometerPasswordSecret.Data["CeilometerPassword"]),
"TLS": false, // Default to false. Change to true later if TLS enabled
"SwiftRole": false, //
"Timeout": instance.Spec.APITimeout,
}

// create httpd vhost template parameters
Expand Down
2 changes: 2 additions & 0 deletions templates/ceilometercentral/config/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ CustomLog /dev/stdout proxy env=forwarded
SSLCertificateFile "{{ .vhost.SSLCertificateFile }}"
SSLCertificateKeyFile "{{ .vhost.SSLCertificateKeyFile }}"
{{- end }}

Timeout {{ $.Timeout }}
</VirtualHost>

0 comments on commit f8906f3

Please sign in to comment.