Signed-off-by: David Zafman <dzafman@redhat.com>
! ceph balancer optimize plan_upmap $TEST_POOL || return 1
ceph balancer status || return 1
eval RESULT=$(ceph balancer status | jq '.optimize_result')
- test "$RESULT" = "Unable to find further optimization, or pool(s)' pg_num is decreasing, or distribution is already perfect" || return 1
+ test "$RESULT" = "Unable to find further optimization, or pool(s) pg_num is decreasing, or distribution is already perfect" || return 1
ceph balancer on || return 1
ACTIVE=$(ceph balancer status | jq '.active')
self.log.info('prepared %d changes in total' % total_did)
if total_did == 0:
return -errno.EALREADY, 'Unable to find further optimization, ' \
- 'or pool(s)\' pg_num is decreasing, ' \
+ 'or pool(s) pg_num is decreasing, ' \
'or distribution is already perfect'
return 0, ''