cloudstack/ui/src
Abhishek Kumar 3e6900ac1a
api,server: purge expunged resources (#8999)
This PR introduces the functionality of purging removed DB entries for CloudStack entities (currently only for VirtualMachine). There would be three mechanisms for purging removed resources:

    Background task - CloudStack will run a background task which runs at a defined interval. Other parameters for this task can be controlled with new global settings.
    API - New admin-only API purgeExpungedResources. It will allow passing the following parameters - resourcetype, batchsize, startdate, enddate. Currently, API is not supported in the UI.
    Config for service offering. Service offerings can be created with purgeresources parameter which would allow purging resources immediately on expunge.

Following new global settings have been added:

    expunged.resources.purge.enabled: Default: false. Whether to run a background task to purge the expunged resources
    expunged.resources.purge.resources: Default: (empty). A comma-separated list of resource types that will be considered by the background task to purge the expunged resources. Currently only VirtualMachine is supported. An empty "value will result in considering all resource types for purging
    expunged.resources.purge.interval: Default: 86400. Interval (in seconds) for the background task to purge the expunged resources
    expunged.resources.purge.delay: Default: 300. Initial delay (in seconds) to start the background task to purge the expunged resources task.
    expunged.resources.purge.batch.size: Default: 50. Batch size to be used during expunged resources purging.
    expunged.resources.purge.start.time: Default: (empty). Start time to be used by the background task to purge the expunged resources. Use format yyyy-MM-dd or yyyy-MM-dd HH:mm:ss.
    expunged.resources.purge.keep.past.days: Default: 30. The number of days in the past from the execution time of the background task to purge the expunged resources for which the expunged resources must not be purged. To enable purging expunged resource till the execution of the background task, set the value to zero.
    expunged.resource.purge.job.delay: Default: 180. Delay (in seconds) to execute the purging of an expunged resource initiated by the configuration in the offering. Minimum value should be 180 seconds and if a lower value is set then the minimum value will be used.

Documentation PR: apache/cloudstack-documentation#397

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: Wei Zhou <weizhou@apache.org>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2024-06-20 11:34:44 +05:30
..
api Oauth2 integration with CloudStack (#7996) 2023-10-31 13:25:28 +05:30
assets/icons UI: Admin, account and project dashboard improvements (#7956) 2023-10-06 13:40:22 +05:30
components Merge branch '4.19' 2024-06-18 19:58:43 +02:00
config api,server: purge expunged resources (#8999) 2024-06-20 11:34:44 +05:30
core feature: webhooks (#8674) 2024-06-10 10:40:12 +05:30
layouts ui: AntD3 upgrade (#7306) 2023-04-11 14:05:21 +05:30
locales UI: Fixes some issues from zone wizard with VMWare hypervisor (#6480) 2022-07-08 13:53:12 +05:30
role UI: fix create Isolated/L2 network form (#5779) 2021-12-16 11:24:11 +05:30
router UI: Upgrade to Vue3 library (#5151) 2022-03-09 09:47:09 -03:00
store Show menu section if user has access to at least one of its pages (#8978) 2024-04-26 14:34:06 +02:00
style ui: Admin, account and project dashboard improvements (#8193) 2023-11-08 10:08:05 +01:00
utils Merge branch '4.19' 2024-06-18 19:58:43 +02:00
views api,server: purge expunged resources (#8999) 2024-06-20 11:34:44 +05:30
App.vue UI: Upgrade to Vue3 library (#5151) 2022-03-09 09:47:09 -03:00
main.js ui: use ssh keypair uuid for listing (#6616) 2022-08-09 13:29:49 +05:30
permission.js ui: fix dashboard on saml user login (#9097) 2024-06-12 17:19:21 +05:30
vue-app.js UI: Upgrade to Vue3 library (#5151) 2022-03-09 09:47:09 -03:00