def create_share(self, ctxt, share, host, request_spec, filter_properties, snapshot_id=None): self.cast(ctxt, self.make_msg('create_share', share_id=share['id'], request_spec=request_spec, filter_properties=filter_properties, snapshot_id=snapshot_id), topic=rpc.queue_get_for(ctxt, self.topic, host))
def deny_access(self, ctxt, share, access): self.cast(ctxt, self.make_msg('deny_access', access_id=access['id']), topic=rpc.queue_get_for(ctxt, self.topic, share['host']))
def delete_snapshot(self, ctxt, snapshot, host): self.cast(ctxt, self.make_msg('delete_snapshot', snapshot_id=snapshot['id']), topic=rpc.queue_get_for(ctxt, self.topic, host))
def create_snapshot(self, ctxt, share, snapshot): self.cast(ctxt, self.make_msg('create_snapshot', share_id=share['id'], snapshot_id=snapshot['id']), topic=rpc.queue_get_for(ctxt, self.topic, share['host']))
def delete_share(self, ctxt, share): self.cast(ctxt, self.make_msg('delete_share', share_id=share['id']), topic=rpc.queue_get_for(ctxt, self.topic, share['host']))