Github user mike-tutkowski commented on the pull request:
https://github.com/apache/cloudstack/pull/547#issuecomment-137815613
OK, I mainly remembered the issue correctly, but not entirely. The way we
avoid this problem (usually) is by looking to see if the datastore starts with
"-iqn." or "_iqn.".
If it does, we assume it is not local storage; otherwise, it is assumed to
be local storage (an incorrect assumption in this situation that leads to
shared storage (that has already been added to CS as shared primary storage)
being added to CS as local primary storage).
---
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 [email protected] or file a JIRA ticket
with INFRA.
---