Bug 1698439
| Summary: | Dialogs based on an AWS orchestration template pass "0" instead of custom value set in dialog | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Felix Dewaleyne <fdewaley> | |
| Component: | Provisioning | Assignee: | Lucy Fu <lufu> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Niyaz Akhtar Ansari <nansari> | |
| Severity: | high | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> | |
| Priority: | high | |||
| Version: | 5.10.2 | CC: | dmetzger, fdewaley, gmccullo, jhardy, lufu, mshriver, obarenbo, simaishi, tfitzger, vaclav.miller | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| Target Release: | 5.11.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.11.0.1 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1702070 (view as bug list) | Environment: | ||
| Last Closed: | 2019-12-13 15:09:01 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | Bug | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1702070 | |||
|
Description
Felix Dewaleyne
2019-04-10 11:29:37 UTC
Additional scenario : 1. create AWS orchestration template 2. generate dialog from the template 3. create catalog item with template and dialog 4. order service 5. during the order, for the optional value place a valid number above 0. result : the value inputed for optional fields will turn into 0. After talking with the customer, I must correct previous updates - the issue happens when the optional field is *not* filled in, not when it is filled with valid data : 1. create AWS orchestration template 2. generate dialog from the template 3. create catalog item with template and dialog 4. order service 5. during the order, leave the optional field unset result : the value 0 is set instead of None, making validation fail. expected : None is passed and not 0 Based on error message coming back from the Provider I would suggest (and confirmed with BillW) that we should protect the logic here: https://github.com/ManageIQ/manageiq-providers-amazon/blob/master/app/models/manageiq/providers/amazon/cloud_manager/orchestration_service_option_converter.rb#L6-L12 If we to_i the dialog value and it is zero we should pass nil. New commit detected on ManageIQ/manageiq-providers-amazon/master: https://github.com/ManageIQ/manageiq-providers-amazon/commit/261af4d77052be0c211d68952b7f280b4f02cebe commit 261af4d77052be0c211d68952b7f280b4f02cebe Author: Lucy Fu <lufu> AuthorDate: Mon Apr 15 09:41:15 2019 -0400 Commit: Lucy Fu <lufu> CommitDate: Mon Apr 15 09:41:15 2019 -0400 Return not set timeout in dialog as nil instead of 0. To pass the validation on timeoutInMinutes that the value must be greater than or equal to 1. https://bugzilla.redhat.com/show_bug.cgi?id=1698439 app/models/manageiq/providers/amazon/cloud_manager/orchestration_service_option_converter.rb | 4 +- spec/models/manageiq/providers/amazon/cloud_manager/orchestration_service_option_converter_spec.rb | 9 +- 2 files changed, 10 insertions(+), 3 deletions(-) |