-
Notifications
You must be signed in to change notification settings - Fork 56
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
Change post-install to pre-install for create-upgrade-db job #139
Conversation
Hello @dedene! Thanks for your contribution. But I think the problem is another. I reported to @fibbs that we can not download the Docker image At this moment, I recommend disabling HA mode until this Docker Image is available in the new Docker Registry. |
@aeciopires Actually it did: what I observed was that the job was not being created by Helm. After manually creating the job
it worked. Also for me |
Hum... interesting I tested the Thanks for sharing more details. I will wait for @fibbs' opinion before merging his fix, because he was implemented this job. |
You may have tested 7.2-latest which indeed wasn't there until about a day after appearal of the 7.2 server images. |
Let me please test your desired modification locally, as I believe I had a good reason for implementing it as a post-install hook, but I don't remember the reason why it wouldn't work that way. |
Hey, took some time for me to get back into this. Christmas time has been more busy than expected, as every year... I did a simple test and I can confirm the error reported by you, even though everything works just fine when simply using
As expected, at least by myself, the following happened:
When using Having the issue confirmed, I am wondering whether just changing the job to be a pre-install one will work or lead into other problems. I remember I have chosen pre-install because of wanting to make sure at the time of database initialization no (probably previously running) server containers are trying to access the db anymore, but this would clearly be a Upgrade situation which shouldn't interfere with the Install situation. Will do some more tests.... |
Congratulations on the troubleshooting, @fibbs. Well done |
I have created another PR #142 which will fix this problem. I am sorry this PR will have to be closed and not accepted, but the changes made in mine were necessary so the entire Helm Chart would continue to work. |
Congratulations @fibbs! |
As mentioned, I am closing this in favor of my other pull request. If any more problems during installation, please open an Issue first. It's easier to refer to an issue rather than to a PR. |
What this PR does / why we need it:
I could not get a fresh install running with following helm values (and an external postgresql cluster):
After some investigation, when zabbixServerHA is enabled, the zabbix server pod is waiting to become active with the initContainer
init-wait-for-database-schema
, but the job to create the initial schema has the helm hook set topost-install
. As the helm installer does not complete because the zabbix server pod does not become active and healthy, it does not work without manually inserting this upgrade-db job.I believe changing the helm hook annotation from post-install to pre-install will fix this.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]