Activity log for bug #1248919

Date Who What changed Old value New value Message
2013-11-07 11:25:39 Juan J. Martínez bug added bug
2013-11-07 11:25:39 Juan J. Martínez attachment added setdefault for region = 1 when loading the ring https://bugs.launchpad.net/bugs/1248919/+attachment/3902298/+files/1.7-to-1.10.patch
2013-11-07 14:09:36 Juan J. Martínez swift: assignee Juan J. Martínez (jjmartinez)
2013-11-07 14:28:51 OpenStack Infra swift: status New In Progress
2013-11-07 15:33:02 Juan J. Martínez summary Error reading ring upgrading from 1.7 to 1.10 Error reading old-style pickled ring upgrading from 1.7 to 1.10
2013-11-07 15:33:25 Juan J. Martínez description I'm running 1.7.4 SAIO (Swift All In One) in Debian Squeeze and when I upgrade to 1.10.0 I get this error when different components try to load the ring: Traceback (most recent call last): File "/usr/bin/swift-container-replicator", line 23, in <module> run_daemon(ContainerReplicator, conf_file, **options) File "/usr/lib/pymodules/python2.6/swift/common/daemon.py", line 110, in run_daemon klass(conf).run(once=once, **kwargs) File "/usr/lib/pymodules/python2.6/swift/common/db_replicator.py", line 159, in __init__ self.ring = ring.Ring(swift_dir, ring_name=self.server_type) File "/usr/lib/pymodules/python2.6/swift/common/ring/ring.py", line 141, in __init__ self._reload(force=True) File "/usr/lib/pymodules/python2.6/swift/common/ring/ring.py", line 164, in _reload self._rebuild_tier_data() File "/usr/lib/pymodules/python2.6/swift/common/ring/ring.py", line 184, in _rebuild_tier_data for tier in tiers_for_dev(dev): File "/usr/lib/pymodules/python2.6/swift/common/ring/utils.py", line 26, in tiers_for_dev t1 = dev['region'] KeyError: 'region' (in this example, swift-container-replicator) I don't know if this upgrade path is supported (1.7 to 1.10), and this cluster has been upgraded several time (I think first version was Bexar!), but the problem can be fixed easily with the attached patch (applies to 1.10.0). I'm running 1.7.4 SAIO (Swift All In One) in Debian Squeeze and when I upgrade to 1.10.0 I get this error when different components try to load the ring: Traceback (most recent call last):   File "/usr/bin/swift-container-replicator", line 23, in <module>     run_daemon(ContainerReplicator, conf_file, **options)   File "/usr/lib/pymodules/python2.6/swift/common/daemon.py", line 110, in run_daemon     klass(conf).run(once=once, **kwargs)   File "/usr/lib/pymodules/python2.6/swift/common/db_replicator.py", line 159, in __init__     self.ring = ring.Ring(swift_dir, ring_name=self.server_type)   File "/usr/lib/pymodules/python2.6/swift/common/ring/ring.py", line 141, in __init__     self._reload(force=True)   File "/usr/lib/pymodules/python2.6/swift/common/ring/ring.py", line 164, in _reload     self._rebuild_tier_data()   File "/usr/lib/pymodules/python2.6/swift/common/ring/ring.py", line 184, in _rebuild_tier_data     for tier in tiers_for_dev(dev):   File "/usr/lib/pymodules/python2.6/swift/common/ring/utils.py", line 26, in tiers_for_dev     t1 = dev['region'] KeyError: 'region' (in this example, swift-container-replicator) I don't know if this upgrade path is supported (1.7 to 1.10), and this cluster has been upgraded several time (I think first version was Bexar!), but the problem can be fixed easily with the attached patch (applies to 1.10.0). UPDATE: seems that the problem is when loading an old-style pickled ring.
2013-11-08 00:51:15 OpenStack Infra swift: status In Progress Fix Committed
2013-12-03 17:11:38 OpenStack Infra bug watch added https://bugzilla.redhat.com/show_bug.cgi?id=1018042
2013-12-06 20:50:29 John Dickinson swift: milestone 1.11.0
2013-12-10 09:38:08 Thierry Carrez swift: status Fix Committed Fix Released