Oracle OpenStack 4.0.1: Create a Backup from Volume on NFS Fails: "Exception during message handling: OSError: [Errno 13] Permission denied"

(Doc ID 2400278.1)

Last updated on MAY 30, 2018

Applies to:

Oracle OpenStack for Oracle Linux - Version OpenStack 4.0.1 and later
Linux x86-64

Symptoms

Creating a backup from volume on NFS fails, error in cinder-backup.log:


# cat /var/lib/docker/volumes/kolla_logs/_data/cinder/cinder-backup.log
(snip)
2018-05-18 03:18:01.312 1 INFO cinder.backup.manager [req-86eb8f12-052d-4dc5-b6a7-676622caeb12 cf9a45605c3c4fb093539eacd0b1fb52 0d594a9ace7e48e7ad29e0af01bdcebb - default default] Create backup started, backup: 9d05ed6e-7a81-406b-bff8-916cccd100b4 volume: eadff391-b5a8-4986-89c5-c2911abef4dc.
2018-05-18 03:18:01.375 1 INFO os_brick.remotefs.remotefs [req-86eb8f12-052d-4dc5-b6a7-676622caeb12 cf9a45605c3c4fb093539eacd0b1fb52 0d594a9ace7e48e7ad29e0af01bdcebb - default default] Already mounted: /var/lib/cinder/backup/670d6a643615d0c2e61671377dfb35db

2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server [req-86eb8f12-052d-4dc5-b6a7-676622caeb12 cf9a45605c3c4fb093539eacd0b1fb52 0d594a9ace7e48e7ad29e0af01bdcebb - default default] Exception during message handling: OSError: [Errno 13] Permission denied: '/var/lib/cinder/backup/670d6a643615d0c2e61671377dfb35db/9d'

2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 160, in _process_incoming
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/backup/manager.py", line 358, in create_backup
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server self._update_backup_error(backup, six.text_type(err))
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server self.force_reraise()
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/backup/manager.py", line 347, in create_backup
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server updates = self._run_backup(context, backup, volume)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/backup/manager.py", line 409, in _run_backup
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server backup, device_file)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/backup/chunkeddriver.py", line 460, in backup
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server volume_size_bytes) = self._prepare_backup(backup)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/backup/chunkeddriver.py", line 286, in _prepare_backup
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server container = self._create_container(backup)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/backup/chunkeddriver.py", line 185, in _create_container
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server self.put_container(backup.container)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/backup/drivers/posix.py", line 98, in put_container
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server os.makedirs(path)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib64/python2.7/os.py", line 150, in makedirs
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server makedirs(head, mode)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib64/python2.7/os.py", line 150, in makedirs
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server makedirs(head, mode)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib64/python2.7/os.py", line 157, in makedirs
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server mkdir(name, mode)
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server OSError: [Errno 13] Permission denied: '/var/lib/cinder/backup/670d6a643615d0c2e61671377dfb35db/9d'
2018-05-18 03:18:18.954 1 ERROR oslo_messaging.rpc.server

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms