Description of problem: 2017-12-08 10:53:26.813 163375 ERROR gnocchi.storage._carbonara File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 468, in process_new_measures 2017-12-08 10:53:26.813 163375 ERROR gnocchi.storage._carbonara self._compute_and_store_timeseries(metric, measures) 2017-12-08 10:53:26.813 163375 ERROR gnocchi.storage._carbonara File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 499, in _compute_and_store_timeseries 2017-12-08 10:53:26.813 163375 ERROR gnocchi.storage._carbonara self._create_metric(metric) 2017-12-08 10:53:26.813 163375 ERROR gnocchi.storage._carbonara File "/usr/lib/python2.7/site-packages/gnocchi/storage/file.py", line 74, in _create_metric 2017-12-08 10:53:26.813 163375 ERROR gnocchi.storage._carbonara os.mkdir(path, 0o750) 2017-12-08 10:53:26.813 163375 ERROR gnocchi.storage._carbonara OSError: [Errno 13] Permission denied: '/var/lib/gnocchi/57d281f4-111e-4f22-b231-1d6a523ad790' 2017-12-08 10:53:26.813 163375 ERROR gnocchi.storage._carbonara 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara [-] Error processing new measures 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara Traceback (most recent call last): 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 468, in process_new_measures 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara self._compute_and_store_timeseries(metric, measures) 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 499, in _compute_and_store_timeseries 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara self._create_metric(metric) 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara File "/usr/lib/python2.7/site-packages/gnocchi/storage/file.py", line 74, in _create_metric 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara os.mkdir(path, 0o750) 2017-12-08 10:53:26.896 163388 ERROR gnocchi.storage._carbonara OSError: [Errno 13] Permission denied: '/var/lib/gnocchi/d5284435-a3d9-4758-9f30-36f74955a08c' 2 192.168.11.12:/NOCCHI_1 on /var/lib/gnocchi type nfs4 (rw,relatime,sync,vers=4.1,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.0.0.0,local_lock=none,addr=10.0.0.0) It's solved here: os-gnocchi: Introduce boolean for NFS usage https://github.com/redhat-openstack/openstack-selinux/commit/ce13ba72c9148791e32d7d54f7ffaf27c88bb76f Version-Release number of selected component (if applicable): OSP 11 How reproducible: always Steps to Reproduce: 1. mount a nfs volume on /var/lib/gnocchi 2. 3. Actual results: ERRORS Expected results: able to write Additional info:
Does it require to reboot the server in order to get the rules applied ? is relabel required ?
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0311