-
Notifications
You must be signed in to change notification settings - Fork 14
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
Update omero_ms_image_region version #443
Conversation
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.
Running this against either test125
(where the change has been applied manually?) or prod126
in dry-run mode, Ansible does not plan to apply any change to the NGINX configuration.
This is a problem in the logic of the Ansible role which skips the NGINX configuration modification if an upstream block for the micro-service is found - https://github.com/ome/ansible-role-omero-ms-image-region/blob/f9629d454d802f4fe614cd2aeb3a67cb60f43e35/tasks/update_nginx_config.yml#L22.
In practice, this ome/ansible-role-omero-ms-image-region#6 (or any change to the NGINX configuration) will not apply out of the box on existing deployments.
The microservice is integrated with the OMERO-Web, it updates the existing Web Nginx configuration file(omero-web.conf). |
Thanks, this is consistent with the issue described in #436 i.e. the roles are effectively coupled and cannot be run in isolation. Another issue highlighted by this testing is that we cannot reliably use the output of the |
The configuration changes on the |
Tried to deploy https://github.com/IDR/deployment/blob/master/ansible/idr-omero-web.yml followed by https://github.com/IDR/deployment/blob/master/ansible/idr-omero-readonly.yml against After investigation this is related to the fact Java 17 was installed on these systems on January 9th
but the server configuration was not patched to work with this version (see ome/openmicroscopy#6383 for more details). This issue will need to be resolved in order to retest the deployment |
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.
Having heard no objection, JDK 17 was uninstalled from the OMERO servers of the test125
environment
sbesson@test125-proxy ~]$ for i in omeroreadwrite omeroreadonly-1 omeroreadonly-2 omeroreadonly-3 omeroreadonly-4; do ssh $i sudo dnf remove java-17-openjdk* -y; done
The playbooks were re-executed including the changes from this PR
changed: [cd535951-ff64-4325-a847-d10bd38a0889]
--- before: /etc/nginx/conf.d/omero-web.conf
+++ after: /Users/sbesson/.ansible/tmp/ansible-local-23196kjbz15lm/tmpy6_hi6c_/omero-web.conf.j2
@@ -1,3 +1,9 @@
+proxy_cache_path /var/cache/nginx/omero-ms-image-region levels=1:2 keys_zone=ms_cache:10m max_size=25m inactive=120m use_temp_path=off;
+
+upstream image_region_backend {
+ server 127.0.0.1:8081 fail_timeout=0 max_fails=0;
+}
+
As there is no good way to have a minimal diff of the changes created by this PR, I have no objection to seeing this deployed in prod126
. In the meantime, if any testing must be performed, this can be scheduled. I'll add this for discussion at next Monday's IDR meeting.
Discussed earlier at the weekly IDR meeting. NO objection was raised against deploying these changes against |
Now deployed on |
This PR updates the omero_ms_image_region ansible role version