本文整理汇总了Python中vsm.openstack.common.rpc.queue_get_for函数的典型用法代码示例。如果您正苦于以下问题:Python queue_get_for函数的具体用法?Python queue_get_for怎么用?Python queue_get_for使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了queue_get_for函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: add_mds
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)
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例2: create_keyring
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
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例3: write_monitor_keyring
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)
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例4: start_osd_daemon
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)
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例5: remove_cache_tier
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)
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例6: prepare_osds
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
开发者ID:BetterLu,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例7: refresh_osd_num
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
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例8: update_ssh_keys
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
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例9: mkcephfs
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)
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例10: get_smart_info
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
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例11: add_new_disks_to_cluster
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)
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例12: track_monitors
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
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:7,代码来源:rpcapi.py
示例13: create_crushmap
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
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:8,代码来源:rpcapi.py
示例14: update_storage_groups_from_crushmap_to_db
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
开发者ID:eval-printer,项目名称:virtual-storage-manager,代码行数:8,代码来源:rpcapi.py
示例15: monitor_restart
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
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:8,代码来源:rpcapi.py
示例16: stop_cluster
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
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:8,代码来源:rpcapi.py
示例17: ceph_upgrade
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
开发者ID:congdonglinux,项目名称:virtual-storage-manager,代码行数:8,代码来源:rpcapi.py
示例18: get_default_pg_num_by_storage_group
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
开发者ID:eval-printer,项目名称:virtual-storage-manager,代码行数:8,代码来源:rpcapi.py
示例19: add_zone_to_crushmap_and_db
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
开发者ID:eval-printer,项目名称:virtual-storage-manager,代码行数:8,代码来源:rpcapi.py
示例20: osd_restore
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
开发者ID:NickChen0113,项目名称:virtual-storage-manager,代码行数:8,代码来源:rpcapi.py
注:本文中的vsm.openstack.common.rpc.queue_get_for函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论