Bug 1179246 - Add rest API to support warning for attached Storage Domains on attach or import of Storage Domain
Summary: Add rest API to support warning for attached Storage Domains on attach or imp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Maor
QA Contact: Ori Gofen
URL:
Whiteboard:
Depends On:
Blocks: 1181681
TreeView+ depends on / blocked
 
Reported: 2015-01-06 13:24 UTC by Maor
Modified: 2016-03-09 19:54 UTC (History)
12 users (show)

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.
Clone Of:
: 1181681 (view as bug list)
Environment:
Last Closed: 2016-03-09 19:54:52 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0406 0 normal SHIPPED_LIVE rhevm-cli bug fix and enhancement update 2016-03-10 00:04:32 UTC
oVirt gerrit 36849 0 master MERGED restapi: Add API to support warning for attached Storage Domains Never

Description Maor 2015-01-06 13:24:43 UTC
Description of problem:
Adding rest API to support getting attached Storage Domains for attach or import Storage Domain operations

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Maor 2015-01-21 17:17:36 UTC
Moving to NEW for now until a proper solution will be resolved through gerrit

Comment 3 Ori Gofen 2015-04-29 12:10:28 UTC
Maor, please provide steps to verify

Comment 4 Maor 2015-04-29 16:59:52 UTC
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>

Comment 5 Ori Gofen 2015-04-30 12:37:47 UTC
This Bug was Verified on downstream by lkuchlan, I have described my rejects at https://bugzilla.redhat.com/show_bug.cgi?id=1181681#c6

Comment 7 errata-xmlrpc 2016-03-09 19:54:52 UTC
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


Note You need to log in before you can comment on or make changes to this bug.