def add_new_disks_to_cluster(self, context, body, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('add_new_disks_to_cluster', body=body), topic, version='1.0', timeout=6000)
def get_ceph_health_list(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('get_ceph_health_list'), topic, version='1.0', timeout=6000)
def remove_cache_tier(self, context, body, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('remove_cache_tier', body=body), topic, version='1.0', timeout=6000)
def track_monitors(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('track_monitors'), topic, version='1.0', timeout=6000) return res
def create_keyring(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('create_keyring'), topic, version='1.0', timeout=6000) return res
def write_monitor_keyring(self, context, monitor_keyring, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('write_monitor_keyring', monitor_keyring=monitor_keyring), topic, version='1.0', timeout=6000)
def refresh_osd_num(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.cast(context, self.make_msg('refresh_osd_number'), topic, version='1.0', timeout=6000) return res
def get_smart_info(self, context, host, device): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.call(context, self.make_msg('get_smart_info', device=device), topic, version='1.0', timeout=6000) return res
def upload_keyring_admin_into_db(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('upload_keyring_admin_into_db'), topic, version='1.0', timeout=6000)
def add_mds(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) return self.call(context, self.make_msg('add_mds'), topic, version='1.0', timeout=6000)
def start_mds(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('start_mds'), topic, version='1.0', timeout=6000)
def start_osd_daemon(self, context, number, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('start_osd_daemon', num=number), topic, version='1.0', timeout=6000)
def mount_disks(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('mount_disks'), topic, version='1.0', timeout=6000)
def clean_ceph_data(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('clean_ceph_data'), topic, version='1.0', timeout=6000)
def prepare_osds(self, context, server_list, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('prepare_osds', server_list=server_list), topic) return res
def update_ssh_keys(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.call(context, self.make_msg('update_ssh_keys'), topic, version='1.0', timeout=6000) return res
def save_ceph_config(self, context, config, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('save_ceph_config', config=config), topic, version='1.0', timeout=6000)
def mkcephfs(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('mkcephfs'), topic, version='1.0', timeout=6000)
def ceph_upgrade(self, context, node_id, host, key_url, pkg_url,restart): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.call(context, self.make_msg('ceph_upgrade',node_id=node_id,key_url=key_url,pkg_url=pkg_url,restart=restart), topic, version='1.0', timeout=6000) return res
def get_default_pg_num_by_storage_group(self, context, body, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('get_default_pg_num_by_storage_group', body=body), topic, version='1.0', timeout=6000) return res
def add_zone_to_crushmap_and_db(self, context, body, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('add_zone_to_crushmap_and_db', body=body), topic, version='1.0', timeout=6000) return res
def update_storage_groups_from_crushmap_to_db(self, context, body, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('update_storage_groups_from_crushmap_to_db', body=body), topic, version='1.0', timeout=6000) return res
def monitor_restart(self, context, monitor_num, host): topic = rpc.queue_get_for(context, self.topic, host) #self.test_service(context, topic) res = self.call(context, self.make_msg('monitor_restart', monitor_num=monitor_num), topic, version='1.0', timeout=6000) return res
def osd_restore(self, context, osd_id, host): topic = rpc.queue_get_for(context, self.topic, host) #self.test_service(context, topic) res = self.call(context, self.make_msg('osd_restore', osd_id=osd_id), topic, version='1.0', timeout=6000) return res
def prepare_osds(self, context, server_list, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('prepare_osds', server_list=server_list), topic, version='1.0', timeout=6000) return res
def detect_crushmap(self, context, keyring, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('detect_crushmap', keyring=keyring), topic, version='1.0', timeout=6000) return res
def import_cluster(self, context, body, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('import_cluster', body=body), topic, version='1.0', timeout=6000) return res
def stop_cluster(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.call(context, self.make_msg('stop_cluster'), topic, version='1.0', timeout=6000) return res
def inital_ceph_osd_db_conf(self, context, server_list, host): topic = rpc.queue_get_for(context, self.topic, host) return self.call(context, self.make_msg('inital_ceph_osd_db_conf', server_list=server_list), topic, version='1.0', timeout=6000)
def get_pool_id_by_name(self, context, name, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.call(context, self.make_msg('get_pool_id_by_name', name=name), topic, version='1.0', timeout=6000) return res
def create_crushmap(self, context, server_list, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.call(context, self.make_msg('create_crushmap', server_list=server_list), topic, version='1.0', timeout=6000) return res
def modify_rule_in_crushmap(self, context, body, host): topic = rpc.queue_get_for(context, self.topic, host) res = self.call(context, self.make_msg('modify_rule_in_crushmap', body=body), topic, version='1.0', timeout=6000) return res
def remove_osd(self, context, host_id, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) return self.call(context, self.make_msg('remove_osd', host_id=host_id), topic, version='1.0', timeout=6000)
def get_smart_info(self, context, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.call(context, self.make_msg('get_smart_info'), topic, version='1.0', timeout=6000) LOG.info("---agent-rpcapi return===%s"%res) return res
def init_ceph(self, context, body, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) return self.call(context, self.make_msg('init_ceph', body=body), topic, version='1.0', timeout=6000)
def add_new_zone(self, context, zone_name, host): topic = rpc.queue_get_for(context, self.topic, host) self.test_service(context, topic) res = self.call(context, self.make_msg('add_new_zone', zone_name=zone_name), topic, version='1.0', timeout=6000) return res