Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1181681 - Add rest API to support warning for attached Storage Domains on attach or import of Storage Domain
Add rest API to support warning for attached Storage Domains on attach or imp...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli (Show other bugs)
3.5.0
Unspecified Unspecified
low Severity low
: ---
: 3.5.1
Assigned To: Maor
lkuchlan
storage
: ZStream
Depends On: 1179246
Blocks: 1193058 1197441
  Show dependency treegraph
 
Reported: 2015-01-13 10:07 EST by rhev-integ
Modified: 2016-02-10 12:21 EST (History)
15 users (show)

See Also:
Fixed In Version: org.ovirt.engine-root-3.5.1-1
Doc Type: Bug Fix
Doc Text:
This update adds the call 'isattached' to the REST API for detecting whether a storage domain is attached to a data center before attempting to import the storage domain. This functionality allows users to check if a storage domain is already attached to a storage pool before importing it to a new environment, thereby preventing corruption in the data of a storage domain that is already activated in a different environment. IMPORTANT: When executed, the call causes the storage domain to become disconnected from the host where the call is executed.
Story Points: ---
Clone Of: 1179246
Environment:
Last Closed: 2015-04-28 14:43:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
ylavi: Triaged+


Attachments (Terms of Use)
logs (1.60 MB, application/x-gzip)
2015-03-05 07:17 EST, Ori Gofen
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 36727 master MERGED restapi: Add API to query block Storage Domains to import. Never
oVirt gerrit 36728 master MERGED restapi: Import block Storage Domain Never
oVirt gerrit 36849 master MERGED restapi: Add API to support warning for attached Storage Domains Never
oVirt gerrit 36859 ovirt-engine-3.5 MERGED restapi: Add API to query block Storage Domains to import. Never
oVirt gerrit 36860 ovirt-engine-3.5 MERGED restapi: Import block Storage Domain Never
oVirt gerrit 37315 ovirt-engine-3.5 MERGED restapi: Add API to support warning for attached Storage Domains Never
Red Hat Product Errata RHSA-2015:0888 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Virtualization Manager 3.5.1 update 2015-04-28 18:40:04 EDT

  None (edit)
Comment 1 Allon Mureinik 2015-01-20 18:08:18 EST
Maor, I see two patches merged to the 3.5 branch.
Are there any other patches required, or should this be moved to MODIFIED?
Comment 2 Maor 2015-01-21 08:18:22 EST
There is one more patch that need to be merged before moving this to modify
Comment 3 Maor 2015-01-21 12:18:05 EST
Moving to NEW for now until a proper solution will be resolved through gerrit
Comment 4 Ori Gofen 2015-03-04 09:31:32 EST
Maor, you wrote at the doc text:
"Result: 
Adding an API for storage domain which called isattached
IMPORTANT: Executing this API will cause the Storage Domain to disconnected from the Host executing this API" 

does this mean that everytime a user executes 'isattached' and expects to get 'True' or 'False it will cause also the Storage Domain to disconnected from the Host executing this API" ?
Comment 5 Maor 2015-03-04 11:47:01 EST
(In reply to Ori Gofen from comment #4)
> Maor, you wrote at the doc text:
> "Result: 
> Adding an API for storage domain which called isattached
> IMPORTANT: Executing this API will cause the Storage Domain to disconnected
> from the Host executing this API" 
> 
> does this mean that everytime a user executes 'isattached' and expects to
> get 'True' or 'False it will cause also the Storage Domain to disconnected
> from the Host executing this API" ?

yes
Comment 6 Ori Gofen 2015-03-05 07:17:04 EST
Created attachment 998337 [details]
logs

Maor, this function looks like a bug, no sane user will ever use it.
just tried to "query" 'isattach' operation on a storage domain.
the operation returned 'True' and after on second the whole dc became None-Responsive (see image and logs) and ERRORs and Tracebacks on all logs
Comment 7 lkuchlan 2015-03-11 08:53:22 EDT
Tested using rhevm-3.5.1-0.1.el6ev, vdsm-4.16.12-2.el7ev.x86_64
Comment 8 errata-xmlrpc 2015-04-28 14:43:56 EDT
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/RHSA-2015-0888.html

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