Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1585745 - automation executed on field refresh are called twice in self service dialogs [NEEDINFO]
automation executed on field refresh are called twice in self service dialogs
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service (Show other bugs)
5.9.0
All All
high Severity high
: GA
: 5.9.3
Assigned To: Chris Hale
Shveta
: ZStream
Depends On: 1576873
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-04 11:14 EDT by Satoe Imaishi
Modified: 2018-07-12 09:16 EDT (History)
12 users (show)

See Also:
Fixed In Version: 5.9.3.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1576873
Environment:
Last Closed: 2018-07-12 09:15:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core
fdewaley: needinfo? (chhale)


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Bugzilla 1572711 None CLOSED Automate Methods from Dynamic Dialog are being Run More than Designed / Expected 2018-07-10 10:29 EDT
Red Hat Knowledge Base (Solution) 3459811 None None None 2018-06-04 11:14 EDT
Red Hat Product Errata RHSA-2018:2184 None None None 2018-07-12 09:16 EDT

  None (edit)
Comment 4 Shveta 2018-06-07 01:22:44 EDT
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 01:26:58 EDT
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 09:15:53 EDT
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

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