Add offline cloud license provision worker
requested to merge lw/478015-auto-provision-future-dated-add-ons-for-offline-cloud-licenses into master
What does this MR do and why?
This code change introduces a worker to check daily on offline cloud licenses. We check if new add-on purchases can be provisioned, but are stored already on the license, but didn't got provisioned yet. Worker is reusing the provision service for self-managed instances.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Requirements
- Experience purchasing an offline cloud license with Ultimate for self-managed with Duo Enterprise in Zuora
- Experience synchronizing orders to CDot and downloading offline cloud license files
- Experience running GitLab in self-managed mode and activating the instance with the offline cloud license file
Validation steps
- Activate an offline license with Duo Enterprise
- Delete all provisioned add-on purchases.
- For example with
GitlabSubscriptions::AddOnPurchase.by_namespace(nil).delete_all
- This command deletes all add-on purchases for self-managed
- For example with
- Go to the gitlab_subscriptions_offline_cloud_license_provision_worker
- Execute the worker
- Wait and check that the add-on purchases got provisioned.
Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/478015
Edited by Lukas Wanko