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

createSnapshotPolicy API create multiple entries in DB for same volume.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      ISSUE :
      createSnapshotPolicy API create multiple entries in DB for same parameters, if multiple threads are executed in parallel.

      STEPS TO REPRODUCE :

      1. Created a new machine having root and data disk.
      2. Make sure that no existing snapshot policy is present for the volume.
      3. Execute multiple threads in parallel for createSnapshotPolicy API having all required parameters exactly same.
      4. Verify table snapshot_policy in DB, will get multiple entries for same policy.
      5. Once again execute same multiple threads, by changing any API parameter, will see that existing entries are getting modified in DB and no new entries are added.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                niteshsarda Nitesh Sarda
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: