doesn't emit logs when setting file permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Undecided
|
Yamato Tanaka |
Bug Description
Description
===========
kolla sets file permissions at _set_properties() method, but no logs are emitted here.
https:/
~~~
def _merge_
if os.path.
if os.path.
if not os.path.
~~~
If the target file/directory already exist, kolla only copy permissions, but there will be no logs about the target file/directory
This issue can make it difficult to investigate the cause of issues which are caused by setting permissions.
For example, the following bug was caused by copying permissions from /var/lib/
https:/
How to reproduce it (minimal and precise):
==================
Run a container which contains kolla.
Then look at "podman/docker logs <container>"
Expected result
===============
Log messages are emitted when kolla tries to set file permissions like the example below
~~~
2022-02-
2022-02-
2022-02-
2022-02-
2022-02-
~~~
Actual result
=============
a log message is emitted when kolla tries to set file permissions.
~~~
2022-02-
2022-02-
~~~
Environment
===========
this issue was found in a stable-train-based deployment (RHOSP16.1)
Logs & Configs
==============
Nothing
Changed in kolla: | |
assignee: | nobody → Yamato Tanaka (yatanaka-1007) |
Fix proposed to branch: master /review. opendev. org/c/openstack /kolla/ +/835528
Review: https:/