diff --git a/dsms_deploy/dsms-deploy.py b/dsms_deploy/dsms-deploy.py index 5d6de00c502e0e1b50fbf6e8bc31cd3cb6d12f95..3be0d2fde625511bdd4db431c10703251bdb68fd 100755 --- a/dsms_deploy/dsms-deploy.py +++ b/dsms_deploy/dsms-deploy.py @@ -619,6 +619,7 @@ def command_init(args): run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mgr create {leader.hostname}') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mds create {hostname}') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, 'ceph mgr module enable cephadm --force') + run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, 'ceph config set mgr mgr/prometheus/scrape_interval 10') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, 'ceph mgr module enable prometheus --force') time.sleep(20) # give some room to start run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, 'ceph orch set backend cephadm') @@ -679,7 +680,6 @@ def command_add_node(args): run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy admin {add_node.hostname}') if add_node.mon: run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mon create {add_node.hostname}') - run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mgr create {add_node.hostname}') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mds create {add_node.hostname}') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'ssh-copy-id -f -i ~/ceph.pub root@{add_node.hostname}')