Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#1034 from yadneshk/deploy_…
Browse files Browse the repository at this point in the history
…kepler

Export environment variables for Kepler deployment
  • Loading branch information
openshift-merge-bot[bot] authored Sep 20, 2024
2 parents 26a4939 + 90e6ab9 commit 98fbd73
Show file tree
Hide file tree
Showing 17 changed files with 46 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apis/bases/core.openstack.org_openstackcontrolplanes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17583,6 +17583,8 @@ spec:
type: string
edpmIscsidImage:
type: string
edpmKeplerImage:
type: string
edpmLogrotateCrondImage:
type: string
edpmMultipathdImage:
Expand Down
6 changes: 6 additions & 0 deletions apis/bases/core.openstack.org_openstackversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ spec:
type: string
edpmIscsidImage:
type: string
edpmKeplerImage:
type: string
edpmLogrotateCrondImage:
type: string
edpmMultipathdImage:
Expand Down Expand Up @@ -302,6 +304,8 @@ spec:
type: string
edpmIscsidImage:
type: string
edpmKeplerImage:
type: string
edpmLogrotateCrondImage:
type: string
edpmMultipathdImage:
Expand Down Expand Up @@ -478,6 +482,8 @@ spec:
type: string
edpmIscsidImage:
type: string
edpmKeplerImage:
type: string
edpmLogrotateCrondImage:
type: string
edpmMultipathdImage:
Expand Down
1 change: 1 addition & 0 deletions apis/core/v1beta1/openstackversion_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ type ContainerTemplate struct {
EdpmNeutronSriovAgentImage *string `json:"edpmNeutronSriovAgentImage,omitempty"`
EdpmOvnBgpAgentImage *string `json:"edpmOvnBgpAgentImage,omitempty"`
EdpmNodeExporterImage *string `json:"edpmNodeExporterImage,omitempty"`
EdpmKeplerImage *string `json:"edpmKeplerImage,omitempty"`
GlanceAPIImage *string `json:"glanceAPIImage,omitempty"`
HeatAPIImage *string `json:"heatAPIImage,omitempty"`
HeatCfnapiImage *string `json:"heatCfnapiImage,omitempty"`
Expand Down
5 changes: 5 additions & 0 deletions apis/core/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion apis/dataplane/v1beta1/openstackdataplanenodeset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ var ContainerImageDefaults = openstackv1.ContainerImages{
EdpmOvnBgpAgentImage: getStrPtr("quay.io/podified-antelope-centos9/openstack-ovn-bgp-agent:current-podified"),
CeilometerComputeImage: getStrPtr("quay.io/podified-antelope-centos9/openstack-telemetry-ceilometer-compute:current-podified"),
CeilometerIpmiImage: getStrPtr("quay.io/podified-antelope-centos9/openstack-telemetry-ceilometer-ipmi:current-podified"),
EdpmNodeExporterImage: getStrPtr("quay.io/podified-antelope-centos9/openstack-telemetry-node-exporter:current-podified"),
EdpmNodeExporterImage: getStrPtr("quay.io/prometheus/node-exporter:v1.5.0"),
EdpmKeplerImage: getStrPtr("quay.io/sustainable_computing_io/kepler:release-0.7.11"),
OsContainerImage: getStrPtr("quay.io/podified-antelope-centos9/edpm-hardened-uefi:current-podified"),
}}

Expand All @@ -253,6 +254,7 @@ func SetupDefaults() {
EdpmNeutronOvnAgentImage: getImageDefault("RELATED_IMAGE_EDPM_NEUTRON_OVN_AGENT_IMAGE_URL_DEFAULT", ContainerImageDefaults.EdpmNeutronOvnAgentImage),
EdpmNeutronSriovAgentImage: getImageDefault("RELATED_IMAGE_EDPM_NEUTRON_SRIOV_AGENT_IMAGE_URL_DEFAULT", ContainerImageDefaults.EdpmNeutronSriovAgentImage),
EdpmNodeExporterImage: getImageDefault("RELATED_IMAGE_EDPM_NODE_EXPORTER_IMAGE_URL_DEFAULT", ContainerImageDefaults.EdpmNodeExporterImage),
EdpmKeplerImage: getImageDefault("RELATED_IMAGE_EDPM_KEPLER_IMAGE_URL_DEFAULT", ContainerImageDefaults.EdpmKeplerImage),
EdpmOvnBgpAgentImage: getImageDefault("RELATED_IMAGE_EDPM_OVN_BGP_AGENT_IMAGE_URL_DEFAULT", ContainerImageDefaults.EdpmOvnBgpAgentImage),
CeilometerComputeImage: getImageDefault("RELATED_IMAGE_CEILOMETER_COMPUTE_IMAGE_URL_DEFAULT", ContainerImageDefaults.CeilometerComputeImage),
CeilometerIpmiImage: getImageDefault("RELATED_IMAGE_CEILOMETER_IPMI_IMAGE_URL_DEFAULT", ContainerImageDefaults.CeilometerIpmiImage),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17583,6 +17583,8 @@ spec:
type: string
edpmIscsidImage:
type: string
edpmKeplerImage:
type: string
edpmLogrotateCrondImage:
type: string
edpmMultipathdImage:
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/core.openstack.org_openstackversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ spec:
type: string
edpmIscsidImage:
type: string
edpmKeplerImage:
type: string
edpmLogrotateCrondImage:
type: string
edpmMultipathdImage:
Expand Down Expand Up @@ -302,6 +304,8 @@ spec:
type: string
edpmIscsidImage:
type: string
edpmKeplerImage:
type: string
edpmLogrotateCrondImage:
type: string
edpmMultipathdImage:
Expand Down Expand Up @@ -478,6 +482,8 @@ spec:
type: string
edpmIscsidImage:
type: string
edpmKeplerImage:
type: string
edpmLogrotateCrondImage:
type: string
edpmMultipathdImage:
Expand Down
2 changes: 2 additions & 0 deletions config/default/manager_default_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ spec:
value: quay.io/podified-antelope-centos9/openstack-neutron-sriov-agent:current-podified
- name: RELATED_IMAGE_EDPM_NODE_EXPORTER_IMAGE_URL_DEFAULT
value: quay.io/prometheus/node-exporter:v1.5.0
- name: RELATED_IMAGE_EDPM_KEPLER_IMAGE_URL_DEFAULT
value: quay.io/sustainable_computing_io/kepler:release-0.7.11
- name: RELATED_IMAGE_EDPM_OVN_BGP_AGENT_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-ovn-bgp-agent:current-podified
- name: RELATED_IMAGE_GLANCE_API_IMAGE_URL_DEFAULT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ spec:
- CeilometerComputeImage
- CeilometerIpmiImage
- EdpmNodeExporterImage
- EdpmKeplerImage
2 changes: 2 additions & 0 deletions docs/assemblies/common_configurations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ ifeval::["{build}" != "downstream"]
edpm_ovn_bgp_agent_local_ovn_northd_image: "quay.io/podified-antelope-centos9/openstack-ovn-northd
edpm_ovn_bgp_agent_local_ovn_controller_image: "quay.io/podified-antelope-centos9/openstack-ovn-controller
edpm_telemetry_node_exporter_image: quay.io/prometheus/node-exporter
edpm_telemetry_kepler_image: "quay.io/sustainable_computing_io/kepler"
edpm_telemetry_ceilometer_compute_image: quay.io/podified-antelope-centos9/openstack-ceilometer-compute
edpm_telemetry_ceilometer_ipmi_image: quay.io/podified-antelope-centos9/openstack-ceilometer-ipmi
edpm_nova_compute_image: "quay.io/podified-antelope-centos9/openstack-nova-compute
Expand All @@ -93,6 +94,7 @@ ifeval::["{build}" == "downstream"]
edpm_ovn_bgp_agent_local_ovn_northd_image: "redhat.registry.io/rhoso-beta/openstack-ovn-northd-rhel9:18.0.0
edpm_ovn_bgp_agent_local_ovn_controller_image: "redhat.registry.io/rhoso-beta/openstack-ovn-controller-rhel9:18.0.0
edpm_telemetry_node_exporter_image: redhat.registry.io/prometheus/node-exporter-rhel9:18.0.0
edpm_telemetry_kepler_image: "registry.redhat.io/openshift-power-monitoring/kepler-rhel9:v0.7.10-2"
edpm_telemetry_ceilometer_compute_image: redhat.registry.io/rhoso-beta/openstack-ceilometer-compute-rhel9:18.0.0
edpm_telemetry_ceilometer_ipmi_image: redhat.registry.io/rhoso-beta/openstack-ceilometer-ipmi-rhel9:18.0.0
edpm_nova_compute_image: "redhat.registry.io/rhoso-beta/openstack-nova-compute-rhel9:18.0.0
Expand Down
5 changes: 5 additions & 0 deletions docs/assemblies/ctlplane_resources.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1963,6 +1963,11 @@ ContainerTemplate - struct that contains container image URLs for each service i
| *string
| false
| edpmKeplerImage
|
| *string
| false
| glanceAPIImage
|
| *string
Expand Down
2 changes: 2 additions & 0 deletions docs/assemblies/proc_creating-a-set-of-data-plane-nodes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ ifeval::["{build}" != "downstream"]
edpm_frr_image: "quay.io/podified-antelope-centos9/openstack-frr:current-podified"
edpm_ovn_bgp_agent_image: "quay.io/podified-antelope-centos9/openstack-ovn-bgp-agent:current-podified"
telemetry_node_exporter_image: "quay.io/prometheus/node-exporter:v1.5.0"
edpm_telemetry_kepler_image: "quay.io/sustainable_computing_io/kepler"
edpm_libvirt_image: "quay.io/podified-antelope-centos9/openstack-nova-libvirt:current-podified"
edpm_nova_compute_image: "quay.io/podified-antelope-centos9/openstack-nova-compute:current-podified"
edpm_neutron_sriov_image: "quay.io/podified-antelope-centos9/openstack-neutron-sriov-agent:current-podified"
Expand All @@ -289,6 +290,7 @@ ifeval::["{build}" == "downstream"]
edpm_frr_image: "registry.redhat.io/rhosp-dev-preview/openstack-frr:18.0"
edpm_ovn_bgp_agent_image: "registry.redhat.io/rhosp-dev-preview/openstack-ovn-bgp-agent:18.0"
telemetry_node_exporter_image: "quay.io/prometheus/node-exporter:v1.5.0"
edpm_telemetry_kepler_image: "registry.redhat.io/openshift-power-monitoring/kepler-rhel9:v0.7.10-2"
edpm_libvirt_image: "registry.redhat.io/rhosp-dev-preview/openstack-nova-libvirt:18.0"
edpm_nova_compute_image: "registry.redhat.io/rhosp-dev-preview/openstack-nova-compute:18.0"
edpm_neutron_sriov_image: "registry.redhat.io/rhosp-dev-preview/openstack-neutron-sriov-agent:18.0"
Expand Down
1 change: 1 addition & 0 deletions hack/export_related_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export RELATED_IMAGE_EDPM_NEUTRON_OVN_AGENT_IMAGE_URL_DEFAULT=quay.io/podified-a
export RELATED_IMAGE_EDPM_NEUTRON_SRIOV_AGENT_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-neutron-sriov-agent:current-podified
export RELATED_IMAGE_EDPM_OVN_BGP_AGENT_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-ovn-bgp-agent:current-podified
export RELATED_IMAGE_EDPM_NODE_EXPORTER_IMAGE_URL_DEFAULT=quay.io/prometheus/node-exporter:v1.5.0
export RELATED_IMAGE_EDPM_KEPLER_IMAGE_URL_DEFAULT=quay.io/sustainable_computing_io/kepler:release-0.7.11
export RELATED_IMAGE_TEST_TEMPEST_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-tempest-all:current-podified
export RELATED_IMAGE_TEST_TOBIKO_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-tobiko:current-podified
export RELATED_IMAGE_TEST_ANSIBLETEST_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-ansible-tests:current-podified
Expand Down
3 changes: 3 additions & 0 deletions pkg/dataplane/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ func resolveGroupAnsibleVars(template *dataplanev1.NodeTemplate, group *ansible.
if template.Ansible.AnsibleVars["edpm_telemetry_node_exporter_image"] == nil {
group.Vars["edpm_telemetry_node_exporter_image"] = containerImages.EdpmNodeExporterImage
}
if template.Ansible.AnsibleVars["edpm_telemetry_kepler_image"] == nil {
group.Vars["edpm_telemetry_kepler_image"] = containerImages.EdpmKeplerImage
}

err := unmarshalAnsibleVars(template.Ansible.AnsibleVars, group.Vars)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions pkg/dataplane/util/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func GetContainerImages(version *openstackv1.OpenStackVersion) openstackv1.Conta
containerImages.EdpmNeutronOvnAgentImage = version.Status.ContainerImages.EdpmNeutronOvnAgentImage
containerImages.EdpmNeutronSriovAgentImage = version.Status.ContainerImages.EdpmNeutronSriovAgentImage
containerImages.EdpmNodeExporterImage = version.Status.ContainerImages.EdpmNodeExporterImage
containerImages.EdpmKeplerImage = version.Status.ContainerImages.EdpmKeplerImage
containerImages.EdpmOvnBgpAgentImage = version.Status.ContainerImages.EdpmOvnBgpAgentImage
containerImages.NovaComputeImage = version.Status.ContainerImages.NovaComputeImage
containerImages.OvnControllerImage = version.Status.ContainerImages.OvnControllerImage
Expand All @@ -91,6 +92,7 @@ func GetContainerImages(version *openstackv1.OpenStackVersion) openstackv1.Conta
containerImages.EdpmNeutronOvnAgentImage = dataplanev1.ContainerImages.EdpmNeutronOvnAgentImage
containerImages.EdpmNeutronSriovAgentImage = dataplanev1.ContainerImages.EdpmNeutronSriovAgentImage
containerImages.EdpmNodeExporterImage = dataplanev1.ContainerImages.EdpmNodeExporterImage
containerImages.EdpmKeplerImage = dataplanev1.ContainerImages.EdpmKeplerImage
containerImages.EdpmOvnBgpAgentImage = dataplanev1.ContainerImages.EdpmOvnBgpAgentImage
containerImages.NovaComputeImage = dataplanev1.ContainerImages.NovaComputeImage
containerImages.OvnControllerImage = dataplanev1.ContainerImages.OvnControllerImage
Expand Down
1 change: 1 addition & 0 deletions pkg/openstack/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func GetContainerImages(defaults *corev1beta1.ContainerDefaults, instance corev1
EdpmNeutronSriovAgentImage: getImg(instance.Spec.CustomContainerImages.EdpmNeutronSriovAgentImage, defaults.EdpmNeutronSriovAgentImage),
EdpmOvnBgpAgentImage: getImg(instance.Spec.CustomContainerImages.EdpmOvnBgpAgentImage, defaults.EdpmOvnBgpAgentImage),
EdpmNodeExporterImage: getImg(instance.Spec.CustomContainerImages.EdpmNodeExporterImage, defaults.EdpmNodeExporterImage),
EdpmKeplerImage: getImg(instance.Spec.CustomContainerImages.EdpmKeplerImage, defaults.EdpmKeplerImage),
GlanceAPIImage: getImg(instance.Spec.CustomContainerImages.GlanceAPIImage, defaults.GlanceAPIImage),
HeatAPIImage: getImg(instance.Spec.CustomContainerImages.HeatAPIImage, defaults.HeatAPIImage),
HeatCfnapiImage: getImg(instance.Spec.CustomContainerImages.HeatCfnapiImage, defaults.HeatCfnapiImage),
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/ctlplane/openstackversion_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ var _ = Describe("OpenStackOperator controller", func() {
g.Expect(version.Status.ContainerImages.EdpmNeutronMetadataAgentImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.EdpmNeutronSriovAgentImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.EdpmNodeExporterImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.EdpmKeplerImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.EdpmOvnBgpAgentImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.GlanceAPIImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.HeatAPIImage).ShouldNot(BeNil())
Expand Down Expand Up @@ -175,6 +176,7 @@ var _ = Describe("OpenStackOperator controller", func() {
g.Expect(version.Status.ContainerImages.SwiftObjectImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.SwiftProxyImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.EdpmNodeExporterImage).ShouldNot(BeNil())
g.Expect(version.Status.ContainerImages.EdpmKeplerImage).ShouldNot(BeNil())

}, timeout, interval).Should(Succeed())
})
Expand Down

0 comments on commit 98fbd73

Please sign in to comment.