Exemplo n.º 1
0
 def filter_rule(self):
     """Nova instance.update notification filter"""
     return filtering.NotificationFilter(
         publisher_id=self.publisher_id_regex,
         event_type='instance.update',
         # To be "fully" created, an instance transitions
         # from the 'building' state to the 'active' one.
         # See http://docs.openstack.org/developer/nova/vmstates.html
         payload={
             'nova_object.data': {
                 'state': element.InstanceState.ACTIVE.value,
                 'state_update': {
                     'nova_object.data': {
                         'old_state': element.InstanceState.BUILDING.value,
                         'state': element.InstanceState.ACTIVE.value,
                     },
                     'nova_object.name': 'InstanceStateUpdatePayload',
                     'nova_object.namespace': 'nova',
                 },
             }
         })
Exemplo n.º 2
0
 def filter_rule(self):
     """Nova *.live_migration.post.dest.end notification filter"""
     return filtering.NotificationFilter(
         publisher_id=self.publisher_id_regex,
         event_type='compute.instance.live_migration.post.dest.end',
     )
Exemplo n.º 3
0
 def filter_rule(self):
     """Nova compute.instance.delete.end notification filter"""
     return filtering.NotificationFilter(
         publisher_id=self.publisher_id_regex,
         event_type='compute.instance.delete.end',
     )
Exemplo n.º 4
0
 def filter_rule(self):
     """Nova service.update notification filter"""
     return filtering.NotificationFilter(
         publisher_id=self.publisher_id_regex,
         event_type='instance.delete.end',
     )
Exemplo n.º 5
0
 def filter_rule(self):
     """Cinder volume notification filter"""
     return filtering.NotificationFilter(
         publisher_id=self.publisher_id_regex,
         event_type='volume.delete.end',
     )
Exemplo n.º 6
0
 def filter_rule(self):
     """Cinder capacity notification filter"""
     return filtering.NotificationFilter(
         publisher_id=r'capacity.*',
         event_type='capacity.pool',
     )
Exemplo n.º 7
0
 def filter_rule(self):
     """Nova notification filter"""
     return filtering.NotificationFilter(
         publisher_id=self.publisher_id_regex, )