Unable to create containers in Swift error "The request you have made requires authentication"
Issue
- After deploying Swift cluster according to the documentation, I am unable to create containers from the Horizon dashboard.
- The following error message shows up in the
/var/log/swift/swift.logfile on the Controller node:
Dec 30 07:37:53 scloudctl01 proxy-server: STDERR: WARNING:swift:Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}} (txn: txe6cc0763bdfd4452b8106-005683d021)
- At the same time the following error message shows up in the
/var/log/swift/swift.logfile on one of the Storage nodes:
Dec 30 07:38:56 scloudobj01 object-replicator: Starting object replication pass.
Dec 30 07:38:56 scloudobj01 object-replicator: ERROR creating /srv/node/sda/objects: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/obj/replicator.py", line 492, in build_replication_jobs#012 mkdirs(obj_path)#012 File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 874, in mkdirs#012 os.makedirs(path)#012 File "/usr/lib64/python2.7/os.py", line 157, in makedirs#012 mkdir(name, mode)#012OSError: [Errno 13] Permission denied: '/srv/node/sda/objects'
Dec 30 07:38:56 scloudobj01 object-replicator: ERROR creating /srv/node/sdb/objects: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/obj/replicator.py", line 492, in build_replication_jobs#012 mkdirs(obj_path)#012 File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 874, in mkdirs#012 os.makedirs(path)#012 File "/usr/lib64/python2.7/os.py", line 157, in makedirs#012 mkdir(name, mode)#012OSError: [Errno 13] Permission denied: '/srv/node/sdb/objects'
Dec 30 07:38:56 scloudobj01 object-replicator: Nothing replicated for 0.00995492935181 seconds.
Dec 30 07:38:56 scloudobj01 object-replicator: Object replication complete. (0.00 minutes)
Dec 30 07:38:56 scloudobj01 object-replicator: Exception dumping recon cache: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 2552, in dump_recon_cache#012 with lock_file(cache_file, lock_timeout, unlink=False) as cf:#012 File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__#012 return self.gen.next()#012 File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 1835, in lock_file#012 fd = os.open(filename, flags)#012OSError: [Errno 13] Permission denied: '/var/cache/swift/object.recon'
Dec 30 07:38:58 scloudobj01 object-auditor: Exception dumping recon cache: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 2552, in dump_recon_cache#012 with lock_file(cache_file, lock_timeout, unlink=False) as cf:#012 File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__#012 return self.gen.next()#012 File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 1835, in lock_file#012 fd = os.open(filename, flags)#012OSError: [Errno 13] Permission denied: '/var/cache/swift/object.recon'
Dec 30 07:38:58 scloudobj01 object-auditor: Exception dumping recon cache: #012Traceback (most recent call last):#012 File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 2552, in dump_recon_cache#012 with lock_file(cache_file, lock_timeout, unlink=False) as cf:#012 File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__#012 return self.gen.next()#012 File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 1835, in lock_file#012 fd = os.open(filename, flags)#012OSError: [Errno 13] Permission denied: '/var/cache/swift/object.recon'
Dec 30 07:38:58 scloudobj01 object-auditor: Begin object audit "forever" mode (ZBF)
Dec 30 07:38:58 scloudobj01 object-auditor: ERROR: Unable to run auditing: [Errno 13] Permission denied: '/srv/node/sdb'
Dec 30 07:38:58 scloudobj01 object-auditor: Begin object audit "forever" mode (ALL)
Dec 30 07:38:58 scloudobj01 object-auditor: ERROR: Unable to run auditing: [Errno 13] Permission denied: '/srv/node/sdb'
Dec 30 07:38:59 scloudobj01 account-server: 10.60.201.11 - - [30/Dec/2015:12:38:59 +0000] "HEAD /sdb/51/AUTH_5dd11780ffd746e697c02636aa1f7593" 404 - "HEAD http://10.60.118.11:8080/v1/AUTH_5dd11780ffd746e697c02636aa1f7593" "txe6cc0763bdfd4452b8106-005683d021" "proxy-server 68662" 0.0002 "-" 4320 -
Dec 30 07:38:59 scloudobj01 account-server: 10.60.201.11 - - [30/Dec/2015:12:38:59 +0000] "HEAD /sda/51/AUTH_5dd11780ffd746e697c02636aa1f7593" 404 - "HEAD http://10.60.118.11:8080/v1/AUTH_5dd11780ffd746e697c02636aa1f7593" "txe6cc0763bdfd4452b8106-005683d021" "proxy-server 68662" 0.0002 "-" 4311 -
Environment
- Red Hat OpenStack 7.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
