-
Notifications
You must be signed in to change notification settings - Fork 92
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
unify harbor db and clair db password in first boot #1684
Conversation
# Set MySQL and Clair DB passwords on first boot | ||
configureHarborCfgOnce db_password "$(genPass)" | ||
configureHarborCfgOnce clair_db_password "$(genPass)" | ||
# Set Harbor DB and Clair DB passwords on first boot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens with an upgraded config? configureHarborCfgOnce
would not overwrite an existing managed config line so if after migration the db_password
or clair_db_password
were tagged with the managed by line, lines 143-144 would have no effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like these lines are tagged after upgrade https://github.com/vmware/vic-product/blob/master/installer/build/scripts/upgrade/upgrade-harbor.sh#L126
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this behavior acceptable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewtchin could I open anther PR to fix the upgrade issue later? It's because that we are still working on the implementation of DB migration script. It may take at least one sprint as the big change on Harbor DB in the next release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR could fix the harbor launch issue, and do not block vic CI.
(cherry picked from commit 49623c7)
(cherry picked from commit 49623c7)
(cherry picked from commit 49623c7)
As for Harbor DB migrates to pgsql, the clair DB needs to share the same password with harbor DB. This commit is to fix it in vic env.