Signed-off-by: Sage Weil <sage@newdream.net>
raise OrchestratorError('New host %s (%s) failed check(s): %s' % (
spec.hostname, spec.addr, errors))
+ # prime crush map?
+ if spec.location:
+ self.check_mon_command({
+ 'prefix': 'osd crush add-bucket',
+ 'name': spec.hostname,
+ 'type': 'host',
+ 'args': [f'{k}={v}' for k, v in spec.location.items()],
+ })
+
self.inventory.add_host(spec)
self.cache.prime_empty_host(spec.hostname)
self.offline_hosts_remove(spec.hostname)