swift permission error in multinode setup

Bug #1537544 reported by Qiu Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Qiu Yu

Bug Description

Steps to reproduce:

After initial setup
$ swift post testbucket

swift-account-server: ERROR __call__ error with PUT /sdb2/233/AUTH_2f24212831f64391adbcf0f90154aead : #012Traceback (most recent call last):#012 File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/swift/account/server.py", line 272, in __call__#012 res = method(req)#012 File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/swift/common/utils.py", line 2656, in wrapped#012 return func(*a, **kw)#012 File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/swift/common/utils.py", line 1240, in _timing_stats#012 resp = func(ctrl, *args, **kwargs)#012 File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/swift/account/server.py", line 142, in PUT#012 broker.initialize(timestamp.internal)#012 File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/swift/common/db.py", line 238, in initialize#012 mkdirs(self.db_dir)#012 File "/var/lib/kolla/venv/local/lib/python2.7/site-packages/swift/common/utils.py", line 907, in mkdirs#012 os.makedirs(path)#012 File "/var/lib/kolla/venv/lib/python2.7/os.py", line 150, in makedirs#012 makedirs(head, mode)#012 File "/var/lib/kolla/venv/lib/python2.7/os.py", line 150, in makedirs#012 makedirs(head, mode)#012 File "/var/lib/kolla/venv/lib/python2.7/os.py", line 150, in makedirs#012 makedirs(head, mode)#012 File "/var/lib/kolla/venv/lib/python2.7/os.py", line 157, in makedirs#012 mkdir(name, mode)#012OSError: [Errno 13] Permission denied: '/srv/node/sdb2/accounts' (txn: txa7395ad4f66248f0bdf46-0056a404e0)

Qiu Yu (unicell)
Changed in kolla:
assignee: nobody → Qiu Yu (unicell)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/274215

Changed in kolla:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/274215
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=b209da1306c454366210e88f5a7a0e14bdd88fc4
Submitter: Jenkins
Branch: master

commit b209da1306c454366210e88f5a7a0e14bdd88fc4
Author: Qiu Yu <email address hidden>
Date: Fri Jan 29 12:06:31 2016 -0700

    Fix Swift for multinode P+ACO deployment

    Current Swift playbook is based on the preassumption of AIO setup.
    However, if one goes with default multinode setup
    (ansible/inventory/multinode), it follows the P + ACO deployment model,
    which proxy-server runs on controller nodes where ACO
    (account/container/object services) run on storage nodes.

    It will break because swift proxy-server no longer has access (it
    shouldn't have) to /srv/node path. This change ensure disk mounting part
    only happens on storage node. It also moves chown from proxy-server
    Dockerfile to rsyncd because no matter with PACO, P+ACO or P+A+C+O
    model, rsyncd is always running on each storage node.

    Change-Id: I3aa20454902caa9c84d3901bb91e4e4c93ac5f34
    Partially-Implements: blueprint swift-physical-disk
    Closes-Bug: #1537544

Changed in kolla:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.