Bug 1235259 - Dynamic drop downs are executing up to 3 times when a service dialog executes
Summary: Dynamic drop downs are executing up to 3 times when a service dialog executes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.4.0
Hardware: All
OS: All
high
urgent
Target Milestone: GA
: 5.5.0
Assignee: eclarizi
QA Contact: Taras Lehinevych
URL:
Whiteboard:
Depends On: 1271104 1298968
Blocks: 1238720
TreeView+ depends on / blocked
 
Reported: 2015-06-24 12:31 UTC by Kevin Morey
Modified: 2016-08-03 01:33 UTC (History)
14 users (show)

Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1238720 (view as bug list)
Environment:
Last Closed: 2015-12-08 13:18:40 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
drop down screenshot (78.20 KB, image/png)
2015-06-24 12:31 UTC, Kevin Morey
no flags Details
dropdown with 1 item = text field (280.52 KB, application/x-gzip)
2015-06-26 11:30 UTC, Eduardo Minguez
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 0 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 17:58:09 UTC

Description Kevin Morey 2015-06-24 12:31:56 UTC
Created attachment 1042717 [details]
drop down screenshot

Description of problem:
Whenever a dynamic drop down is used in a service dialog it is being instantiated up to 3 times. 

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

How reproducible:
100%

Steps to Reproduce:
1. create a service dialog 
2. create a dynamic drop down with "Show Refresh Button" and "Load Values on Init" checked
3. create a service catalog item with the new dialog
4. order the service

Actual results:
When the service is ordered the dynamic drop down is instantiated 3 times backk-to-back 

Expected results:
expected the dynamic drop down to be executed just once.

Additional info:
See attached screen shot of the dynamic drop down properties


Here is an excerpt of the automation.log:

[----] I, [2015-06-24T08:19:59.233838 #2240:b3feac]  INFO -- : Instantiating [/Service/Provisioning/DynamicDropDowns/vmware_list_templates?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=3&User%3A%3Auser=1&object_name=vmware_list_templates&vmdb_object_type=service_template]
[----] I, [2015-06-24T08:19:59.383818 #2240:b3feac]  INFO -- : Updated namespace [/Service/Provisioning/DynamicDropDowns/vmware_list_templates?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=3&User%3A%3Auser=1&object_name=vmware_list_templates&vmdb_object_type=service_template  CloudFormsPOC/Service/Provisioning]
[----] I, [2015-06-24T08:19:59.456372 #2240:b3feac]  INFO -- : Updated namespace [Service/Provisioning/DynamicDropDowns/vmware_list_templates  CloudFormsPOC/Service/Provisioning]
[----] I, [2015-06-24T08:19:59.460902 #2240:b3feac]  INFO -- : Invoking [inline] method [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates] with inputs [{}]
[----] I, [2015-06-24T08:19:59.461716 #2240:b3feac]  INFO -- : <AEMethod [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates]> Starting
[----] I, [2015-06-24T08:19:59.781466 #2240:73ea3bc]  INFO -- : <AEMethod vmware_list_templates> CloudForms Automate Method Started
[----] I, [2015-06-24T08:19:59.781870 #2240:73ea3bc]  INFO -- : <AEMethod vmware_list_templates> Begin $evm.root.attributes
[----] I, [2015-06-24T08:19:59.905409 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: data_type = string
[----] I, [2015-06-24T08:19:59.906608 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: miq_server = #<MiqAeMethodService::MiqAeServiceMiqServer:0x0000000df3af40>
[----] I, [2015-06-24T08:19:59.907268 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: miq_server_id = 1
[----] I, [2015-06-24T08:19:59.907968 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: object_name = vmware_list_templates
[----] I, [2015-06-24T08:19:59.908648 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: required = true
[----] I, [2015-06-24T08:19:59.909633 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: service_template = #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x0000000df6da08>
[----] I, [2015-06-24T08:19:59.910289 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: service_template_id = 3
[----] I, [2015-06-24T08:19:59.910980 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: sort_by = description
[----] I, [2015-06-24T08:19:59.911671 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: sort_order = ascending
[----] I, [2015-06-24T08:19:59.912659 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: user = #<MiqAeMethodService::MiqAeServiceUser:0x0000000e281ac8>
[----] I, [2015-06-24T08:19:59.913317 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: user_id = 1
[----] I, [2015-06-24T08:19:59.913992 #2240:7400ea0]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: vmdb_object_type = service_template
[----] I, [2015-06-24T08:19:59.914585 #2240:73ea3bc]  INFO -- : <AEMethod vmware_list_templates> End $evm.root.attributes
[----] I, [2015-06-24T08:19:59.914969 #2240:73ea3bc]  INFO -- : <AEMethod vmware_list_templates>
[----] I, [2015-06-24T08:20:00.628912 #2240:73ea3bc]  INFO -- : <AEMethod vmware_list_templates> $evm.object['values']: {"8fb48552-112d-11e5-901f-005056bfe05a"=>"rhel6-x86_64 on RDU-vCenter", "8fb99808-112d-11e5-901f-005056bfe05a"=>"rdu-rhel7-template on RDU-vCenter", "9039825c-112d-11e5-901f-005056bfe05a"=>"rdu-win2K8R2 on RDU-vCenter", "905758ea-112d-11e5-901f-005056bfe05a"=>"rdu_rhel6_template on RDU-vCenter", nil=>"< choose a template >"}
[----] I, [2015-06-24T08:20:00.629323 #2240:73ea3bc]  INFO -- : <AEMethod vmware_list_templates> CloudForms Automate Method Ended
[----] I, [2015-06-24T08:20:00.637018 #2240:b3feac]  INFO -- : <AEMethod [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates]> Ending
[----] I, [2015-06-24T08:20:00.637118 #2240:b3feac]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2015-06-24T08:20:00.705452 #2240:b3feac]  INFO -- : Instantiating [/Service/Provisioning/DynamicDropDowns/vmware_list_templates?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=3&User%3A%3Auser=1&object_name=vmware_list_templates&vmdb_object_type=service_template]
[----] I, [2015-06-24T08:20:00.747677 #2240:b3feac]  INFO -- : Updated namespace [/Service/Provisioning/DynamicDropDowns/vmware_list_templates?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=3&User%3A%3Auser=1&object_name=vmware_list_templates&vmdb_object_type=service_template  CloudFormsPOC/Service/Provisioning]
[----] I, [2015-06-24T08:20:00.927399 #2240:b3feac]  INFO -- : Updated namespace [Service/Provisioning/DynamicDropDowns/vmware_list_templates  CloudFormsPOC/Service/Provisioning]
[----] I, [2015-06-24T08:20:00.931742 #2240:b3feac]  INFO -- : Invoking [inline] method [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates] with inputs [{}]
[----] I, [2015-06-24T08:20:00.932343 #2240:b3feac]  INFO -- : <AEMethod [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates]> Starting
[----] I, [2015-06-24T08:20:01.216877 #2240:605c5d4]  INFO -- : <AEMethod vmware_list_templates> CloudForms Automate Method Started
[----] I, [2015-06-24T08:20:01.217405 #2240:605c5d4]  INFO -- : <AEMethod vmware_list_templates> Begin $evm.root.attributes
[----] I, [2015-06-24T08:20:01.220554 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: data_type = string
[----] I, [2015-06-24T08:20:01.221923 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: miq_server = #<MiqAeMethodService::MiqAeServiceMiqServer:0x0000000eff3f08>
[----] I, [2015-06-24T08:20:01.222744 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: miq_server_id = 1
[----] I, [2015-06-24T08:20:01.223598 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: object_name = vmware_list_templates
[----] I, [2015-06-24T08:20:01.224369 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: required = true
[----] I, [2015-06-24T08:20:01.225419 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: service_template = #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x0000000effa7b8>
[----] I, [2015-06-24T08:20:01.226140 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: service_template_id = 3
[----] I, [2015-06-24T08:20:01.226982 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: sort_by = description
[----] I, [2015-06-24T08:20:01.227877 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: sort_order = ascending
[----] I, [2015-06-24T08:20:01.229196 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: user = #<MiqAeMethodService::MiqAeServiceUser:0x0000000f001040>
[----] I, [2015-06-24T08:20:01.230175 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: user_id = 1
[----] I, [2015-06-24T08:20:01.231062 #2240:5f6a900]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: vmdb_object_type = service_template
[----] I, [2015-06-24T08:20:01.231813 #2240:605c5d4]  INFO -- : <AEMethod vmware_list_templates> End $evm.root.attributes
[----] I, [2015-06-24T08:20:01.232339 #2240:605c5d4]  INFO -- : <AEMethod vmware_list_templates>
[----] I, [2015-06-24T08:20:01.264946 #2240:605c5d4]  INFO -- : <AEMethod vmware_list_templates> $evm.object['values']: {"8fb48552-112d-11e5-901f-005056bfe05a"=>"rhel6-x86_64 on RDU-vCenter", "8fb99808-112d-11e5-901f-005056bfe05a"=>"rdu-rhel7-template on RDU-vCenter", "9039825c-112d-11e5-901f-005056bfe05a"=>"rdu-win2K8R2 on RDU-vCenter", "905758ea-112d-11e5-901f-005056bfe05a"=>"rdu_rhel6_template on RDU-vCenter", nil=>"< choose a template >"}
[----] I, [2015-06-24T08:20:01.265369 #2240:605c5d4]  INFO -- : <AEMethod vmware_list_templates> CloudForms Automate Method Ended
[----] I, [2015-06-24T08:20:01.272178 #2240:b3feac]  INFO -- : <AEMethod [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates]> Ending
[----] I, [2015-06-24T08:20:01.272277 #2240:b3feac]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2015-06-24T08:20:01.275933 #2240:b3feac]  INFO -- : Instantiating [/Service/Provisioning/DynamicDropDowns/vmware_list_templates?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=3&User%3A%3Auser=1&object_name=vmware_list_templates&vmdb_object_type=service_template]
[----] I, [2015-06-24T08:20:01.318108 #2240:b3feac]  INFO -- : Updated namespace [/Service/Provisioning/DynamicDropDowns/vmware_list_templates?MiqServer%3A%3Amiq_server=1&ServiceTemplate%3A%3Aservice_template=3&User%3A%3Auser=1&object_name=vmware_list_templates&vmdb_object_type=service_template  CloudFormsPOC/Service/Provisioning]
[----] I, [2015-06-24T08:20:01.492241 #2240:b3feac]  INFO -- : Updated namespace [Service/Provisioning/DynamicDropDowns/vmware_list_templates  CloudFormsPOC/Service/Provisioning]
[----] I, [2015-06-24T08:20:01.495890 #2240:b3feac]  INFO -- : Invoking [inline] method [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates] with inputs [{}]
[----] I, [2015-06-24T08:20:01.496350 #2240:b3feac]  INFO -- : <AEMethod [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates]> Starting
[----] I, [2015-06-24T08:20:01.786220 #2240:6d263a0]  INFO -- : <AEMethod vmware_list_templates> CloudForms Automate Method Started
[----] I, [2015-06-24T08:20:01.786661 #2240:6d263a0]  INFO -- : <AEMethod vmware_list_templates> Begin $evm.root.attributes
[----] I, [2015-06-24T08:20:01.789472 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: data_type = string
[----] I, [2015-06-24T08:20:01.790570 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: miq_server = #<MiqAeMethodService::MiqAeServiceMiqServer:0x0000000d753ae8>
[----] I, [2015-06-24T08:20:01.791300 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: miq_server_id = 1
[----] I, [2015-06-24T08:20:01.792034 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: object_name = vmware_list_templates
[----] I, [2015-06-24T08:20:01.792904 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: required = true
[----] I, [2015-06-24T08:20:01.794134 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: service_template = #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x0000000d77d028>
[----] I, [2015-06-24T08:20:01.794985 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: service_template_id = 3
[----] I, [2015-06-24T08:20:01.795835 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: sort_by = description
[----] I, [2015-06-24T08:20:01.796673 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: sort_order = ascending
[----] I, [2015-06-24T08:20:01.797997 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: user = #<MiqAeMethodService::MiqAeServiceUser:0x0000000d7a4f10>
[----] I, [2015-06-24T08:20:01.798901 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: user_id = 1
[----] I, [2015-06-24T08:20:01.799787 #2240:6d48dd8]  INFO -- : <AEMethod vmware_list_templates> 	 Attribute: vmdb_object_type = service_template
[----] I, [2015-06-24T08:20:01.801969 #2240:6d263a0]  INFO -- : <AEMethod vmware_list_templates> End $evm.root.attributes
[----] I, [2015-06-24T08:20:01.802498 #2240:6d263a0]  INFO -- : <AEMethod vmware_list_templates>
[----] I, [2015-06-24T08:20:01.831192 #2240:6d263a0]  INFO -- : <AEMethod vmware_list_templates> $evm.object['values']: {"8fb48552-112d-11e5-901f-005056bfe05a"=>"rhel6-x86_64 on RDU-vCenter", "8fb99808-112d-11e5-901f-005056bfe05a"=>"rdu-rhel7-template on RDU-vCenter", "9039825c-112d-11e5-901f-005056bfe05a"=>"rdu-win2K8R2 on RDU-vCenter", "905758ea-112d-11e5-901f-005056bfe05a"=>"rdu_rhel6_template on RDU-vCenter", nil=>"< choose a template >"}
[----] I, [2015-06-24T08:20:01.831611 #2240:6d263a0]  INFO -- : <AEMethod vmware_list_templates> CloudForms Automate Method Ended
[----] I, [2015-06-24T08:20:01.838640 #2240:b3feac]  INFO -- : <AEMethod [/CloudFormsPOC/Service/Provisioning/DynamicDropDowns/vmware_list_templates]> Ending
[----] I, [2015-06-24T08:20:01.838722 #2240:b3feac]  INFO -- : Method exited with rc=MIQ_OK

Comment 2 Eduardo Minguez 2015-06-26 11:30:03 UTC
There is also a related problem with this issue:
As they are loaded even if you don't want, if the method returns only a result, the dropdown is converted to a text field and even if you refresh it, the dropdown never appears.

The reproducer is attached

Comment 3 Eduardo Minguez 2015-06-26 11:30:34 UTC
Created attachment 1043481 [details]
dropdown with 1 item = text field

Comment 4 eclarizi 2015-07-01 18:02:20 UTC
Can this be re-tested with the latest 5.4.z? I reproduced with an older version but with the latest 5.4.z it appears to be fixed.

Comment 5 Kevin Morey 2015-07-01 19:07:06 UTC
How do i get access to the latest 5.4.z? I only have access to the stuff that is on the rhn portal.

Comment 6 eclarizi 2015-07-01 22:07:13 UTC
Nevermind, I misspoke, I meant on the latest downstream build. It should be fixed by a combination of these two MRs:

http://gitlab.cloudforms.lab.eng.rdu2.redhat.com/cloudforms/cfme/merge_requests/149
http://gitlab.cloudforms.lab.eng.rdu2.redhat.com/cloudforms/cfme/merge_requests/95

I'll move this into POST so that it can be verified

Comment 9 eclarizi 2015-07-16 21:34:42 UTC
Similar to my comment on https://bugzilla.redhat.com/show_bug.cgi?id=1236522, again that is the cloned one for a different target release. This one is for the latest upstream build, whereas that one is for 5.4.z

Comment 11 errata-xmlrpc 2015-12-08 13:18:40 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-2015:2551


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