Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3638

Strip images from onboared CSARs

XMLWordPrintable

      When a VSP is imported and an ARM is configured, the images shall be stripped from the onboarded csar in order to reduce the size of the csar to a size managable by SDC.
      If no ARM is configured, behaviour will be as today.

      Care should be taken to not parse the full original csar into memory to avoid OOM

       

      Proposed Implementation:

      • the csar is received in OrchestrationTemplateCandidateImpl.upload()
      • Replace the reading of  the byte[] of contents from the Attachment with:
        • if an ARM is configured 
          • save the csar to a tmp location on the filesystem
          • replace all files in a configurable list of directories in the csar with empty files of the same name (to avoid updates to the manifest)
          • read the byte[] for the updated csar rather than the received csar
        • if no ARM, process as today 

            vasraz vasraz
            vasraz vasraz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: