logger.debug('Provided hosts: %s' % candidates)
# if asked to place even number of mons, deploy 1 less
if self.spec.service_type == 'mon' and (len(candidates) % 2) == 0:
- logger.info("deploying %s monitor(s) instead of %s so monitors may achieve consensus" % (
+ logger.info("Deploying %s monitor(s) instead of %s so monitors may achieve consensus" % (
len(candidates) - 1, len(candidates)))
return candidates[0:len(candidates)-1]
# is determining factor in how many mons will be placed
if count >= len(candidates):
if (len(candidates) % 2) == 0:
- logger.info("deploying %s monitor(s) instead of %s so monitors may achieve consensus" % (
+ logger.info("Deploying %s monitor(s) instead of %s so monitors may achieve consensus" % (
len(candidates) - 1, len(candidates)))
count = len(candidates) - 1
# if count < number of candidates then count is determining
else:
if (count % 2) == 0:
logger.info(
- "deploying %s monitor(s) instead of %s so monitors may achieve consensus" % (count - 1, count))
+ "Deploying %s monitor(s) instead of %s so monitors may achieve consensus" % (count - 1, count))
count = count - 1
# prefer hosts that already have services.
if self.spec.service_type == 'ha-rgw':
logger.info(
f"Filtered out host {h.hostname} for ha-rgw. Could not verify host allowed virtual ips")
- logger.info('filtered %s down to %s' % (old, others))
+ logger.debug('filtered %s down to %s' % (old, others))
# ask the scheduler to return a set of hosts with a up to the value of <count>
others = self.scheduler.place(others, need)
- logger.info('Combine hosts with existing daemons %s + new hosts %s' % (
+ logger.debug('Combine hosts with existing daemons %s + new hosts %s' % (
hosts_with_daemons, others))
# if a host already has the anticipated daemon, merge it with the candidates
# to get a list of HostPlacementSpec that can be deployed on.
daemons = self.mgr.cache.get_daemons()
done = 0
for daemon_type in CEPH_UPGRADE_ORDER:
- logger.info('Upgrade: Checking %s daemons...' % daemon_type)
+ logger.info('Upgrade: Checking %s daemons' % daemon_type)
need_upgrade_self = False
for d in daemons:
if d.daemon_type != daemon_type:
continue
if not self._wait_for_ok_to_stop(d):
return
- logger.info('Upgrade: Redeploying %s.%s' %
+ logger.info('Upgrade: Updating %s.%s' %
(d.daemon_type, d.daemon_id))
try:
self.mgr._daemon_action(
# push down configs
if image_settings.get(daemon_type) != target_image:
- logger.info('Upgrade: Setting container_image for all %s...' %
+ logger.info('Upgrade: Setting container_image for all %s' %
daemon_type)
self.mgr.set_container_image(name_to_config_section(daemon_type), target_image)
to_clean = []
if section.startswith(name_to_config_section(daemon_type) + '.'):
to_clean.append(section)
if to_clean:
- logger.debug('Upgrade: Cleaning up container_image for %s...' %
+ logger.debug('Upgrade: Cleaning up container_image for %s' %
to_clean)
for section in to_clean:
ret, image, err = self.mgr.check_mon_command({