-
Notifications
You must be signed in to change notification settings - Fork 598
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
User is not being created from kubernetes secret #4030
Comments
Hi @batulziiy, sorry you're running into this situation, which is certainly strange. To make sure I understand, it sounds like you're saying that when you add a user to the To start looking at the issue, what PGO version are you running and what does your |
hi @benjaminjb, yes you're correct, that's what I tried to mean. I'm still experiencing the issue and haven't found a solution yet. To answer your question.
Do you think restarting the PG might help me to get rid of the issue? |
Hi @batulziiy, that's interesting. Before we retry restarting anything, can you share what PGO version you're running and any logs you see in the operator pod around the time you try to create a new user through the spec. It's odd to me that the operator would create a secret for a user and then not create the user in PG -- or at least not log the errors. I have messed up creating users once or twice and always looked for the operator log "wrote PostgreSQL users" to help debug the problem. |
thanks @benjaminjb, actually it seems I was looking at the wrong log. According to your suggestion, looked at pgo log and found something interesting.
Now I'm sure that when the pgo tries to reflect the changes from kustomization it gets stuck at this database since it doesn't exist. I will try to create an empty database with the same name and let you know what happens.
|
Overview
I'm experiencing a strange issue that postgres user is not being created from kubernetes secret. It was working fine for the last few months and there are several users created in this way, but when I tried to create another user recently it didn't work.
First I thought there should be something wrong with kustomization as it's the approach used for automation. However, found that secret is already created correctly in Kubernetes cluster while the actual db user is not created on the database.
Environment
Please provide the following details:
Steps to Reproduce
REPRO
Provide steps to get to the error condition:
user: username
format in PostgresCluster definition yaml.EXPECTED
ACTUAL
Logs
Haven't found any logs related to the user creation in both db log, kustomization controller log, kubernetes event and pod log.
Additional Information
Please provide any additional information that may be helpful.
The text was updated successfully, but these errors were encountered: