Skip to content

Add offline cloud license provision worker

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

  1. Activate an offline license with Duo Enterprise
  2. 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
  3. Go to the gitlab_subscriptions_offline_cloud_license_provision_worker
  4. Execute the worker
  5. Wait and check that the add-on purchases got provisioned.

Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/478015

Edited by Lukas Wanko

Merge request reports

Loading