-
Notifications
You must be signed in to change notification settings - Fork 53
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
fits ansible separation into separate hosts #162
base: dev
Are you sure you want to change the base?
Conversation
I have tested the single server deployment (Ubuntu) for this PR and it appears to function as expected. I added a JPEG media (as an Original, Preservation Master File) to the repository item I created and a corresponding FITS XML file was created. |
When we have the Crayfits on one server and Tomcat/Fedora/Karaf on another server, getting the following error. It is sending to the right server. The end points seems to be running as expected: "The Fits microservice is up and running.". Thus not sure where it is failing! No error longs for fits.
|
Looks like you have the web service on the Karaf box, so you'll need to change .env on the microservice to point to that instance. Be default the microservice assumes it can find the web service at localhost:8080 |
@ajstanley that was the issue. I am going to update the https://github.com/Natkeeran/ansible-role-crayfish PR to make that a variable. |
Templated it out the env config file. Seems to work. For review. Thanks. |
What's the status of this PR at the moment? It is of interest to the Multi-Tenancy Interest Group. |
This all looks good (and it works on aa local build) but it will soon be largely redundant. The plan is to move the generation of the fits xml from a web service to an executable held within the microservice. I hope to be able to get to that in the next few weeks. |
GitHub Issue: (link)
Release pull requests, etc.)
Islandora/documentation#1429
What does this Pull Request do?
Currently, the ansible-role-fits is written assuming a single server deployment. Specifically, it deploys the Islandora Module (Webserver), Microservice (Crayfish?), and the FITS service (Tomcat) into Tomcat server (https://github.com/Islandora-Devops/islandora-playbook/blob/dev/tomcat.yml#L24).
This causes issues for two server/multi server deployments, and will cause an issue for ISLE 8 development.
This PR separates the ansible-role-fits into Webserver, Crayfish and Tomcat host tasks.
What's new?
As noted above, separation of above noted ansible-role-fits role into separate target hosts.
How should this be tested?
This PR is intended for testing. The PRs to roles will need to be merged separately, then this PR updated before it can be merged.
Single Server Testing
vagrant up.
Multi Server Testing
(One option)
server 1: webserver + database + crayfish
server 2: karaf + database + tomcat + solr
Additional Notes:
I am still testing this PR in a multi server setup. Running into some issues :(
Interested parties
Tag (@ mention) interested parties or, if unsure, @Islandora-Devops/committers