Skip to content

Conversation

@mamelara
Copy link
Contributor

@mamelara mamelara commented Sep 24, 2020

Tomcat9 Upgrade for Metacat 2.12.3

Description

As per our discussion with NCEAS, it has been suggested that our version of tomcat be upgraded to either 8 or 9 since those include log rotation capabilities. We can leverage these capabilities to mitigate the size of catalina.out which has been collecting all the stdout and stderr from the metacat application. This PR upgrades the docker image of metacat to use the base tomcat:9-jdk8 and includes configuration changes to conf/server.xml since changes were made to the AJP connector which metacat uses.

Implements ess-dive/ess-dive-project#153

Type of change

Please delete options that are not relevant.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit tests
  • Integration tests
  • Other - add any additional tests here

Testing was done by building the image in essdive-appstack and running ./build.sh metacat 2.12.3 to build the image.
Then the changes were deployed using the ess-dive-catalog provision/docker-compose.yml file included in that repository.

Once the services are up, go to localhost and check to see that a 503 error does not appear. A 503 error would indicate that metacatui cannot get a connection to metacat.

After the services are up and metacatui and metacat are connected, run the selenium tests in ess-dive-catalog.

Test Configuration

  • Metacat Version: 2.12.3
  • Python Version: 3.7

Copy link
Member

@vchendrix vchendrix left a comment

Choose a reason for hiding this comment

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

The commits need to be sqashed.

Closes ess-dive/ess-dive-project#153

Upgrades tomcat7 to tomcat9 and includes the required configuration
changes needed. The AJP connector had changes made to it since tomcat7
which include allowedRequestAttributesPattern, default address is the
loopback address and other changes described here:

https://tomcat.apache.org/migration-9.html

The changes were made accordingly so that metacat and metacatui can
connect with each other as shown in the server.xml.patch file.

Use tomcat with jdk8

Metacat has compatability problems with jdk11. It has been suggested by
the NCEAS group to downgrade and use Java 8.

Add server.xml with configuration changes

The configuration changes include some additional parameters to get the
AJP connector working in Tomcat 9 since some changes were made.

Add patch file for server
@mamelara mamelara force-pushed the issue_153_upgrade_metacat_tomcat9 branch from 9c7e716 to 1851d21 Compare September 25, 2020 01:04
@mamelara
Copy link
Contributor Author

done!

Copy link
Member

@vchendrix vchendrix left a comment

Choose a reason for hiding this comment

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

Ran selenium tests, toolset tests and package services tests. I finished successfully. Looks great.

@vchendrix vchendrix merged commit 3e1c20c into master Sep 25, 2020
@vchendrix vchendrix deleted the issue_153_upgrade_metacat_tomcat9 branch September 25, 2020 04:37
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.

3 participants