Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1451716

Summary: Upload qcow disk fails validation using API call: ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST
Product: [oVirt] ovirt-engine Reporter: Ondra Machacek <omachace>
Component: BLL.StorageAssignee: Daniel Erez <derez>
Status: CLOSED DUPLICATE QA Contact: Raz Tamir <ratamir>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.2CC: bugs, tnisan
Target Milestone: ovirt-4.1.3Keywords: Regression
Target Release: ---Flags: rule-engine: ovirt-4.1+
rule-engine: blocker+
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-05-17 13:11:55 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:

Description Ondra Machacek 2017-05-17 10:58:24 UTC
Description of problem:


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

How reproducible:
always

Steps to Reproduce:
1. Run following code:

 https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/upload_disk.py

Actual results:
$ python upload_disk.py 
Traceback (most recent call last):
  File "upload_disk.py", line 105, in <module>
    id=disk.id
  File "build/bdist.linux-x86_64/egg/ovirtsdk4/services.py", line 9383, in add
  File "build/bdist.linux-x86_64/egg/ovirtsdk4/service.py", line 220, in _internal_add
  File "build/bdist.linux-x86_64/egg/ovirtsdk4/service.py", line 53, in wait
  File "build/bdist.linux-x86_64/egg/ovirtsdk4/service.py", line 217, in callback
  File "build/bdist.linux-x86_64/egg/ovirtsdk4/service.py", line 122, in _check_fault
  File "build/bdist.linux-x86_64/egg/ovirtsdk4/service.py", line 106, in _raise_error
ovirtsdk4.Error: Fault reason is "Operation Failed". Fault detail is "[Cannot ${action} Storage. Storage Domain doesn't exist.]". HTTP response code is 400.


Expected results:
Success.

Additional info:
2017-05-17 12:44:10,386+02 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (DefaultQuartzScheduler3) [] EVENT_ID: USER_ADD_DISK_FINISHED_SUCCESS(2,021), Correlation ID: 1821b7fc-6c1a-4257-8d37-cc1998371955, Job ID: c36fcabb-e477-4a14-a4a7-ac6e543ee365, Call Stack: null, Custom Event ID: -1, Message: The disk 'mydisk' was successfully added.
2017-05-17 12:44:13,533+02 WARN  [org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand] (default task-3) [d30b5626-7f97-42e7-b0d2-5fddb37ab2f2] Validation of action 'TransferDiskImage' failed for user admin@internal-authz. Reasons: VAR__TYPE__STORAGE__DOMAIN,ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST
2017-05-17 12:44:13,537+02 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-3) [] Operation Failed: [Cannot ${action} Storage. Storage Domain doesn't exist.]


This is regression from:
https://gerrit.ovirt.org/#/c/74347/

Comment 1 Red Hat Bugzilla Rules Engine 2017-05-17 10:58:29 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Daniel Erez 2017-05-17 13:11:55 UTC
Duplicate of bug 1447023. Already resolved for 4.1.

*** This bug has been marked as a duplicate of bug 1447023 ***