Skip to content

TestOOMControllerReporting fails for OLM tests #954

@czunker

Description

@czunker

Describe the bug

=== RUN   TestAuditConfigOOMSuite/TestOOMControllerReporting
2023-11-23T07:11:23.095+0100	INFO	integration/audit_config_base_suite.go:246	Create an audit config that enables nothing.
2023-11-23T07:11:25.114+0100	INFO	integration/audit_config_base_suite.go:269	Reducing memory limit to trigger OOM.
    audit_config_base_suite.go:277: 
        	Error Trace:	/home/christian/workspace/mondoo/github.com/mondoo-operator/tests/integration/audit_config_base_suite.go:277
        	            				/home/christian/workspace/mondoo/github.com/mondoo-operator/tests/integration/audit_config_oom_test.go:20
        	Error:      	Received unexpected error:
        	            	test did not succeed after 100 retries
        	Test:       	TestAuditConfigOOMSuite/TestOOMControllerReporting
        	Messages:   	Failed to find degraded condition
2023-11-23T07:14:45.620+0100	INFO	installer/installer.go:186	gathering all logs from the test
2023-11-23T07:14:45.620+0100	INFO	utils/k8s_helper.go:256	Gathering logs for all pods in namespace mondoo-operator

https://github.com/mondoohq/mondoo-operator/actions/runs/6961336325/job/18954848713

To Reproduce
Steps to reproduce the behavior:

  1. Install operator via OLM
  2. Run integration tests
  3. Note the error

Expected behavior
Tests should pass.

Additional context
Most works as usual, but the changed resource settings aren't applied to the Pod:

k -n mondoo-operator get all
NAME                                                                  READY   STATUS      RESTARTS   AGE
pod/68191bded91e8d8ceaea900c8078dfdb90eb2ff11698389c4489741f8axtqlv   0/1     Completed   0          6m55s
pod/ghcr-io-mondoohq-mondoo-operator-bundle-v1-18-0                   1/1     Running     0          7m6s
pod/mondoo-operator-controller-manager-f4b477475-7dj75                1/1     Running     0          6m41s

NAME                                                         TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
service/mondoo-operator-controller-manager-metrics-service   ClusterIP   10.111.249.127   <none>        8080/TCP   6m43s

NAME                                                 READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/mondoo-operator-controller-manager   1/1     1            1           6m41s

NAME                                                           DESIRED   CURRENT   READY   AGE
replicaset.apps/mondoo-operator-controller-manager-57f5c455c   0         0         0       4m52s
replicaset.apps/mondoo-operator-controller-manager-f4b477475   1         1         1       6m41s

NAME                                                                        COMPLETIONS   DURATION   AGE
job.batch/68191bded91e8d8ceaea900c8078dfdb90eb2ff11698389c4489741f8af7922   1/1           7s         6m55s

A new ReplicaSet is created, but the Pod is not replaced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtesting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions