Bug 988087
| Summary: | [ExternalTasks] When adding new step, state is always STARTED | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Vojtech Szocs <vszocs> |
| Component: | ovirt-engine-core | Assignee: | Eli Mesika <emesika> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.3 | CC: | acathrow, emesika, iheim, yzaslavs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | infra | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-23 07:27:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
fixed in commit: d47a623 as RC is built, moving to ON_QA (hopefully did not catch incorrect bugs when doing this) closing as this should be in 3.3 (doing so in bulk, so may be incorrect) |
Assume JOB_ID is ID of existing job. POST /api/jobs/JOB_ID/steps/ <step> <description>Test Step</description> <type>EXECUTING</type> <status> <state>FINISHED</state> </status> </step> POST response = step created with state STARTED <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>Test 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:59:37.061+02:00</start_time> <external>true</external> </step> New step always put into STARTED state actually makes sense. But if I omit <status> from POST request, I'll get following fault: Step [status.state] required for add This makes <status> required in POST request but it doesn't seem to have any effect.