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

Bug 1157229

Summary: [RestApi] Adding Vm to an un-initialized dc, creates an unusable, unremovable VM entitiy
Product: Red Hat Enterprise Virtualization Manager Reporter: Ori Gofen <ogofen>
Component: ovirt-engineAssignee: Michal Skrivanek <michal.skrivanek>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: medium Docs Contact:
Priority: low    
Version: 3.5.0CC: acanan, gklein, istein, lpeer, lsurette, michal.skrivanek, movciari, rbalakri, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:10:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Omer Frenkel 2014-10-26 17:53:48 UTC
how this is urgent?

Comment 2 Ori Gofen 2014-10-26 20:15:10 UTC
I mistakenly revealed my server's ip, set description to private due to that

Comment 3 sefi litmanovich 2015-06-02 08:06:07 UTC
Verified with ovirt-engine-3.6.0-0.0.master.20150519172219.git9a2e2b3.el6.noarch.

If I understand correctly from the patch, the addVmCommand canDoAction function will now deny adding a vm to an uninitialized dc as described in this bz with the error 'ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND'.

This is the behaviour I'm getting when:
1. adding new dc.
2. adding new cluster.
3. dc is uninitialized.
4. add vm with to new cluster.

<fault>
<reason>Operation Failed</reason>
<detail>
[Cannot add VM: Storage Domain cannot be accessed. -Please check that at least one Host is operational and Data Center state is up.]
</detail>
</fault>

Comment 4 Omer Frenkel 2015-06-02 08:23:28 UTC
*** Bug 1225931 has been marked as a duplicate of this bug. ***