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

unify harbor db and clair db password in first boot #1684

Merged
merged 1 commit into from
May 2, 2018

Conversation

wy65701436
Copy link
Contributor

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.

# 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
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this behavior acceptable?

Copy link
Contributor Author

@wy65701436 wy65701436 May 2, 2018

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.

Copy link
Contributor Author

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.

@andrewtchin andrewtchin merged commit 49623c7 into vmware:master May 2, 2018
zjs pushed a commit to zjs/vic-product that referenced this pull request Jun 20, 2018
zjs pushed a commit to zjs/vic-product that referenced this pull request Jun 20, 2018
zjs pushed a commit to zjs/vic-product that referenced this pull request Jun 22, 2018
zjs pushed a commit to zjs/vic-product that referenced this pull request Jun 23, 2018
zjs pushed a commit to zjs/vic-product that referenced this pull request Jun 23, 2018
zjs pushed a commit that referenced this pull request Jun 23, 2018
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.

3 participants