if not ctx.skip_monitoring_stack:
for t in ['ceph-exporter', 'prometheus', 'grafana', 'node-exporter', 'alertmanager']:
logger.info('Deploying %s service with default placement...' % t)
- cli(['orch', 'apply', t])
+ try:
+ cli(['orch', 'apply', t])
+ except RuntimeError:
+ ctx.error_code = -errno.EINVAL
+ logger.error(f'Failed to apply service type {t}. '
+ 'Perhaps the ceph version being bootstrapped does not support it')
if ctx.with_centralized_logging:
for t in ['loki', 'promtail']:
logger.info('Deploying %s service with default placement...' % t)
- cli(['orch', 'apply', t])
+ try:
+ cli(['orch', 'apply', t])
+ except RuntimeError:
+ ctx.error_code = -errno.EINVAL
+ logger.error(f'Failed to apply service type {t}. '
+ 'Perhaps the ceph version being bootstrapped does not support it')
def enable_cephadm_mgr_module(