Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9627

Template Doens't get sync when using Swift as Secondary Storage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.9.0, Future
    • None
    • Secondary Storage, Template
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      When using a region store like Swift or S3 as secondary storage,
      the `zoneId` can be null. This causes an exception when we try
      to convert it to a `long`. This fix guards against that.

      Also, on the secondary storage side, we are writing the incorrect
      unique name which prevents the sync logic to assosiate the template
      on swift with the template in DB.

      Before this fix, if you restart the management server, all the templates
      would change to "NOT READY" because the code which syncs the NFS cache
      and the object store crashes due to the above mentioned issue.
      This PR fixes that.

      https://github.com/apache/cloudstack/pull/1772/

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sahmed Syed Ahmed
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: