Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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