Merged in ITPLAT-399/fix-thread-dump-problem (pull request #121)

ITPLAT-399 Stop systemd-cleanup removing /tmp/java_pid* files required for thread dumps

Approved-by: Ben Partridge
Approved-by: Adam Brokes
This commit is contained in:
Denise Unterwurzacher
2021-01-13 23:12:38 +00:00
3 changed files with 20 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ boto3 = "==1.9.242"
botocore = "==1.12.242"
[dev-packages]
molecule = "==2.20.2"
molecule = "==3.2.2"
docker = "==4.1.0"
six = "*"
taskcat = "*"

View File

@@ -0,0 +1,3 @@
# Exclude java-hooks
x /tmp/hsperfdata_*
x /tmp/.java_pid*

View File

@@ -26,3 +26,19 @@
uid: "{{ atl_product_user_uid }}"
group: "{{ atl_product_user }}"
comment: "Product runtime user"
- name: Stop systemd-cleanup deleting the jvm socket file
copy:
src: java.conf
dest: "/usr/lib/tmpfiles.d/java.conf"
owner: root
group: root
mode: "644"
register: systemd_config_changed
- name: Force systemd to reload daemon configuration
systemd:
daemon_reload: yes
when:
- systemd_config_changed is defined
- molecule_yml is not defined # molecule cannot run systemctl commands and notest doesn't work for handlers