My solution is that rebuild admin client inside trove.guestagent.datastore.experimental.redis.service.RedisApp#apply_overrides, since using configuration group to enable redis authentication may call this method(actually, I'm not sure). Here is my solution:
```
...
REBUILT_NEEDED_CONFIGS = [u'requirepass', ]
...
def apply_overrides(self, client, overrides):
for prop_name, prop_args in overrides.items(): args_string = self._join_lists( self._value_converter.to_strings(prop_args), ' ') client.config_set(prop_name, args_string)
if prop_name in REBUILT_NEEDED_CONFIGS: self._rebuild_admin_client() client = self.admin
```
In my implementation of redis root-enable, I have to rebuild admin client to get CONFIG SET rename, also it can solve this problem I think. I am going to organize my code and then commit some patch sets for this bp[1]. Specs about this bp is here [2]. That would be great if you could help review this bp and spec.
My solution is that rebuild admin client inside trove.guestagen t.datastore. experimental. redis.service. RedisApp# apply_overrides , since using configuration group to enable redis authentication may call this method(actually, I'm not sure). Here is my solution: NEEDED_ CONFIGS = [u'requirepass', ] (self, client, overrides):
args_ string = self._join_lists(
self. _value_ converter. to_strings( prop_args) , ' ')
client. config_ set(prop_ name, args_string) NEEDED_ CONFIGS:
self. _rebuild_ admin_client( )
client = self.admin
```
...
REBUILT_
...
def apply_overrides
for prop_name, prop_args in overrides.items():
if prop_name in REBUILT_
```
In my implementation of redis root-enable, I have to rebuild admin client to get CONFIG SET rename, also it can solve this problem I think. I am going to organize my code and then commit some patch sets for this bp[1]. Specs about this bp is here [2]. That would be great if you could help review this bp and spec.
[1]https:/ /blueprints. launchpad. net/trove/ +spec/root- enable- in-redis /review. openstack. org/#/c/ 514940/
[2]https:/