Description of problem: Version-Release number of selected component (if applicable): rhevm-restapi-3.5.0-0.21.el6ev.noarch How reproducible: always Steps to Reproduce: 1. curl -k -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -H "Filter: $filter" -u $U -d "<disk><interface>virtio</interface><format>cow</format><size>1073741824</size><alias>auto_delete_disk</alias></disk>" $URL/disks Actual results: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fault> <reason>Operation Failed</reason> <detail>[General command validation failure.]</detail> </fault> Expected results: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fault> <reason>Incomplete parameters</reason> <detail>Disk [disk_profile] required for add</detail> </fault> Additional info: 2014-11-27 09:42:57,465 ERROR [org.ovirt.engine.core.bll.AddDiskCommand] (ajp-/127.0.0.1:8702-14) [79b27bac] Error during CanDoActionFailure.: java.lang.NullPointerException at org.ovirt.engine.core.bll.AddDiskCommand.setAndValidateDiskProfiles(AddDiskCommand.java:600) [bll.jar:] at org.ovirt.engine.core.bll.AddDiskCommand.canDoAction(AddDiskCommand.java:121) [bll.jar:] at org.ovirt.engine.core.bll.CommandBase.internalCanDoAction(CommandBase.java:755) [bll.jar:]
This looks like a duplicate of or closely related to bug 1160846. The difference is that in this case you are trying to add a disk without attaching it to a VM, but the root cause is probably the same. I think this (and also bug 1160846) should block the release.
The issue here that floating disk's storage domain wasn't specified. that revealed the NPE.
*** Bug 1162756 has been marked as a duplicate of this bug. ***
verified in av13.4 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fault> <reason>Operation Failed</reason> <detail>[Cannot add Virtual Machine Disk. Storage Domain hasn't been specified.]</detail> </fault>
rhev 3.5.0 was released. closing.