Skip to content

Commit cd58db6

Browse files
yatanaka-1007yoctozepto
authored andcommitted
Emit log when copying file/directory permissions
Currently, kolla sets file permissions at _set_properties_from_file() method, but no logs are emitted here. This can make it difficult to investigate the cause of issues which are caused by setting permissions. This patch makes _set_properties_from_file() output a log. Closes-Bug: #1966825 Change-Id: I91116931aa30fd2c5e51ed1ac04663fcfa4a5f36 (cherry picked from commit 4c071fc)
1 parent 066851b commit cd58db6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/base/set_configs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def _set_properties(self, source, dest):
120120
self._set_properties_from_conf(dest)
121121

122122
def _set_properties_from_file(self, source, dest):
123+
LOG.info('Copying permissions from %s onto %s', source, dest)
123124
shutil.copystat(source, dest)
124125
stat = os.stat(source)
125126
os.chown(dest, stat.st_uid, stat.st_gid)

0 commit comments

Comments
 (0)