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

vdk-server: fix for vdk server crashing on startup #907

Merged
merged 3 commits into from Jul 26, 2022

Conversation

mrMoZ1
Copy link
Contributor

@mrMoZ1 mrMoZ1 commented Jul 20, 2022

what: Added a missing env variable that was causing the control-service to crash on startup, because even though the authentication/authorization is disabled the variable is used in a bean (constructor) initialization and it crashes on spring boot initialization (before it enters our code). The env variable is found in some of our application.properties files, but it varies between prod, testing etc (not all have default values) and there are comments that say setting it is mandatory.

why: the vdk-server's vdk server --install command was failing.

testing: Tested locally with pip install -e option of a locally editable vdk-server plugin. Server was failing to start before the change. After the change - server starts up normally.

Signed-off-by: Momchil Zhivkov mzhivkov@vmware.com

Signed-off-by: mrMoZ1 <mzhivkov@vmware.com>
@antoniivanov
Copy link
Collaborator

antoniivanov commented Jul 21, 2022

Why is this necessary ? Should not this #873 have fixed the issue?

@mrMoZ1
Copy link
Contributor Author

mrMoZ1 commented Jul 21, 2022

Why is this necessary ? Should not this #873 have fixed the issue?

Different variable which has a very similar name.

@antoniivanov
Copy link
Collaborator

Why is this necessary ? Should not this #873 have fixed the issue?

Different variable which has a very similar name.

Ok.

Can't we fix it the same way ? It's better to make our control service helm chart easy to install as it will not be used only by vdk-server by other directly.

@mrMoZ1 mrMoZ1 merged commit 0fe5335 into main Jul 26, 2022
@mrMoZ1 mrMoZ1 deleted the person/mzhivkov/fix-vdk-server-startup branch July 26, 2022 14:06
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.

None yet

4 participants