Bug 1478869
| Summary: | RESTAPI- detach a storage connection from ISCSI SD in maintenance which is used by another ISCSI SD succeeds | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Avihai <aefrat> | ||||
| Component: | BLL.Storage | Assignee: | Eyal Shenitzky <eshenitz> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Raz Tamir <ratamir> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 4.2.0 | CC: | aefrat, amureini, bugs | ||||
| Target Milestone: | ovirt-4.2.2 | Keywords: | Automation | ||||
| Target Release: | --- | Flags: | rule-engine:
ovirt-4.2+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-12-10 10:05:18 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Avihai
2017-08-07 11:25:44 UTC
Hi Avihavi,
I failed to reproduce the bug according to the following steps:
1) Create 1 master NFS domain & 2 non-master ISCSI domains SD-A & SD-B with 1 same connection to the storage server.
2) move one of the ISCSI SD (SD-A) to maintenance
3) Detach the connection from the SD-A when SD-B is active still use the same connection.
I checked 2 scenarios:
1. As you wrote above - the remove operation does succeed for storage domain SD-A as it should because the domain is in maintenance, but the storage connection doesn't remove from domain SD-B (as expected) so this is not a bug.
2. Try to remove the storage connection from SD-B while SD-A is in maintenance,
the following error received by the engine -
<fault>
<detail>[Cannot detach Storage Connection. The data domains sd-B should be in maintenance or unattached.]</detail>
<reason>Operation Failed</reason>
</fault>
I used the following API command -
DELETE ovirt-engine/api/storagedomains/<domain-id>/storageconnections/<connection-id>
Please close the bug in case the bug does not reproduce.
Eyal, The bug does reproduce but as you stated this is by design. So this is the expected behavior: " As you wrote above - the remove operation does succeed for storage domain SD-A as it should because the domain is in maintenance, but the storage connection doesn't remove from domain SD-B (as expected) so this is not a bug. " If you are sure this is indeed the expected behavior, please close as NOTABUG & I will change the automation scenario. Current automation code was that detach connection from storage domain SD-A (which is in maintenance) was expected to fail as its shares the same ISCSI connection with SD-B. After speaking f2f with Avihai we saw that this is a bug in the automation. Close as NOTABUG. |