@@ -412,7 +412,7 @@ def spawn(self, context, instance, image_meta, injected_files,
412
412
raise NotImplementedError ()
413
413
414
414
def destroy (self , context , instance , network_info , block_device_info = None ,
415
- destroy_disks = True ):
415
+ destroy_disks = True , destroy_secrets = True ):
416
416
"""Destroy the specified instance from the Hypervisor.
417
417
418
418
If the instance is not found (for example if networking failed), this
@@ -425,11 +425,13 @@ def destroy(self, context, instance, network_info, block_device_info=None,
425
425
:param block_device_info: Information about block devices that should
426
426
be detached from the instance.
427
427
:param destroy_disks: Indicates if disks should be destroyed
428
+ :param destroy_secrets: Indicates if secrets should be destroyed
428
429
"""
429
430
raise NotImplementedError ()
430
431
431
432
def cleanup (self , context , instance , network_info , block_device_info = None ,
432
- destroy_disks = True , migrate_data = None , destroy_vifs = True ):
433
+ destroy_disks = True , migrate_data = None , destroy_vifs = True ,
434
+ destroy_secrets = True ):
433
435
"""Cleanup the instance resources .
434
436
435
437
Instance should have been destroyed from the Hypervisor before calling
@@ -442,6 +444,8 @@ def cleanup(self, context, instance, network_info, block_device_info=None,
442
444
be detached from the instance.
443
445
:param destroy_disks: Indicates if disks should be destroyed
444
446
:param migrate_data: implementation specific params
447
+ :param destroy_vifs: Indicates if vifs should be unplugged
448
+ :param destroy_secrets: Indicates if secrets should be destroyed
445
449
"""
446
450
raise NotImplementedError ()
447
451
0 commit comments