Description of problem: Version-Release number of selected component (if applicable): sf6 How reproducible: always Steps to Reproduce: 1. Set DC to enforced mode(or audit). 2. Create vm via API in this dc. Actual results: Success Expected results: Fail - quota is not valid. Additional info: 2013-02-10 22:16:52,410 INFO [org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommand] (pool-4-thread-50) [423be251] Running command: UpdateStoragePoolCommand internal: false. Entities affected : ID: e5371bf4-df96-4ce9-81a5-3bf04caa896c Type: StoragePool 2013-02-10 22:17:07,340 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-1) Running command: LoginUserCommand internal: false. 2013-02-10 22:17:07,357 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-1) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version 2013-02-10 22:17:07,358 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-1) calling GetConfigurationValueQuery (VdcVersion) with null version, using default general for version 2013-02-10 22:17:07,840 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-16) Running command: LoginUserCommand internal: false. 2013-02-10 22:17:07,850 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-16) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version 2013-02-10 22:17:08,303 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-7) Running command: LoginUserCommand internal: false. 2013-02-10 22:17:08,315 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-7) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version 2013-02-10 22:17:08,728 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-18) Running command: LoginUserCommand internal: false. 2013-02-10 22:17:08,740 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-18) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version 2013-02-10 22:17:09,371 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-13) Running command: LoginUserCommand internal: false. 2013-02-10 22:17:09,385 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-13) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version 2013-02-10 22:17:09,470 INFO [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (ajp-/127.0.0.1:8702-13) [b72f692] Lock Acquired to object EngineLock [exclusiveLocks= key: vm2 value: VM_NAME , sharedLocks= ] 2013-02-10 22:17:09,525 INFO [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (ajp-/127.0.0.1:8702-13) [b72f692] Running command: AddVmFromScratchCommand internal: false. Entities affected : ID: cb685e0f-59b9-47e1-b438-d545fc02cf84 Type: VdsGroups 2013-02-10 22:17:09,577 INFO [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (ajp-/127.0.0.1:8702-13) [b72f692] Lock freed to object EngineLock [exclusiveLocks= key: vm2 value: VM_NAME , sharedLocks= ] 2013-02-10 22:17:10,109 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-12) Running command: LoginUserCommand internal: false. 2013-02-10 22:17:10,117 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-12) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version 2013-02-10 22:17:10,799 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-8) Running command: LoginUserCommand internal: false. 2013-02-10 22:17:10,809 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-8) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version 2013-02-10 22:17:11,596 INFO [org.ovirt.engine.core.bll.LoginUserCommand] (ajp-/127.0.0.1:8702-5) Running command: LoginUserCommand internal: false. 2013-02-10 22:17:11,617 WARN [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-5) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version
please attach full engine log (also XML of the test).
Created attachment 699165 [details] engine.log Query to API is run like this: curl -k -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -H "Filter: $filter" -d "<vm><name>test_vm</name><cluster><name>cluster</name></cluster><template><name>Blank</name></template></vm>" -u $U https://$url/api/vms/
3.2 has been released