persistent directories do not match the desired directory rights
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Jose Luis Franco |
Bug Description
Most of the service templates create a persistent directory in the host where they run:
host_
- name: create persistent directories
file:
path: "{{ item.path }}"
state: directory
setype: "{{ item.setype }}"
- { 'path': /var/log/
- { 'path': /var/lib/rabbitmq, 'setype': container_file_t }
However, when checking the rights of the created directory, they don't seem to match with what is being specified in the directory creation:
(undercloud) [stack@undercloud-0 ~]$ sudo ls -larth /var/log/
total 84K
drwxr-x---. 20 root root 4.0K Mar 31 16:29 ..
-rw-r--r--. 1 42439 42439 45K Apr 1 00:01 <email address hidden>
-rw-r--r--. 1 42439 42439 198 Apr 1 00:01 rabbit@
-rw-r--r--. 1 42439 42439 0 Apr 1 00:01 rabbit@
-rw-r--r--. 1 42439 42439 325 Apr 2 00:01 <email address hidden>
drwxr-xr-x. 3 42439 42439 233 Apr 6 10:01 .
-rw-r--r--. 1 42439 42439 7.0K Apr 6 10:01 <email address hidden>
-rw-r--r--. 1 42439 42439 14K Apr 6 10:49 <email address hidden>
drwxr-xr-x. 2 42439 42439 99 Apr 6 12:18 log
/var/log/
It looks like the mode option wasn't taken into account at the time of invoking the file Ansible module.
tags: | added: queens-backport-potential stein-backport-potential train-backport-potential |
Changed in tripleo: | |
assignee: | Jose Luis Franco (jfrancoa) → Bogdan Dobrelya (bogdando) |
Changed in tripleo: | |
milestone: | ussuri-3 → ussuri-rc3 |
Changed in tripleo: | |
assignee: | Bogdan Dobrelya (bogdando) → Jose Luis Franco (jfrancoa) |
Fix proposed to branch: master /review. opendev. org/717861
Review: https:/