Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-2308

Fix packaging script - Memory error in md5 calculations

XMLWordPrintable

      During package preparation whole file is read and stashed in to RAM. when the file is large, like ONAP package it will result in an error:

       
      Binaries - workaround
      Creating package /build_workspace/common/package/resources_package.tar
      Creating package /build_workspace/common/package/aux_package.tar
      Traceback (most recent call last):
      File "./offline-installer/build/package.py", line 335, in <module>
      run_cli()
      File "./offline-installer/build/package.py", line 331, in run_cli
      args.add_metadata)
      File "./offline-installer/build/package.py", line 266, in build_offline_deliverables
      add_checksum_info(output_dir)
      File "./offline-installer/build/package.py", line 111, in add_checksum_info
      cksum = hashlib.md5(open(data, 'rb').read()).hexdigest()
      MemoryError

            m.pilat m.pilat
            m.pilat m.pilat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: