Bug 1347409
Summary: | Service order through API does not auto approve | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Fabien Dupont <fdupont> | |
Component: | API | Assignee: | abellott | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jan Krocil <jkrocil> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 5.6.0 | CC: | abellott, cbolz, cpelland, dajohnso, gmccullo, jhardy, jkrocil, lbopf, obarenbo, simaishi, sshveta | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.7.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | rest:service | |||
Fixed In Version: | 5.7.0.0 | Doc Type: | Known Issue | |
Doc Text: |
If a user orders a service through the REST API, they will see that their request stays in the 'Pending' state.
Workaround: Copy the following instance to a writeable domain and remove the guard condition:
Automate Instance: / ManageIQ / System / Policy / ServiceTemplateProvisionRequest_created
guard: ${/#miq_request.process}
|
Story Points: | --- | |
Clone Of: | ||||
: | 1350903 (view as bug list) | Environment: | ||
Last Closed: | 2017-01-11 20:09:29 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1350903 |
Description
Fabien Dupont
2016-06-16 18:27:29 UTC
Worked with Alberto to track down the issue. The REST API call creates the request differently then the OpsUI, which works with the new shopping cart logic, is doing it. They should both use the OpsUI logic. Code has been tested and once tests are cleaned up we will have a PR available. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/52be816b9ac11515fa31c0ee0e86b166c4a2fa7e commit 52be816b9ac11515fa31c0ee0e86b166c4a2fa7e Author: Alberto Bellotti <abellott> AuthorDate: Thu Jun 16 17:58:41 2016 -0400 Commit: Alberto Bellotti <abellott> CommitDate: Fri Jun 17 16:32:19 2016 -0400 [api] Fix for service_template order - Leverages new resource action workflow's submit_request - Provides validation - Added Service Template validate_order method and orderable? alias - Updated rspecs https://bugzilla.redhat.com/show_bug.cgi?id=1347409 app/controllers/api_controller/service_orders.rb | 4 ++ .../api_controller/service_templates.rb | 17 +++-- app/models/service_template.rb | 5 ++ config/api.yml | 2 + spec/requests/api/service_catalogs_spec.rb | 78 ++++++++++++++++++++-- spec/support/api_spec_helper.rb | 4 ++ 6 files changed, 96 insertions(+), 14 deletions(-) Looks good to me. I checked out the commit and my test is ok. Taras, lean on Shveta if you need assistance with services. In fact, it's not backported yet... putting back to ON_DEV. Odd, PR# 9276 showed backported to darga. I labeled https://github.com/ManageIQ/manageiq/pull/9276 back to darga/yes. |