Invalid gnocchi tmp dir ownership
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
Martin Mágr |
Bug Description
The directory /var/lib/
Relevant traceback:
2018-10-17 07:15:13,796 [277055] ERROR gnocchi.chef: Error processing new measures
Traceback (most recent call last):
File "/usr/lib/
for metric in metrics
File "/usr/lib/
self.
File "/usr/lib/
return self._store_
File "/usr/lib/
in six.iteritems(
File "/usr/lib/
return list(executor.
File "/usr/lib/
yield future.result()
File "/usr/lib/
return self.__get_result()
File "/usr/lib/
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/
return list(executor.
File "/usr/lib/
data)
File "/usr/lib/
delete=False)
File "/usr/lib64/
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
File "/usr/lib64/
fd = _os.open(file, flags, 0600)
OSError: [Errno 13] Permission denied: '/var/lib/
Changed in tripleo: | |
milestone: | none → stein-1 |
assignee: | nobody → Martin Mágr (mmagr) |
importance: | Undecided → Critical |
tags: | added: rocky-backport-potential |
Changed in tripleo: | |
status: | New → In Progress |
Changed in tripleo: | |
milestone: | stein-1 → stein-2 |
tags: | added: queens-backport-potential |
Reviewed: https:/ /review. openstack. org/611827 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=332dd89f47f dc223165f2564fa 28f723769ad411
Committed: https:/
Submitter: Zuul
Branch: master
commit 332dd89f47fdc22 3165f2564fa28f7 23769ad411
Author: Martin Magr <email address hidden>
Date: Fri Oct 19 12:11:17 2018 +0200
Ensure correct tmp ownership for Gnocchi
Directory /var/lib/ gnocchi/ tmp is created by gnocchi-upgrade
with root ownership. This patch ensures the directory is created
first with proper ownership.
Closes-Bug: #1799522 f4a606730f4758d 064af69b2aa
Change-Id: Iaf8e13490adffa