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

The Initializer container Job is stuck and doesn't complete the Job because of the CloudSQL Proxy #7235

Closed
1 of 3 tasks
bruno561 opened this issue Dec 5, 2022 · 5 comments
Labels

Comments

@bruno561
Copy link

bruno561 commented Dec 5, 2022

Be informative
When using Cloud SQL as a managed database, the Job related to Initializer isn't completed because your Sidecar is still running. Sidecar is cloudsql-proxy.

Bug description
As described in the informational section, the Initializer Job fails when using CloudSQL. NotReady status is displayed.

Image of the logs of the container named Initializer. Logs stop at this point:
image

Image of Pod related to Job with status of NotReady.
image

Steps to reproduce
Basically, just use Cloud SQL in the Values file.

  # Google CloudSQL support in GKE via gce-proxy
  cloudsql:
    # To use CloudSQL in GKE set 'enable: true'
    enabled: true

Expected behavior
Have some way that when the initializer container finishes the job the cloudsql-proxy container is deleted, in order to finish the Job.

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

Logs
image
The cloudsql-proxy container hangs at this point:
image

@bruno561 bruno561 added the bug label Dec 5, 2022
@moxli
Copy link

moxli commented Jul 19, 2023

This results in a failing Helm chart due to the fact that the helm installer waits for the initializer pod to finish (which it never does).
As soon as the initializer pod is deleted manually, the helm installer finishes.

@tellierd
Copy link

Has anyone worked on a fix for this? I'm having the very same issue. Thx

@mtesauro
Copy link
Contributor

@tellierd TBH, Helm isn't an officially supported deployment method for DefectDojo so we rely on the community to submit PRs for the Helm chart in this repo.

There are far to many deployment choices for k8s/Helm for an open source project to able to test them all.

@jndeverteuil
Copy link
Contributor

With PR #10824 the bug is now fixed from what I tested

Also, PR #11363 has fixed the helm charts not being published

This means, the bugfix is available in Helm Chart version 1.6.164

@mtesauro
Copy link
Contributor

Given that we have a report that this is working, I'm going to go ahead and close this.

Reopen or create a new issue if that's not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants