missed things
This commit is contained in:
parent
fbb0241df4
commit
4cf7ec25d7
@ -241,28 +241,28 @@ class AccountReaper(Daemon):
|
||||
except Exception:
|
||||
self.logger.exception(
|
||||
_('Exception with account %s'), account)
|
||||
log = 'Incomplete pass on account %s' % account
|
||||
log = _('Incomplete pass on account %s') % account
|
||||
if self.stats_containers_deleted:
|
||||
log += ', %s containers deleted' % self.stats_containers_deleted
|
||||
log += _(', %s containers deleted') % self.stats_containers_deleted
|
||||
if self.stats_objects_deleted:
|
||||
log += ', %s objects deleted' % self.stats_objects_deleted
|
||||
log += _(', %s objects deleted') % self.stats_objects_deleted
|
||||
if self.stats_containers_remaining:
|
||||
log += ', %s containers remaining' % \
|
||||
log += _(', %s containers remaining') % \
|
||||
self.stats_containers_remaining
|
||||
if self.stats_objects_remaining:
|
||||
log += ', %s objects remaining' % self.stats_objects_remaining
|
||||
log += _(', %s objects remaining') % self.stats_objects_remaining
|
||||
if self.stats_containers_possibly_remaining:
|
||||
log += ', %s containers possibly remaining' % \
|
||||
log += _(', %s containers possibly remaining') % \
|
||||
self.stats_containers_possibly_remaining
|
||||
if self.stats_objects_possibly_remaining:
|
||||
log += ', %s objects possibly remaining' % \
|
||||
log += _(', %s objects possibly remaining') % \
|
||||
self.stats_objects_possibly_remaining
|
||||
if self.stats_return_codes:
|
||||
log += ', return codes: '
|
||||
log += _(', return codes: ')
|
||||
for code in sorted(self.stats_return_codes.keys()):
|
||||
log += '%s %sxxs, ' % (self.stats_return_codes[code], code)
|
||||
log = log[:-2]
|
||||
log += ', elapsed: %.02fs' % (time() - begin)
|
||||
log += _(', elapsed: %.02fs') % (time() - begin)
|
||||
self.logger.info(log)
|
||||
|
||||
def reap_container(self, account, account_partition, account_nodes,
|
||||
|
@ -146,7 +146,7 @@ class AuthController(object):
|
||||
previous_prefix = ''
|
||||
if '_' in row[0]:
|
||||
previous_prefix = row[0].split('_', 1)[0]
|
||||
msg = ('''
|
||||
msg = _(('''
|
||||
THERE ARE ACCOUNTS IN YOUR auth.db THAT DO NOT BEGIN WITH YOUR NEW RESELLER
|
||||
PREFIX OF "%s".
|
||||
YOU HAVE A FEW OPTIONS:
|
||||
@ -164,14 +164,14 @@ YOU HAVE A FEW OPTIONS:
|
||||
TO REVERT BACK TO YOUR PREVIOUS RESELLER PREFIX.
|
||||
|
||||
%s
|
||||
''' % (self.reseller_prefix.rstrip('_'), self.db_file,
|
||||
''') % (self.reseller_prefix.rstrip('_'), self.db_file,
|
||||
self.reseller_prefix.rstrip('_'), self.db_file,
|
||||
previous_prefix, previous_prefix and ' ' or '''
|
||||
previous_prefix, previous_prefix and ' ' or _('''
|
||||
SINCE YOUR PREVIOUS RESELLER PREFIX WAS AN EMPTY STRING, IT IS NOT
|
||||
RECOMMENDED TO PERFORM OPTION 3 AS THAT WOULD MAKE SUPPORTING MULTIPLE
|
||||
RESELLERS MORE DIFFICULT.
|
||||
'''.strip())).strip()
|
||||
self.logger.critical('CRITICAL: ' + ' '.join(msg.split()))
|
||||
''').strip())).strip()
|
||||
self.logger.critical(_('CRITICAL: ') + ' '.join(msg.split()))
|
||||
raise Exception('\n' + msg)
|
||||
|
||||
def add_storage_account(self, account_name=''):
|
||||
|
@ -127,7 +127,7 @@ class ContainerUpdater(Daemon):
|
||||
Run the updater once.
|
||||
"""
|
||||
patcher.monkey_patch(all=False, socket=True)
|
||||
self.logger.info('Begin container update single threaded sweep')
|
||||
self.logger.info(_('Begin container update single threaded sweep'))
|
||||
begin = time.time()
|
||||
self.no_changes = 0
|
||||
self.successes = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user