Bug 1006762

Summary: Adding job with auto_cleared false, not working correct
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: Tareq Alayan <talayan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, bazulay, iheim, lpeer, oramraz, pstehlik, Rhev-m-bugs, yeylon, yzaslavs
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artyom 2013-09-11 09:05:37 UTC
Description of problem:
Adding job via rest:
<job>
<description>Test_JOB</description>
<auto_cleared>false</auto_cleared>
</job>
Create new job, but <auto_cleared>true</auto_cleared>

Also if you add job without auto_cleared flag, it also create job with <auto_cleared>true</auto_cleared>

<job>
<description>Test_JOB</description>
</job>

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

How reproducible:
Always

Steps to Reproduce:
1. See above
2.
3.

Actual results:
job with 
<auto_cleared>true</auto_cleared>


Expected results:
job with 
<auto_cleared>false</auto_cleared>

Additional info:
Line from engine log:
[org.ovirt.engine.core.bll.AddExternalJobCommand] (ajp-/127.0.0.1:8702-4) Running command: AddExternalJobCommand internal: false. Entities affected :  ID: aaa00000-0000-0000-0000-123456789aaa Type: System

Comment 1 Eli Mesika 2013-09-17 20:58:07 UTC
fixed in commit: 9cc75fe

Comment 2 Tareq Alayan 2013-10-09 12:46:07 UTC
verified

post:
<job>
<description>Test_JOB</description>
<auto_cleared>false</auto_cleared>
</job>

response:

<job href= "/api/jobs/b7810220-16c7-4a9f-8a19-ad18944e4eab" id="b7810220-16c7-4a9f-8a19-ad18944e4eab">
<actions>
<link href= "/api/jobs/b7810220-16c7-4a9f-8a19-ad18944e4eab/clear" rel="clear"/>
<link href= "/api/jobs/b7810220-16c7-4a9f-8a19-ad18944e4eab/end" rel="end"/>
</actions>
<description>Test_JOB</description>
<link href= "/api/jobs/b7810220-16c7-4a9f-8a19-ad18944e4eab/steps" rel="steps"/>
<status>
<state>STARTED</state>
</status>
<owner href= "/api/users/fdfc627c-d875-11e0-90f0-83df133b58cc" id="fdfc627c-d875-11e0-90f0-83df133b58cc"/>
<start_time>2013-10-09T15:44:32.796+03:00</start_time>
<last_updated>2013-10-09T15:44:32.796+03:00</last_updated>
<external>true</external>
<auto_cleared>false</auto_cleared>
</job>

Comment 3 Itamar Heim 2014-01-21 22:21:32 UTC
Closing - RHEV 3.3 Released

Comment 4 Itamar Heim 2014-01-21 22:26:52 UTC
Closing - RHEV 3.3 Released