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

fix(osfingermap): avoid MaxPermSize on Amazon & Fedora 36 (use pillars_from_directories to fix CI) #125

Conversation

myii
Copy link
Member

@myii myii commented Apr 11, 2022

PR progress checklist (to be filled in by reviewers)

  • Changes to documentation are appropriate (or tick if not required)
  • Changes to tests are appropriate (or tick if not required)
  • Reviews completed

What type of PR is this?

Primary type

  • [build] Changes related to the build system
  • [chore] Changes to the build process or auxiliary tools and libraries such as documentation generation
  • [ci] Changes to the continuous integration configuration
  • [feat] A new feature
  • [fix] A bug fix
  • [perf] A code change that improves performance
  • [refactor] A code change that neither fixes a bug nor adds a feature
  • [revert] A change used to revert a previous commit
  • [style] Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)

Secondary type

  • [docs] Documentation changes
  • [test] Adding missing or correcting existing tests

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

Without this, the service doesn't start:

× tomcat.service - Apache Tomcat Web Application Container
     Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2022-04-11 15:28:05 UTC; 4min 9s ago
   Main PID: 538 (code=exited, status=1/FAILURE)

...: main class used: org.apache.catalina.startup.Bootstrap
...: flags used: -Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properti>
...: options used: -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io>
...: arguments used: start
...: NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL->
...: Unrecognized VM option 'MaxPermSize=256m'
...: Error: Could not create the Java Virtual Machine.
...: Error: A fatal exception has occurred. Program will exit.
...: tomcat.service: Main process exited, code=exited, status=1/FAILURE
...: tomcat.service: Failed with result 'exit-code'.

Pillar / config required to test the proposed changes

As provided in the test pillar files.

Debug log showing how the proposed changes work

As seen in the CI.

Documentation checklist

  • Updated the README (e.g. Available states).
  • Updated pillar.example.

Testing checklist

  • Included in Kitchen (i.e. under state_top).
  • Covered by new/existing tests (e.g. InSpec, Serverspec, etc.).
  • Updated the relevant test pillar.

Additional context

@myii myii requested a review from a team as a code owner April 11, 2022 18:48
myii added 3 commits April 11, 2022 20:12
The service doesn't start due to this:

```
× tomcat.service - Apache Tomcat Web Application Container
     Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2022-04-11 15:28:05 UTC; 4min 9s ago
   Main PID: 538 (code=exited, status=1/FAILURE)

...: main class used: org.apache.catalina.startup.Bootstrap
...: flags used: -Djava.awt.headless=true -Xmx128m -XX:MaxPermSize=256m -Dlog4j.configuration=file:/tmp/log4j.properti>
...: options used: -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io>
...: arguments used: start
...: NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL->
...: Unrecognized VM option 'MaxPermSize=256m'
...: Error: Could not create the Java Virtual Machine.
...: Error: A fatal exception has occurred. Program will exit.
...: tomcat.service: Main process exited, code=exited, status=1/FAILURE
...: tomcat.service: Failed with result 'exit-code'.
```
@myii myii force-pushed the fix/avoid-MaxPermSize-on-Amazon-and-Fedora-36 branch from e05d2a9 to e6fa640 Compare April 11, 2022 19:13
@myii myii merged commit 0223032 into saltstack-formulas:master Apr 11, 2022
@myii myii deleted the fix/avoid-MaxPermSize-on-Amazon-and-Fedora-36 branch April 11, 2022 20:37
@saltstack-formulas-travis

🎉 This PR is included in version 0.19.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants