Created attachment 1172587 [details] engine log Description of problem: Define to long name to the affinity label raise exception under engine.log Version-Release number of selected component (if applicable): rhevm-4.0.0.6-0.1.el7ev.noarch How reproducible: Always Steps to Reproduce: 1. Create affinity label with name bigger than 50 characters 2. 3. Actual results: [Internal Engine Error] 2016-06-26 11:15:03,301 ERROR [org.ovirt.engine.core.bll.AddLabelCommand] (default task-15) [774b037d] Exception: org.springframework.dao.DataIntegrityViolationException: CallableStatementCallback; SQL [{call createlabel(?, ?, ?, ?, ?)}]; ERROR: value too long for type character varying(50) Expected results: Validation error under engine and no exceptions under engine log Additional info:
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.
Verified ovirt-engine-4.1.0-0.2.master.20161212172238.gitea103bd.el7.centos.noarch Error message: <fault> <detail>[An affinity label name must be 1-50 characters long., Attribute: label.name]</detail> <reason>Operation Failed</reason> </fault> No exception under the engine log