Loop through pools and enable allow_ec_optimizations on
any EC pools with optimizations disabled.
"""
- for pool in self.ceph_manager.pools:
+ self.log('Inside do_enable_ec_opts')
+ for pool in self.list_pools():
opts_enabled = self.get_pool_property(self, pool, 'allow_ec_optimizations')
# Pools with opts enabled will return 'true', non ec pools will return an error
if opts_enabled is 'false':
set_pool_property(self, pool, 'allow_ec_optimizations', 'true')
- self.log('Enabled ec optimizations on pool %s' % pool)
+ self.log('do_enable_ec_opts: Enabled ec optimizations on pool %s' % pool)
else:
- self.log('Unable to enable ec optimizations on pool %s, ignoring' % pool)
+ self.log('do_enable_ec_opts: Unable to enable ec optimizations on pool %s, ignoring' % pool)
@log_exc
def _do_thrash(self):