Github user mike-tutkowski commented on the pull request: https://github.com/apache/cloudstack/pull/660#issuecomment-128250790 So, the way we got around the issue of occasionally acquiring the same device ID was to move the retrieve-device-ID logic from the API layer (which can be called in parallel) to the attach logic in the job queue (which will serialize these kinds of calls to the same VM). In other words, we no longer have an issue of acquiring the same device ID. This particular bug is around us forgetting to call "acquire device ID" in the attach logic for one use case.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---