[Openstack] [Swift] Bug: swift-ring-builder <builder file> set_weight doesn't work

Alexandr Porunov alexandr.porunov at gmail.com
Sat Jan 28 21:33:27 UTC 2017


Hello,

I can't change a weight of the device.
Here is a list of my devices:

Devices:    id  region  zone      ip address  port  replication ip
 replication port      name weight partitions balance meta
             0       1     1           host1  6000           host1
     6000        d1 1000.00       1024    0.00 bla bla1 bla2
             1       1     1           host1  6000           host1
     6000        d2 1000.00       1024    0.00 bla bla1 bla2
             2       1     1           host1  6000           host1
     6000        d3 1000.00       1024    0.00 bla bla1 bla2

Here is what I tried to change a weight:
swift-ring-builder object.builder set_weight --region 1 --zone 1 --ip host1
--port 6000 --replication-ip host1 --replication-port 6000 --device d1
--meta "bla bla1 bla2" --weight 1000

swift-ring-builder object.builder set_weight r1z1-host1:6000Rhost1:6000
d1_"bla bla1 bla2" 2000

In both cases it doesn't work and shows the next information:

swift-ring-builder <builder_file> set_weight <search-value> <weight>

    [<search-value> <weight] ...

    [--yes]



or



swift-ring-builder <builder_file> set_weight

    --region <region> --zone <zone> --ip <ip or hostname> --port <port>

    --replication-ip <r_ip or r_hostname> --replication-port <r_port>

    --device <device_name> --meta <meta> --weight <weight>

    [--yes]



    Where <r_ip>, <r_hostname> and <r_port> are replication ip, hostname

    and port.

    Any of the options are optional in both cases.



    Resets the devices' weights. No partitions will be reassigned to or
from
    the device until after running 'rebalance'. This is so you can make

    multiple device changes and rebalance them all just once.



    Option --yes assume a yes response to all questions.


Please, correct me if it is my fault.

Best regards,
Alexandr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170128/6173a78c/attachment.html>


More information about the Openstack mailing list