Bug 1585251 - Dynamic fields ran twice during initial load and after submit
Summary: Dynamic fields ran twice during initial load and after submit
Keywords:
Status: CLOSED DUPLICATE of bug 1595776
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: GA
: 5.10.0
Assignee: Greg McCullough
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-01 16:05 UTC by Tsai Li Ming
Modified: 2023-09-14 04:29 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-09 20:20:49 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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