list_parts failed before executing rebalance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Hisashi Osanai |
Bug Description
[Description]
swift-ring-builder list_parts failed before executing swift-ring-builder
rebalance
I think there is no _replica2part2dev object before executing rebalance
in the following code L322.
321 partition_count = {}
322 for replica in builder.
323 for partition, device in enumerate(replica):
324 if device in devs:
325 if partition not in partition_count:
326 partition_
327 partition_
[Version details]
latest master
[Crystal clear details to reproduce the bug]
$ swift-ring-builder account.builder create 3 1 0
$ swift-ring-builder account.builder add --region 1 --zone 1 --ip 172.17.16.4 --port 6002 --replication-ip 172.17.17.4 --replication-port 7002 --device device1 --weight 100
$ swift-ring-builder account.builder list_parts 172.17.16.4
[Test environment details]
-
[Actual results]
$ swift-ring-builder account.builder list_parts 172.17.16.4
Traceback (most recent call last):
File "/usr/local/
exec(
File "/opt/stack/
sys.
File "/opt/stack/
Commands.
File "/opt/stack/
sorted_
File "/opt/stack/
for replica in builder.
TypeError: 'NoneType' object is not iterable
[Expected results]
exit normally without any partition info.
Changed in swift: | |
assignee: | nobody → Hisashi Osanai (osanai-hisashi) |
Changed in swift: | |
milestone: | none → 2.2.1 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/139523
Review: https:/