Example #1
0
 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))
Example #2
0
 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']))
Example #3
0
 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))
Example #4
0
 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']))
Example #5
0
 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']))