ccollicutt / swiftacular

Deploy OpenStack Swift with Ansible and Vagrant
BSD 2-Clause "Simplified" License
47 stars 13 forks source link

ring build fails on one host almost all the time #12

Closed ccollicutt closed 10 years ago

ccollicutt commented 10 years ago

Not sure why...some kind of race condition? Usually on in Ubuntu.

TASK: [storage | build object ring] ******************************************* 
changed: [192.168.100.202] => (item=1)
changed: [192.168.100.200] => (item=1)
changed: [192.168.100.201] => (item=1)
changed: [192.168.100.202] => (item=2)
failed: [192.168.100.201] => (item=2) => {"changed": true, "cmd": ["swift-ring-builder", "object.builder", "add", "r1z2-10.0.20.201:6000R10.0.30.201:6000/td2", "100"], "delta": "0:00:00.134528", "end": "2014-04-11 13:51:45.604004", "item": "2", "rc": 1, "start": "2014-04-11 13:51:45.469476"}
stderr: Traceback (most recent call last):
  File "/usr/bin/swift-ring-builder", line 776, in <module>
    builder = RingBuilder.load(argv[1])
  File "/usr/lib/python2.7/dist-packages/swift/common/ring/builder.py", line 1002, in load
    builder = pickle.load(open(builder_file, 'rb'))
EOFError
ccollicutt commented 10 years ago

Added serial option in site.yml for storage hosts. Should take care of this problem, though be a little slower to install.