Bug 1585745 - automation executed on field refresh are called twice in self service dialogs
Summary: automation executed on field refresh are called twice in self service dialogs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service
Version: 5.9.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.9.3
Assignee: Chris Hale
QA Contact: Shveta
URL:
Whiteboard:
Depends On: 1576873
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-04 15:14 UTC by Satoe Imaishi
Modified: 2023-09-15 01:27 UTC (History)
12 users (show)

Fixed In Version: 5.9.3.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1576873
Environment:
Last Closed: 2018-07-12 13:15:53 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1572711 0 urgent CLOSED Automate Methods from Dynamic Dialog are being Run More than Designed / Expected 2022-07-09 09:38:06 UTC
Red Hat Knowledge Base (Solution) 3459811 0 None None None 2018-06-04 15:14:39 UTC
Red Hat Product Errata RHSA-2018:2184 0 None None None 2018-07-12 13:16:43 UTC

Comment 4 Shveta 2018-06-07 05:22:44 UTC
When value "a" is selected in First dropdown
========================================
Test value AEMethod is executed once:


[----] I, [2018-06-07T00:39:54.584234 #12111:11a0044]  INFO -- : User [admin] with current group ID [2] name [EvmGroup-super_administrator]
[----] I, [2018-06-07T00:39:54.586440 #12111:11a0044]  INFO -- : Instantiating [/Service/Provisioning/StateMachines/FillFields/test_value_1?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=1&User%3A%3Auser=1&dialog_option=a&object_name=test_value_1&vmdb_object_type=service_template]
[----] I, [2018-06-07T00:39:54.848986 #12111:11a0044]  INFO -- : Updated namespace [/Service/Provisioning/StateMachines/FillFields/test_value_1?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=1&User%3A%3Auser=1&dialog_option=a&object_name=test_value_1&vmdb_object_type=service_template  Banc_Sabadell/Service/Provisioning/StateMachines]
[----] I, [2018-06-07T00:39:55.239398 #12111:11a0044]  INFO -- : Updated namespace [Service/Provisioning/StateMachines/FillFields/test_value_1  Banc_Sabadell/Service/Provisioning/StateMachines]
[----] I, [2018-06-07T00:39:55.250936 #12111:11a0044]  INFO -- : Invoking [inline] method [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1] with inputs [{}]
[----] I, [2018-06-07T00:39:55.252333 #12111:11a0044]  INFO -- : <AEMethod [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1]> Starting
[----] I, [2018-06-07T00:39:56.186272 #12111:359c63c]  INFO -- : <AEMethod test_value_1> Value 1: a
[----] I, [2018-06-07T00:39:56.188350 #12111:359c63c]  INFO -- : <AEMethod test_value_1> Estem A
[----] I, [2018-06-07T00:39:56.224024 #12111:11a0044]  INFO -- : <AEMethod [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1]> Ending
[----] I, [2018-06-07T00:39:56.224164 #12111:11a0044]  INFO -- : Method exited with rc=MIQ_OK



When value is changed to b
============
[----] I, [2018-06-07T00:58:18.152927 #12111:11a0440]  INFO -- : User [admin] with current group ID [2] name [EvmGroup-super_administrator]
[----] I, [2018-06-07T00:58:18.157955 #12111:11a0440]  INFO -- : Instantiating [/Service/Provisioning/StateMachines/FillFields/test_value_1?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=1&User%3A%3Auser=1&dialog_option=b&dialog_value=One&object_name=test_value_1&vmdb_object_type=service_template]
[----] I, [2018-06-07T00:58:18.550895 #12111:11a0440]  INFO -- : Updated namespace [/Service/Provisioning/StateMachines/FillFields/test_value_1?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=1&User%3A%3Auser=1&dialog_option=b&dialog_value=One&object_name=test_value_1&vmdb_object_type=service_template  Banc_Sabadell/Service/Provisioning/StateMachines]
[----] I, [2018-06-07T00:58:18.925258 #12111:11a0440]  INFO -- : Updated namespace [Service/Provisioning/StateMachines/FillFields/test_value_1  Banc_Sabadell/Service/Provisioning/StateMachines]
[----] I, [2018-06-07T00:58:18.939360 #12111:11a0440]  INFO -- : Invoking [inline] method [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1] with inputs [{}]
[----] I, [2018-06-07T00:58:18.941132 #12111:11a0440]  INFO -- : <AEMethod [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1]> Starting 
[----] I, [2018-06-07T00:58:19.786204 #12111:b12808]  INFO -- : <AEMethod test_value_1> Value 1: b
[----] I, [2018-06-07T00:58:19.787187 #12111:b12808]  INFO -- : <AEMethod test_value_1> Estem B
[----] I, [2018-06-07T00:58:19.819054 #12111:11a0440]  INFO -- : <AEMethod [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1]> Ending
[----] I, [2018-06-07T00:58:19.819259 #12111:11a0440]  INFO -- : Method exited with rc=MIQ_OK



WHen value is changed back to a 
==================================
[----] I, [2018-06-07T00:59:05.848537 #12111:11a02b0]  INFO -- : User [admin] with current group ID [2] name [EvmGroup-super_administrator]
[----] I, [2018-06-07T00:59:05.851763 #12111:11a02b0]  INFO -- : Instantiating [/Service/Provisioning/StateMachines/FillFields/test_value_1?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=1&User%3A%3Auser=1&dialog_option=a&dialog_value=One&object_name=test_value_1&vmdb_object_type=service_template]
[----] I, [2018-06-07T00:59:06.191111 #12111:11a02b0]  INFO -- : Updated namespace [/Service/Provisioning/StateMachines/FillFields/test_value_1?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=1&User%3A%3Auser=1&dialog_option=a&dialog_value=One&object_name=test_value_1&vmdb_object_type=service_template  Banc_Sabadell/Service/Provisioning/StateMachines]
[----] I, [2018-06-07T00:59:06.539249 #12111:11a02b0]  INFO -- : Updated namespace [Service/Provisioning/StateMachines/FillFields/test_value_1  Banc_Sabadell/Service/Provisioning/StateMachines]
[----] I, [2018-06-07T00:59:06.548544 #12111:11a02b0]  INFO -- : Invoking [inline] method [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1] with inputs [{}]
[----] I, [2018-06-07T00:59:06.549734 #12111:11a02b0]  INFO -- : <AEMethod [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1]> Starting 
[----] I, [2018-06-07T00:59:07.192767 #12111:b124fc]  INFO -- : <AEMethod test_value_1> Value 1: a
[----] I, [2018-06-07T00:59:07.193488 #12111:b124fc]  INFO -- : <AEMethod test_value_1> Estem A
[----] I, [2018-06-07T00:59:07.217207 #12111:11a02b0]  INFO -- : <AEMethod [/Banc_Sabadell/Service/Provisioning/StateMachines/FillFields/test_value_1]> Ending
[----] I, [2018-06-07T00:59:07.217355 #12111:11a02b0]  INFO -- : Method exited with rc=MIQ_OK



Each time AEMethod is invoked once.

Verification is done from SUI as well as Classic UI.
Appliance : https://10.8.199.164/ui/service

Comment 5 Shveta 2018-06-07 05:26:58 UTC
Verified on 5.9.3.1.20180606184006_8d120c0
=====================================
Based on comment 38 , if Customer or Felix want to check the fix , 
the appliance https://10.8.199.164/ui/service/ can be used .
Service -> catalog_item_method




This issue will stil be seen though https://bugzilla.redhat.com/show_bug.cgi?id=1558271, which is to be fixed in 5.10.
(Mentioning just to make sure that this issue is handled separately)

Comment 9 errata-xmlrpc 2018-07-12 13:15:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2184

Comment 11 Red Hat Bugzilla 2023-09-15 01:27:20 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days


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