Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • I infra-azure-provisioning
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 64
    • Issues 64
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe SoftwareOpen Subsurface Data Universe Software
  • Platform
  • Deployment and Operations
  • infra-azure-provisioning
  • Merge requests
  • !382

Adding storage lifecycle management policy

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Nidhi Jain requested to merge feature/storage-mgmt-policy into master Jun 28, 2021
  • Overview 8
  • Commits 9
  • Pipelines 12
  • Changes 3

Infrastructure Submissions:


  • [YES] Have you added an explanation of what your changes do and why you'd like us to include them?
  • [YES/NO] I have updated the documentation accordingly.
  • [YES/NO/NA] I have added tests to cover my changes.
  • [YES] All new and existing tests passed.
  • [YES] I have formatted the terraform code. (terraform fmt -recursive && go fmt ./...)

Current Behavior or Linked Issues


The file-staging-area Blob Container is used by File Service for Generating Signed URLs for Upload operations. Once the file is uploaded, the client uses File Service's metadata API which will internally copy the blob contents from the file-staging-area to file-persistent-area and update the blob's metadata to Storage Service.

This results in lot of temporary files left over in the Staging area. Removing the files periodically will better the COGS

Feature Change - Support auto delete of files on file-staging-area #177 (closed)

Does this introduce a breaking change?


  • [NO]

Other information


After this change, all the baseBlobs in the staging area will get deleted after the specified number of retention days. The number of retention days is a configurable number and this feature is enabled behind a feature flag. To view the change, a lifecycle management policy gets added in the azure portal corresponding to the specific storage account image

pipeline plans:

Disabled flag https://dev.azure.com/osdu-demo/OSDU_Rx/_build/results?buildId=141386&view=results

Enabled flag: https://dev.azure.com/osdu-demo/OSDU_Rx/_build/results?buildId=141377&view=results

Edited Jun 30, 2021 by Nidhi Jain
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/storage-mgmt-policy