コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 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
コード例 #5
0
 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
コード例 #6
0
 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)
コード例 #7
0
 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
コード例 #8
0
 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
コード例 #9
0
 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)
コード例 #10
0
 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
コード例 #11
0
 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)
コード例 #12
0
 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)
コード例 #13
0
 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)
コード例 #14
0
 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)
コード例 #15
0
 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)
コード例 #16
0
 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
コード例 #17
0
 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
コード例 #18
0
 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)
コード例 #19
0
 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)
コード例 #20
0
 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)
コード例 #21
0
 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
コード例 #22
0
 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)
コード例 #23
0
 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
コード例 #24
0
 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
コード例 #25
0
 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)
コード例 #26
0
 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
コード例 #27
0
 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)
コード例 #28
0
 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)
コード例 #29
0
 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
コード例 #30
0
 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
コード例 #31
0
 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
コード例 #32
0
 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
コード例 #33
0
 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
コード例 #34
0
 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
コード例 #35
0
 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
コード例 #36
0
 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
コード例 #37
0
 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
コード例 #38
0
 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
コード例 #39
0
 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
コード例 #40
0
 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
コード例 #41
0
 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
コード例 #42
0
 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
コード例 #43
0
 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)
コード例 #44
0
 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
コード例 #45
0
 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
コード例 #46
0
 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
コード例 #47
0
 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
コード例 #48
0
 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
コード例 #49
0
 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
コード例 #50
0
 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
コード例 #51
0
 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)
コード例 #52
0
 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)
コード例 #53
0
 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
コード例 #54
0
 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
コード例 #55
0
 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
コード例 #56
0
 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
コード例 #57
0
 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)
コード例 #58
0
 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)
コード例 #59
0
 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)
コード例 #60
0
 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