Bug 988086 - [ExternalTasks] When adding new step, type is always EXECUTING
Summary: [ExternalTasks] When adding new step, type is always EXECUTING
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Eli Mesika
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 17:22 UTC by Vojtech Szocs
Modified: 2013-09-23 07:27 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-23 07:27:22 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 17375 0 None None None Never

Description Vojtech Szocs 2013-07-24 17:22:44 UTC
Assume JOB_ID is ID of existing job.

POST https://192.168.122.229/api/jobs/JOB_ID/steps/
<step>
  <description>Test Step</description>
  <type>VALIDATING</type>
  <status>
    <state>STARTED</state>
  </status>
</step>

POST response = step created with type EXECUTING
<step href="/api/jobs/JOB_ID/steps/NEW_STEP_ID" id="NEW_STEP_ID">
    <actions>
        <link href="/api/jobs/JOB_ID/steps/NEW_STEP_ID/end" rel="end"/>
    </actions>
    <description>Step</description>
    <job href="/api/jobs/JOB_ID" id="JOB_ID"/>
    <type>executing</type>
    <number>0</number>
    <status>
        <state>STARTED</state>
    </status>
    <start_time>2013-07-24T16:50:20.061+02:00</start_time>
    <external>true</external>
</step>

If I omit <type> from POST request, I'll get following fault: Step [type] required for add

This makes <type> required in POST request but it doesn't seem to have any effect.

Comment 1 Eli Mesika 2013-08-01 09:25:41 UTC
fixed in commit : 6404cf7

Comment 2 Itamar Heim 2013-08-21 16:40:07 UTC
as RC is built, moving to ON_QA (hopefully did not catch incorrect bugs when doing this)

Comment 3 Itamar Heim 2013-09-23 07:27:22 UTC
closing as this should be in 3.3 (doing so in bulk, so may be incorrect)


Note You need to log in before you can comment on or make changes to this bug.