Bug 1585251

Summary: Dynamic fields ran twice during initial load and after submit
Product: Red Hat CloudForms Management Engine Reporter: Tsai Li Ming <ltsai>
Component: AutomateAssignee: Greg McCullough <gmccullo>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.9.0CC: duhlmann, gblomqui, greartes, hkataria, lavenel, ltsai, mkanoor, mpovolny, obarenbo, tfitzger
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-09 20:20:49 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:

Description Tsai Li Ming 2018-06-01 16:05:56 UTC
Description of problem:

Dynamic field runs twice.

### After clicking on button ###

[----] I, [2018-06-01T12:02:32.843829 #27433:38d91b0]  INFO -- : User [admin] with current group ID [1000000000002] name [EvmGroup-super_administrator]
[----] I, [2018-06-01T12:02:32.846693 #27433:38d91b0]  INFO -- : Instantiating [/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff?MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&VmOrTemplate%3A%3Avm=1000000000002&object_name=Do_Simple_Stuff&vmdb_object_type=vm]
[----] I, [2018-06-01T12:02:32.867717 #27433:38d91b0]  INFO -- : Updated namespace [/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff?MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&VmOrTemplate%3A%3Avm=1000000000002&object_name=Do_Simple_Stuff&vmdb_object_type=vm  ACME/Integeration/Cloud/AWS/S3]
[----] I, [2018-06-01T12:02:32.909837 #27433:38d91b0]  INFO -- : Updated namespace [Integeration/Cloud/AWS/S3/Methods/do_simple_stuff  ACME/Integeration/Cloud/AWS/S3]
[----] I, [2018-06-01T12:02:32.921206 #27433:38d91b0]  INFO -- : Invoking [inline] method [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff] with inputs [{}]
[----] I, [2018-06-01T12:02:32.922269 #27433:38d91b0]  INFO -- : <AEMethod [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff]> Starting 
[----] I, [2018-06-01T12:02:33.384091 #27433:38d91b0]  INFO -- : <AEMethod [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff]> Ending
[----] I, [2018-06-01T12:02:33.384209 #27433:38d91b0]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2018-06-01T12:02:33.642742 #27442:4467964]  INFO -- : User [admin] with current group ID [1000000000002] name [EvmGroup-super_administrator]
[----] I, [2018-06-01T12:02:33.645651 #27442:4467964]  INFO -- : Instantiating [/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff?MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&VmOrTemplate%3A%3Avm=1000000000002&object_name=Do_Simple_Stuff&vmdb_object_type=vm]
[----] I, [2018-06-01T12:02:33.664088 #27442:4467964]  INFO -- : Updated namespace [/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff?MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&VmOrTemplate%3A%3Avm=1000000000002&object_name=Do_Simple_Stuff&vmdb_object_type=vm  ACME/Integeration/Cloud/AWS/S3]
[----] I, [2018-06-01T12:02:33.700256 #27442:4467964]  INFO -- : Updated namespace [Integeration/Cloud/AWS/S3/Methods/do_simple_stuff  ACME/Integeration/Cloud/AWS/S3]
[----] I, [2018-06-01T12:02:33.710314 #27442:4467964]  INFO -- : Invoking [inline] method [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff] with inputs [{}]
[----] I, [2018-06-01T12:02:33.711423 #27442:4467964]  INFO -- : <AEMethod [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff]> Starting 
[----] I, [2018-06-01T12:02:34.206846 #27442:4467964]  INFO -- : <AEMethod [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff]> Ending
[----] I, [2018-06-01T12:02:34.206961 #27442:4467964]  INFO -- : Method exited with rc=MIQ_OK


### After clicking on Submit ###


[----] I, [2018-06-01T12:02:40.561278 #27442:445e33c]  INFO -- : User [admin] with current group ID [1000000000002] name [EvmGroup-super_administrator]
[----] I, [2018-06-01T12:02:40.565666 #27442:445e33c]  INFO -- : Instantiating [/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff?MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&VmOrTemplate%3A%3Avm=1000000000002&object_name=Do_Simple_Stuff&vmdb_object_type=vm]
[----] I, [2018-06-01T12:02:40.587065 #27442:445e33c]  INFO -- : Updated namespace [/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff?MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&VmOrTemplate%3A%3Avm=1000000000002&object_name=Do_Simple_Stuff&vmdb_object_type=vm  ACME/Integeration/Cloud/AWS/S3]
[----] I, [2018-06-01T12:02:40.624855 #27442:445e33c]  INFO -- : Updated namespace [Integeration/Cloud/AWS/S3/Methods/do_simple_stuff  ACME/Integeration/Cloud/AWS/S3]
[----] I, [2018-06-01T12:02:40.635503 #27442:445e33c]  INFO -- : Invoking [inline] method [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff] with inputs [{}]
[----] I, [2018-06-01T12:02:40.636584 #27442:445e33c]  INFO -- : <AEMethod [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff]> Starting 
[----] I, [2018-06-01T12:02:40.983896 #27442:445e33c]  INFO -- : <AEMethod [/ACME/Integeration/Cloud/AWS/S3/Methods/Do_Simple_Stuff]> Ending
[----] I, [2018-06-01T12:02:40.984053 #27442:445e33c]  INFO -- : Method exited with rc=MIQ_OK


Version-Release number of selected component (if applicable):
5.9.2.4.20180501195858_35dc609 

How reproducible:
Always

Steps to Reproduce:
1. Create a new dialog form with 1 dynamic field. 
2. Create a button under Customization -> Buttons -> VM and Instance
3. Go to a vm and click on the button.
4. Observe automation.log

Actual results:
Dynamic field called twice

Expected results:
Should not be called twice

Additional info:

Comment 2 drew uhlmann 2018-06-19 20:55:25 UTC
Hey Tsai! These bugs really need reproducer steps, automate code exports, and the dialog exports in order for us to be able to reproduce. Thanks!

Comment 3 Tina Fitzgerald 2018-07-09 20:20:49 UTC

*** This bug has been marked as a duplicate of bug 1595776 ***

Comment 4 Red Hat Bugzilla 2023-09-14 04:29:18 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days