Bug 1179246
| Summary: | Add rest API to support warning for attached Storage Domains on attach or import of Storage Domain | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Maor <mlipchuk> | |
| Component: | ovirt-engine-cli | Assignee: | Maor <mlipchuk> | |
| Status: | CLOSED ERRATA | QA Contact: | Ori Gofen <ogofen> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 3.5.0 | CC: | acanan, amureini, bgraveno, gklein, lsurette, mlipchuk, oliel, rbalakri, Rhev-m-bugs, yeylon, ykaul, ylavi | |
| Target Milestone: | ovirt-3.6.0-rc | Keywords: | ZStream | |
| Target Release: | 3.6.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: |
It is now possible for a user to check if a storage domain is aleady attached to a storage pool before importing it to prevent data corruption of an already activated storage domain in a different setup. A new API has been provided to support this, and can be executed by sending a POST request to '/api/storagedomains/{%storagedomain_id%}/isattached'.
Note: Executing this API will cause the storage domain to disconnect from the host executing this API.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1181681 (view as bug list) | Environment: | ||
| Last Closed: | 2016-03-09 19:54:52 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1181681 | |||
|
Description
Maor
2015-01-06 13:24:43 UTC
Moving to NEW for now until a proper solution will be resolved through gerrit Maor, please provide steps to verify Try to import a Storage Domain which was destroyed on a previous setup to the setup without attaching it to the Data Center
in REST call the following request:
POST
/api/storagedomains/d97c4fc5-bf5d-41a3-94c6-8fe821f98ff0/isattached
HTTP/1.1
Accept: application/xml
Content-type: application/xml
<action>
<host id="383a1e8d-d299-45d4-84d5-9bcc9fcf8823"></host>
</action>
The response which should returned is a Storage Domain with the flag
is_attached.
as so:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<storage_domain id="d97c4fc5-bf5d-41a3-94c6-8fe821f98ff0">
<is_attached>false</is_attached>
</storage_domain>
This Bug was Verified on downstream by lkuchlan, I have described my rejects at https://bugzilla.redhat.com/show_bug.cgi?id=1181681#c6 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-0406.html |