Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-108522

when creating an iscsi target via the API during high concurrency sometimes the groups are not added

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Engineering Closed (View Workflow)
    • Priority: Low
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: API, iSCSI
    • Labels:
      None
    • Impact:
      Medium

      Description

      When POSTing to the /api/v2.0/iscsi/target endpoint while many other iscsi-related API requests are happening concurrently I've noticed situations where the 'groups' property does not get properly set (it's empty). I've worked around the issue by checking the groups from the response and ensuring they match what was sent and if not, I turn around and do a subsequent PUT with the groups. If that fails I retry the whole process. The mitigations 'work' but it's not ideal.

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  releng Triage Team
                  Reporter:
                  travisghansen Travis Hansen (community)
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: