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

Also pass omero.db.properties and omero.db.url to reindex #329

Merged
merged 2 commits into from
May 26, 2022

Conversation

chris-allan
Copy link
Member

Under certain conditions, in particular those where a specific sslmode 1 is required, omero.db.properties is an essential property that must be provided for the reindexing code to be able to communicate with the database.

Footnotes

  1. https://jdbc.postgresql.org/documentation/head/ssl-client.html

@chris-allan
Copy link
Member Author

@stick will validate this on our side. We have a user who has this requirement in production (sslmode=require) and currently can't reindex because of it.

Couple other thoughts which are possibly beyond the scope of this PR:

  1. If a user is making use of omero.db.url 1 instead of the individual properties reindexing won't work
  2. If omero.db.pass is not being provided on the command line I'm not sure how reindexing works if a password other than omero is being used (@stick and I will validate this)

Footnotes

  1. https://docs.openmicroscopy.org/omero/5.6.4/sysadmins/config.html#omero-db-url

Copy link
Member

@stick stick left a comment

Choose a reason for hiding this comment

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

tested internally and all seems to work as desired.
various db.properties are honored as expected.

@chris-allan
Copy link
Member Author

Also validated that omero.db.pass is provided via the JAVA_OPTS environment variable so we're all good there.

@sbesson sbesson added this to the 5.12.0 milestone May 26, 2022
Copy link
Member

@joshmoore joshmoore left a comment

Choose a reason for hiding this comment

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

👍

@joshmoore joshmoore merged commit 689a544 into ome:master May 26, 2022
Copy link
Member

@sbesson sbesson left a comment

Choose a reason for hiding this comment

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

Also tested omero admin reindex with a default server setting and confirmed the behavior is unafffected. Overall, the additions are sensible and this should be ready to include in the upcoming OMERO.py release. Is there a timeline for having this fix released from your side?

@chris-allan
Copy link
Member Author

Is there a timeline for having this fix released from your side?

None right now. We managed to work around the problem by forcing TLS 1.2 (which is incidentally what the user really wanted anyway).

@chris-allan chris-allan changed the title Also pass omero.db.properties to reindex Also pass omero.db.properties and omero.db.url to reindex May 27, 2022
@will-moore
Copy link
Member

FYI: this is now in the recent 5.12.0 release of omero-py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants