-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #836 from paramite/OSPRH12089-OSPRH12088
Fix blocked update because of health checks deployment
- Loading branch information
Showing
19 changed files
with
215 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
- name: Gather user fact | ||
ansible.builtin.setup: | ||
gather_subset: | ||
- "!all" | ||
- "!min" | ||
- "user" | ||
when: | ||
- ansible_user is undefined | ||
|
||
- name: Ensure base directory for health checks exists | ||
become: true | ||
ansible.builtin.file: | ||
path: /var/lib/openstack/healthchecks | ||
state: directory | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0755' | ||
|
||
- name: Deploy iscsi health check script | ||
become: true | ||
ansible.builtin.copy: | ||
src: healthchecks/iscsid/ | ||
dest: "/var/lib/openstack/healthchecks/iscsid" | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0700' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
- name: Gather user fact | ||
ansible.builtin.setup: | ||
gather_subset: | ||
- "!all" | ||
- "!min" | ||
- "user" | ||
when: | ||
- ansible_user is undefined | ||
|
||
- name: Ensure base directory for health checks exists | ||
become: true | ||
ansible.builtin.file: | ||
path: /var/lib/openstack/healthchecks | ||
state: directory | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0755' | ||
|
||
- name: Deploy logrotate_crond health check script | ||
become: true | ||
ansible.builtin.copy: | ||
src: healthchecks/logrotate_crond/ | ||
dest: /var/lib/openstack/healthchecks/logrotate_crond | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0700' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
- name: Gather user fact | ||
ansible.builtin.setup: | ||
gather_subset: | ||
- "!all" | ||
- "!min" | ||
- "user" | ||
when: | ||
- ansible_user is undefined | ||
|
||
- name: Ensure base directory for health checks exists | ||
become: true | ||
ansible.builtin.file: | ||
path: /var/lib/openstack/healthchecks | ||
state: directory | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0755' | ||
|
||
- name: Deploy multipathd health check script | ||
become: true | ||
ansible.builtin.copy: | ||
src: healthchecks/multipathd/ | ||
dest: /var/lib/openstack/healthchecks/multipathd | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0700' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
- name: Gather user fact | ||
ansible.builtin.setup: | ||
gather_subset: | ||
- "!all" | ||
- "!min" | ||
- "user" | ||
when: | ||
- ansible_user is undefined | ||
|
||
- name: Ensure base directory for health checks exists | ||
become: true | ||
ansible.builtin.file: | ||
path: /var/lib/openstack/healthchecks | ||
state: directory | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0755' | ||
|
||
- name: Deploy ovn_metadata_agent health check script | ||
become: true | ||
ansible.builtin.copy: | ||
src: healthchecks/ovn_metadata_agent/ | ||
dest: /var/lib/openstack/healthchecks/ovn_metadata_agent | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0700' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
- name: Gather user fact | ||
ansible.builtin.setup: | ||
gather_subset: | ||
- "!all" | ||
- "!min" | ||
- "user" | ||
when: | ||
- ansible_user is undefined | ||
|
||
- name: Ensure base directory for health checks exists | ||
become: true | ||
ansible.builtin.file: | ||
path: /var/lib/openstack/healthchecks | ||
state: directory | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0755' | ||
|
||
- name: Deploy ovn_controller health check script | ||
become: true | ||
ansible.builtin.copy: | ||
src: healthchecks/ovn_controller/ | ||
dest: /var/lib/openstack/healthchecks/ovn_controller | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0700' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
|
||
- name: Deploy health check script | ||
ansible.builtin.copy: | ||
src: "healthchecks/{{ edpm_telemetry_healthcheck_sources[exporter] }}/" | ||
dest: "/var/lib/openstack/healthchecks/{{ exporter }}" | ||
setype: container_file_t | ||
owner: "{{ ansible_user | default(ansible_user_id) }}" | ||
group: "{{ ansible_user | default(ansible_user_id) }}" | ||
mode: '0700' | ||
become: true | ||
|
||
- name: Deploy exporter container | ||
ansible.builtin.include_role: | ||
name: osp.edpm.edpm_container_manage | ||
vars: | ||
edpm_container_manage_config: "{{ edpm_telemetry_config_dest }}" | ||
edpm_container_manage_healthcheck_disabled: true | ||
edpm_container_manage_config_patterns: "{{ exporter }}.json" | ||
edpm_container_manage_clean_orphans: false | ||
|
||
- name: Restart exporter container | ||
become: true | ||
ansible.builtin.systemd: | ||
state: restarted | ||
name: "edpm_{{ exporter }}.service" |
Oops, something went wrong.