Couple of things noticed the way glluster-swift-gen-builder works with gluster volume names :
Normal account name : "test"
[root@cbox gluster]# gluster-swift-gen-builders -v test
WARNING: No region specified for z1-127.0.0.1:6012/test_. Defaulting to region 1.
Device d0r1z1-127.0.0.1:6012R127.0.0.1:6012/test_"" with 100.0 weight got id 0
Reassigned 2 (100.00%) partitions. Balance is now 0.00.
account.builder, build version 1
2 partitions, 1.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id region zone ip address port replication ip replication port name weight partitions balance meta
0 1 1 127.0.0.1 6012 127.0.0.1 6012 test 100.00 2 0.00
WARNING: No region specified for z1-127.0.0.1:6011/test_. Defaulting to region 1.
Device d0r1z1-127.0.0.1:6011R127.0.0.1:6011/test_"" with 100.0 weight got id 0
Reassigned 2 (100.00%) partitions. Balance is now 0.00.
container.builder, build version 1
2 partitions, 1.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id region zone ip address port replication ip replication port name weight partitions balance meta
0 1 1 127.0.0.1 6011 127.0.0.1 6011 test 100.00 2 0.00
WARNING: No region specified for z1-127.0.0.1:6010/test_. Defaulting to region 1.
Device d0r1z1-127.0.0.1:6010R127.0.0.1:6010/test_"" with 100.0 weight got id 0
Reassigned 2 (100.00%) partitions. Balance is now 0.00.
object.builder, build version 1
2 partitions, 1.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id region zone ip address port replication ip replication port name weight partitions balance meta
0 1 1 127.0.0.1 6010 127.0.0.1 6010 test 100.00 2 0.00
Ring files are prepared in /etc/swift. Please restart object store services
But in a case of gluster volume having underscores in it :
Couple of things noticed the way glluster- swift-gen- builder works with gluster volume names :
Normal account name : "test"
[root@cbox gluster]# gluster- swift-gen- builders -v test 0.0.1:6012/ test_. Defaulting to region 1. 127.0.0. 1:6012R127. 0.0.1:6012/ test_"" with 100.0 weight got id 0 0.0.1:6011/ test_. Defaulting to region 1. 127.0.0. 1:6011R127. 0.0.1:6011/ test_"" with 100.0 weight got id 0 0.0.1:6010/ test_. Defaulting to region 1. 127.0.0. 1:6010R127. 0.0.1:6010/ test_"" with 100.0 weight got id 0
WARNING: No region specified for z1-127.
Device d0r1z1-
Reassigned 2 (100.00%) partitions. Balance is now 0.00.
account.builder, build version 1
2 partitions, 1.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id region zone ip address port replication ip replication port name weight partitions balance meta
0 1 1 127.0.0.1 6012 127.0.0.1 6012 test 100.00 2 0.00
WARNING: No region specified for z1-127.
Device d0r1z1-
Reassigned 2 (100.00%) partitions. Balance is now 0.00.
container.builder, build version 1
2 partitions, 1.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id region zone ip address port replication ip replication port name weight partitions balance meta
0 1 1 127.0.0.1 6011 127.0.0.1 6011 test 100.00 2 0.00
WARNING: No region specified for z1-127.
Device d0r1z1-
Reassigned 2 (100.00%) partitions. Balance is now 0.00.
object.builder, build version 1
2 partitions, 1.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices: id region zone ip address port replication ip replication port name weight partitions balance meta
0 1 1 127.0.0.1 6010 127.0.0.1 6010 test 100.00 2 0.00
Ring files are prepared in /etc/swift. Please restart object store services
But in a case of gluster volume having underscores in it :
volume name : a_b