Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for KSM #1056

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Conversation

paramite
Copy link
Contributor

@paramite paramite commented Sep 10, 2024

This patch add default image and TLS support for kube-state-metrics, a new component of Telemetry/Ceilometer resource.

Related: OBSDA-574
Related: OSPRH-1052
Closes: OSPRH-11115

Copy link

This change depends on a change that failed to merge.

Change openstack-k8s-operators/telemetry-operator#337 is needed.

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/telemetry-operator for 337,7a5096b1cfcbc4cfc34a8a28fc3efca226fb3d5f

@paramite
Copy link
Contributor Author

recheck

@paramite
Copy link
Contributor Author

/test openstack-operator-build-deploy-kuttl

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/f3a8edbee473408fa4dc6a00933a3393

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 00m 20s
podified-multinode-edpm-deployment-crc FAILURE in 1h 03m 25s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 05m 18s
adoption-standalone-to-crc-ceph-provider RETRY_LIMIT in 1h 09m 51s
openstack-operator-tempest-multinode FAILURE in 1h 09m 01s

@paramite
Copy link
Contributor Author

/test openstack-operator-build-deploy-kuttl

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a6512f9c32cc4c669e6eb80f44efa09b

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 27m 18s
podified-multinode-edpm-deployment-crc FAILURE in 1h 06m 22s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 10m 55s
adoption-standalone-to-crc-ceph-provider RETRY_LIMIT in 1h 11m 33s
openstack-operator-tempest-multinode FAILURE in 1h 12m 04s

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ed3cbe5bb1164d639ec157cf429fd6ff

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 27m 14s
podified-multinode-edpm-deployment-crc FAILURE in 1h 06m 14s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 15m 32s
adoption-standalone-to-crc-ceph-provider RETRY_LIMIT in 1h 13m 08s
openstack-operator-tempest-multinode FAILURE in 1h 09m 07s

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/openstack-operator for 1056,6b48a538a9025e8cc451339acc1c11e9a10e9c63

@paramite
Copy link
Contributor Author

/retest

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/af93f350b0244336bb58530b9512776c

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 56m 37s
podified-multinode-edpm-deployment-crc POST_FAILURE in 1h 02m 36s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 16m 16s
adoption-standalone-to-crc-ceph-provider RETRY_LIMIT in 1h 12m 00s
openstack-operator-tempest-multinode FAILURE in 1h 07m 34s

@dprince
Copy link
Contributor

dprince commented Oct 18, 2024

looks good to me

Copy link
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

This patch add default image and TLS support for kube-state-metrics,
a new component of Telemetry/Ceilometer resource.

Related: OBSDA-574
Related: OSPRH-1052
Closes: OSPRH-11115
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/2d22ed74bfbc4b70abd47344ca2b17db

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 14m 53s
podified-multinode-edpm-deployment-crc FAILURE in 1h 42m 31s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 32m 18s
✔️ adoption-standalone-to-crc-ceph-provider SUCCESS in 2h 59m 59s
✔️ openstack-operator-tempest-multinode SUCCESS in 1h 46m 48s

@paramite
Copy link
Contributor Author

recheck

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/63fe6c15d16149c2b905b5acf63ddb25

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 16m 58s
podified-multinode-edpm-deployment-crc FAILURE in 1h 38m 21s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 28m 38s
✔️ adoption-standalone-to-crc-ceph-provider SUCCESS in 3h 02m 24s
✔️ openstack-operator-tempest-multinode SUCCESS in 1h 35m 12s

@paramite
Copy link
Contributor Author

recheck

Copy link
Contributor

openshift-ci bot commented Jan 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, dprince, paramite

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@paramite
Copy link
Contributor Author

/test openstack-operator-build-deploy-kuttl

3 similar comments
@paramite
Copy link
Contributor Author

/test openstack-operator-build-deploy-kuttl

@paramite
Copy link
Contributor Author

/test openstack-operator-build-deploy-kuttl

@paramite
Copy link
Contributor Author

/test openstack-operator-build-deploy-kuttl

@rabi
Copy link
Contributor

rabi commented Jan 22, 2025

I see a nil pointer dereferencing error in this PR everytime. We're probably trying to derefence an image pointer when the openstackversion status does not have it maybe.

2025-01-22T11:54:57.876Z	INFO	Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference	{"controller": "openstackcontrolplane", "controllerGroup": "core.openstack.org", "controllerKind": "OpenStackControlPlane", "OpenStackControlPlane": {"name":"openstack-galera","namespace":"openstack"}, "namespace": "openstack", "name": "openstack-galera", "reconcileID": "d4d06dce-98eb-4ddf-9f55-129204a41d9d"}
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1ab6bc3]

goroutine 925 [running]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:116 +0x1e5
panic({0x1d578e0?, 0x3498d60?})
	/usr/lib/golang/src/runtime/panic.go:914 +0x21f
github.com/openstack-k8s-operators/openstack-operator/pkg/openstack.ReconcileTelemetry.func1()
	/remote-source/pkg/openstack/telemetry.go:327 +0x483
sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.mutate(0x1d37be0?, {{0xc00067d170?, 0x206a1b7?}, {0xc00067d160?, 0x23fd918?}}, {0x2419b08, 0xc0002d7400})
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/controller/controllerutil/controllerutil.go:426 +0x49
sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrPatch({0x23fd918, 0xc00518d5f0}, {0x24090c0, 0xc0001427e0}, {0x2419b08?, 0xc0002d7400}, 0xc0043ce728)
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/controller/controllerutil/controllerutil.go:361 +0x493
github.com/openstack-k8s-operators/openstack-operator/pkg/openstack.ReconcileTelemetry({0x23fd918, 0xc00518d5f0}, 0xc003ece800, 0xc00107d800, 0xc000791550)
	/remote-source/pkg/openstack/telemetry.go:310 +0x1fa5
github.com/openstack-k8s-operators/openstack-operator/controllers/core.(*OpenStackControlPlaneReconciler).reconcileNormal(0x2400d08?, {0x23fd918, 0xc00518d5f0}, 0x2418758?, 0xc00107d800?, 0x24090c0?)
	/remote-source/controllers/core/openstackcontrolplane_controller.go:407 +0x47a
github.com/openstack-k8s-operators/openstack-operator/controllers/core.(*OpenStackControlPlaneReconciler).Reconcile(0xc00028f410, {0x23fd918?, 0xc00518d5f0}, {{{0xc000843670?, 0x5?}, {0xc000843660?, 0xc000ca2d08?}}})
	/remote-source/controllers/core/openstackcontrolplane_controller.go:229 +0xacf
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x2400d08?, {0x23fd918?, 0xc00518d5f0?}, {{{0xc000843670?, 0xb?}, {0xc000843660?, 0x0?}}})
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:119 +0xb7
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc00068d040, {0x23fd950, 0xc00012b360}, {0x1e3b900?, 0xc00035a640?})
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:316 +0x3cc
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc00068d040, {0x23fd950, 0xc00012b360})
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266 +0x1af
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227 +0x79
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 in goroutine 173
	/opt/app-root/src/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:223 +0x565

@paramite
Copy link
Contributor Author

paramite commented Jan 22, 2025

Oh, thanks for the heads-up Rabi, I missed that. I wonder what had changed since yesterday when KUTTL tests were passing? I'm going to look into it.

@openshift-ci openshift-ci bot removed the lgtm label Jan 22, 2025
Copy link
Contributor

openshift-ci bot commented Jan 22, 2025

New changes are detected. LGTM label has been removed.

@paramite
Copy link
Contributor Author

/test openstack-operator-build-deploy-kuttl

@openshift-merge-bot openshift-merge-bot bot merged commit 079542b into openstack-k8s-operators:main Jan 23, 2025
8 checks passed
@paramite paramite deleted the ksm branch January 24, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants