esctl
esctl copied to clipboard
Discrepancy between transient, persistent and default values
The value returned might sometimes be the default one while there is one defined in either persistent or transient :
(esctl foobar) cluster routing allocation enable all
Changing cluster routing allocation policy (cluster.routing.allocation.enable) to : all
{'acknowledged': True, 'persistent': {}, 'transient': {'cluster': {'routing': {'allocation': {'enable': 'all'}}}}}
(esctl foobar) cluster routing allocation enable --persistent none
Changing cluster routing allocation policy (cluster.routing.allocation.enable) to : none
{'acknowledged': True, 'persistent': {'cluster': {'routing': {'allocation': {'enable': 'none'}}}}, 'transient': {}}
(esctl foobar) cluster routing allocation enable
all
(esctl foobar) cluster routing allocation enable --persistent
none
cluster routing allocation enable
without parameter should return none
but returns the default one : all