Bug 1518390 - Dynamic Dialog Elements not populating
Summary: Dynamic Dialog Elements not populating
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: GA
: 5.10.0
Assignee: eclarizi
QA Contact: Shveta
URL:
Whiteboard:
Depends On:
Blocks: 1520678
TreeView+ depends on / blocked
 
Reported: 2017-11-28 19:58 UTC by Brant Evans
Modified: 2019-02-11 13:55 UTC (History)
6 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1520678 (view as bug list)
Environment:
Last Closed: 2019-02-11 13:55:45 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
automation.log (2.00 MB, text/plain)
2017-11-29 15:43 UTC, Brant Evans
no flags Details
evm.log (11.45 MB, text/plain)
2017-11-29 15:44 UTC, Brant Evans
no flags Details
available_clusters.rb (2.72 KB, text/plain)
2017-11-29 15:45 UTC, Brant Evans
no flags Details
Sample Dialog (5.28 KB, text/x-vhdl)
2017-11-29 16:27 UTC, Brant Evans
no flags Details

Description Brant Evans 2017-11-28 19:58:48 UTC
Description of problem:
Automate methods for dynamic dialog elements are being run twice. Prior to 5.9.0 the first invocation would NOT have $evm.root['vmdb_object_type'] set and the second invocation would have $evm.root['vmdb_object_type'] set. 

In 5.9.0 the order has switched. Now the invocation without $evm.root['vmdb_object_type'] is run second. This causes the dynamic dialogs that depend on the vmdb_object_type to be set to not populate the dialog elements as expected.

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

How reproducible:
Always

Steps to Reproduce:
1. Create a Service Dialog with a dynamic dialog element
2. Create a Service Catalog Item that uses the Service Dialog
3. Order the Service Catalog Item

Actual results:
Automate methods are run twice when loading the Service Dialog. Once with $evm.root['vmdb_object_type'] set and once without it set

Expected results:
Automate methods are run just once when loading the Service Dialog. At a minimum the order of the runs should be the same as previous versions.

Additional info:

automation.log messages:

[----] I, [2017-11-28T14:53:22.774949 #13350:19f24e0]  INFO -- : User [admin] with current group ID [3] name [EvmGroup-super_administrator]
[----] I, [2017-11-28T14:53:22.776443 #13350:19f24e0]  INFO -- : Instantiating [/Integration/RedHat/CloudForms/DynamicDropDowns/AvailableClusters?MiqServer%3A%3Amiq_server=2&ServiceTemplate%3A%3Aservice_template=1&User%3A%3Auser=1&dialog_number_of_sockets=0&dialog_service_name=&dialog_vm_memory=0&object_name=AvailableClusters&vmdb_object_type=service_template]
[----] I, [2017-11-28T14:53:22.815526 #13350:19f24e0]  INFO -- : Updated namespace [/Integration/RedHat/CloudForms/DynamicDropDowns/AvailableClusters?MiqServer%3A%3Amiq_server=2&ServiceTemplate%3A%3Aservice_template=1&User%3A%3Auser=1&dialog_number_of_sockets=0&dialog_service_name=&dialog_vm_memory=0&object_name=AvailableClusters&vmdb_object_type=service_template  Test-a-Thon/Integration/RedHat/CloudForms]
[----] I, [2017-11-28T14:53:22.943971 #13350:19f24e0]  INFO -- : Updated namespace [Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters  Test-a-Thon/Integration/RedHat/CloudForms]
[----] I, [2017-11-28T14:53:22.950832 #13350:19f24e0]  INFO -- : Invoking [inline] method [/Test-a-Thon/Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters] with inputs [{}]
[----] I, [2017-11-28T14:53:22.952438 #13350:19f24e0]  INFO -- : <AEMethod [/Test-a-Thon/Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters]> Starting 
[----] I, [2017-11-28T14:53:23.700030 #13350:1055630]  INFO -- : Updated namespace [/Common/Log/LogBookend?bookend_parent_method=available_clusters&bookend_status=enter  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:23.722391 #13350:1055630]  INFO -- : Updated namespace [Common/Log/log_bookend  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:23.730545 #13350:1055630]  INFO -- : Invoking [inline] method [/Test-a-Thon/Common/Log/log_bookend] with inputs [{"bookend_status"=>"enter", "bookend_parent_method"=>"available_clusters"}]
[----] I, [2017-11-28T14:53:23.731432 #13350:1055630]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/log_bookend]> Starting 
[----] I, [2017-11-28T14:53:24.121175 #13350:4ced944]  INFO -- : <AEMethod log_bookend> =====================================================================
[----] I, [2017-11-28T14:53:24.121660 #13350:4ced944]  INFO -- : <AEMethod log_bookend> My Company Customization: Enter available_clusters method
[----] I, [2017-11-28T14:53:24.122122 #13350:4ced944]  INFO -- : <AEMethod log_bookend> =====================================================================
[----] I, [2017-11-28T14:53:24.148310 #13350:1055630]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/log_bookend]> Ending
[----] I, [2017-11-28T14:53:24.148495 #13350:1055630]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2017-11-28T14:53:24.154018 #13350:1055630]  INFO -- : Updated namespace [/Common/Log/DumpAttrs?object_type=root  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:24.162084 #13350:1055630]  INFO -- : Updated namespace [Common/Log/dump_attrs  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:24.168676 #13350:1055630]  INFO -- : Invoking [inline] method [/Test-a-Thon/Common/Log/dump_attrs] with inputs [{"object_type"=>"root"}]
[----] I, [2017-11-28T14:53:24.169513 #13350:1055630]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/dump_attrs]> Starting 
[----] I, [2017-11-28T14:53:24.554640 #13350:51b64a8]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Begin $evm.root.attributes
[----] I, [2017-11-28T14:53:24.559556 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - data_type: string
[----] I, [2017-11-28T14:53:24.560613 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - dialog_number_of_sockets: 0
[----] I, [2017-11-28T14:53:24.561665 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - dialog_service_name: 
[----] I, [2017-11-28T14:53:24.562620 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - dialog_vm_memory: 0
[----] I, [2017-11-28T14:53:24.563610 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - enter_time: 2017-11-28 14:53:24 -0500
[----] I, [2017-11-28T14:53:24.564934 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - miq_group: #<MiqAeMethodService::MiqAeServiceMiqGroup:0x0000001eed06e8>
[----] I, [2017-11-28T14:53:24.566240 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - miq_server: #<MiqAeMethodService::MiqAeServiceMiqServer:0x0000001fe41f50>
[----] I, [2017-11-28T14:53:24.567302 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - miq_server_id: 2
[----] I, [2017-11-28T14:53:24.568346 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - object_name: AvailableClusters
[----] I, [2017-11-28T14:53:24.569471 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - required: true
[----] I, [2017-11-28T14:53:24.570870 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - service_template: #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x0000001fe165d0>
[----] I, [2017-11-28T14:53:24.571797 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - service_template_id: 1
[----] I, [2017-11-28T14:53:24.572898 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - sort_by: description
[----] I, [2017-11-28T14:53:24.573825 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - sort_order: ascending
[----] I, [2017-11-28T14:53:24.575205 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - tenant: #<MiqAeMethodService::MiqAeServiceTenant:0x0000001eed4f18>
[----] I, [2017-11-28T14:53:24.576645 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - user: #<MiqAeMethodService::MiqAeServiceUser:0x0000001eedad28>
[----] I, [2017-11-28T14:53:24.577675 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - user_id: 1
[----] I, [2017-11-28T14:53:24.578675 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - visible: true
[----] I, [2017-11-28T14:53:24.579625 #13350:51d24b4]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - vmdb_object_type: service_template
[----] I, [2017-11-28T14:53:24.580505 #13350:51b64a8]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> End $evm.root.attributes
[----] I, [2017-11-28T14:53:24.581180 #13350:51b64a8]  INFO -- : <AEMethod dump_attrs> 
[----] I, [2017-11-28T14:53:24.607429 #13350:1055630]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/dump_attrs]> Ending
[----] I, [2017-11-28T14:53:24.607623 #13350:1055630]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2017-11-28T14:53:24.613206 #13350:1055630]  INFO -- : Updated namespace [/Common/Log/DumpAttrs?object_type=object  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:24.617500 #13350:1055630]  INFO -- : Updated namespace [Common/Log/dump_attrs  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:24.617773 #13350:1055630]  INFO -- : Invoking [inline] method [/Test-a-Thon/Common/Log/dump_attrs] with inputs [{"object_type"=>"object"}]
[----] I, [2017-11-28T14:53:24.618511 #13350:1055630]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/dump_attrs]> Starting 
[----] I, [2017-11-28T14:53:25.038517 #13350:53c24b8]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Begin $evm.object.attributes
[----] I, [2017-11-28T14:53:25.043331 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - data_type: string
[----] I, [2017-11-28T14:53:25.044692 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - dialog_number_of_sockets: 0
[----] I, [2017-11-28T14:53:25.045736 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - dialog_service_name: 
[----] I, [2017-11-28T14:53:25.046749 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - dialog_vm_memory: 0
[----] I, [2017-11-28T14:53:25.047967 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - enter_time: 2017-11-28 14:53:24 -0500
[----] I, [2017-11-28T14:53:25.049487 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - miq_group: #<MiqAeMethodService::MiqAeServiceMiqGroup:0x0000001eed06e8>
[----] I, [2017-11-28T14:53:25.050977 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - miq_server: #<MiqAeMethodService::MiqAeServiceMiqServer:0x0000001fe41f50>
[----] I, [2017-11-28T14:53:25.051972 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - miq_server_id: 2
[----] I, [2017-11-28T14:53:25.052943 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - object_name: AvailableClusters
[----] I, [2017-11-28T14:53:25.054024 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - required: true
[----] I, [2017-11-28T14:53:25.055446 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - service_template: #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x0000001fe165d0>
[----] I, [2017-11-28T14:53:25.056519 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - service_template_id: 1
[----] I, [2017-11-28T14:53:25.057435 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - sort_by: description
[----] I, [2017-11-28T14:53:25.058403 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - sort_order: ascending
[----] I, [2017-11-28T14:53:25.059965 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - tenant: #<MiqAeMethodService::MiqAeServiceTenant:0x0000001eed4f18>
[----] I, [2017-11-28T14:53:25.061356 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - user: #<MiqAeMethodService::MiqAeServiceUser:0x0000001eedad28>
[----] I, [2017-11-28T14:53:25.062442 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - user_id: 1
[----] I, [2017-11-28T14:53:25.063361 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - visible: true
[----] I, [2017-11-28T14:53:25.064194 #13350:541cfd0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - vmdb_object_type: service_template
[----] I, [2017-11-28T14:53:25.065187 #13350:53c24b8]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> End $evm.object.attributes
[----] I, [2017-11-28T14:53:25.065786 #13350:53c24b8]  INFO -- : <AEMethod dump_attrs> 
[----] I, [2017-11-28T14:53:25.091001 #13350:1055630]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/dump_attrs]> Ending
[----] I, [2017-11-28T14:53:25.091149 #13350:1055630]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2017-11-28T14:53:25.153540 #13350:1055630]  INFO -- : <AEMethod available_clusters> Setting Cluster choices to: {"Cluster"=>"Cluster"}
[----] I, [2017-11-28T14:53:25.157177 #13350:1055630]  INFO -- : Updated namespace [/Common/Log/LogBookend?bookend_parent_method=available_clusters&bookend_status=exit  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:25.160900 #13350:1055630]  INFO -- : Updated namespace [Common/Log/log_bookend  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:25.163062 #13350:1055630]  INFO -- : Invoking [inline] method [/Test-a-Thon/Common/Log/log_bookend] with inputs [{"bookend_status"=>"exit", "bookend_parent_method"=>"available_clusters"}]
[----] I, [2017-11-28T14:53:25.163852 #13350:1055630]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/log_bookend]> Starting 
[----] I, [2017-11-28T14:53:25.556045 #13350:a132ab8]  INFO -- : <AEMethod log_bookend> =====================================================================
[----] I, [2017-11-28T14:53:25.556606 #13350:a132ab8]  INFO -- : <AEMethod log_bookend> My Company Customization: Exit available_clusters method
[----] I, [2017-11-28T14:53:25.557152 #13350:a132ab8]  INFO -- : <AEMethod log_bookend> Method <available_clusters> Total Execution Time: 1.435 seconds, (0.024 minutes)
[----] I, [2017-11-28T14:53:25.557580 #13350:a132ab8]  INFO -- : <AEMethod log_bookend> =====================================================================
[----] I, [2017-11-28T14:53:25.587097 #13350:1055630]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/log_bookend]> Ending
[----] I, [2017-11-28T14:53:25.587249 #13350:1055630]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2017-11-28T14:53:25.613075 #13350:19f24e0]  INFO -- : <AEMethod [/Test-a-Thon/Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters]> Ending
[----] I, [2017-11-28T14:53:25.613249 #13350:19f24e0]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2017-11-28T14:53:25.823892 #13359:1829f64]  INFO -- : User [admin] with current group ID [3] name [EvmGroup-super_administrator]
[----] I, [2017-11-28T14:53:25.824647 #13359:1829f64]  INFO -- : Instantiating [/Integration/RedHat/CloudForms/DynamicDropDowns/AvailableClusters?MiqServer%3A%3Amiq_server=2&User%3A%3Auser=1&object_name=AvailableClusters]
[----] I, [2017-11-28T14:53:25.842331 #13359:1829f64]  INFO -- : Updated namespace [/Integration/RedHat/CloudForms/DynamicDropDowns/AvailableClusters?MiqServer%3A%3Amiq_server=2&User%3A%3Auser=1&object_name=AvailableClusters  Test-a-Thon/Integration/RedHat/CloudForms]
[----] I, [2017-11-28T14:53:25.898988 #13359:1829f64]  INFO -- : Updated namespace [Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters  Test-a-Thon/Integration/RedHat/CloudForms]
[----] I, [2017-11-28T14:53:25.905675 #13359:1829f64]  INFO -- : Invoking [inline] method [/Test-a-Thon/Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters] with inputs [{}]
[----] I, [2017-11-28T14:53:25.907068 #13359:1829f64]  INFO -- : <AEMethod [/Test-a-Thon/Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters]> Starting 
[----] I, [2017-11-28T14:53:26.399243 #13359:fa3534]  INFO -- : Updated namespace [/Common/Log/DumpAttrs?object_type=root  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:26.419014 #13359:fa3534]  INFO -- : Updated namespace [Common/Log/dump_attrs  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:26.424877 #13359:fa3534]  INFO -- : Invoking [inline] method [/Test-a-Thon/Common/Log/dump_attrs] with inputs [{"object_type"=>"root"}]
[----] I, [2017-11-28T14:53:26.425645 #13359:fa3534]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/dump_attrs]> Starting 
[----] I, [2017-11-28T14:53:26.763790 #13359:456e4ac]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Begin $evm.root.attributes
[----] I, [2017-11-28T14:53:26.768512 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - data_type: string
[----] I, [2017-11-28T14:53:26.770153 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - miq_group: #<MiqAeMethodService::MiqAeServiceMiqGroup:0x00000011f6bce0>
[----] I, [2017-11-28T14:53:26.771341 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - miq_server: #<MiqAeMethodService::MiqAeServiceMiqServer:0x0000000d355860>
[----] I, [2017-11-28T14:53:26.772143 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - miq_server_id: 2
[----] I, [2017-11-28T14:53:26.772990 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - object_name: AvailableClusters
[----] I, [2017-11-28T14:53:26.773769 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - required: true
[----] I, [2017-11-28T14:53:26.774548 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - sort_by: description
[----] I, [2017-11-28T14:53:26.775363 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - sort_order: ascending
[----] I, [2017-11-28T14:53:26.776596 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - tenant: #<MiqAeMethodService::MiqAeServiceTenant:0x00000011f64440>
[----] I, [2017-11-28T14:53:26.777844 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - user: #<MiqAeMethodService::MiqAeServiceUser:0x00000011f64c60>
[----] I, [2017-11-28T14:53:26.778596 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - user_id: 1
[----] I, [2017-11-28T14:53:26.779350 #13359:45c7304]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> Attribute - visible: true
[----] I, [2017-11-28T14:53:26.780055 #13359:456e4ac]  INFO -- : <AEMethod dump_attrs> Root:<$evm.root> End $evm.root.attributes
[----] I, [2017-11-28T14:53:26.780559 #13359:456e4ac]  INFO -- : <AEMethod dump_attrs> 
[----] I, [2017-11-28T14:53:26.808222 #13359:fa3534]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/dump_attrs]> Ending
[----] I, [2017-11-28T14:53:26.808303 #13359:fa3534]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2017-11-28T14:53:26.812845 #13359:fa3534]  INFO -- : Updated namespace [/Common/Log/DumpAttrs?object_type=object  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:26.816489 #13359:fa3534]  INFO -- : Updated namespace [Common/Log/dump_attrs  Test-a-Thon/Common]
[----] I, [2017-11-28T14:53:26.816695 #13359:fa3534]  INFO -- : Invoking [inline] method [/Test-a-Thon/Common/Log/dump_attrs] with inputs [{"object_type"=>"object"}]
[----] I, [2017-11-28T14:53:26.817433 #13359:fa3534]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/dump_attrs]> Starting 
[----] I, [2017-11-28T14:53:27.191893 #13359:45012a8]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Begin $evm.object.attributes
[----] I, [2017-11-28T14:53:27.196650 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - data_type: string
[----] I, [2017-11-28T14:53:27.197967 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - miq_group: #<MiqAeMethodService::MiqAeServiceMiqGroup:0x00000011f6bce0>
[----] I, [2017-11-28T14:53:27.199147 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - miq_server: #<MiqAeMethodService::MiqAeServiceMiqServer:0x0000000d355860>
[----] I, [2017-11-28T14:53:27.199998 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - miq_server_id: 2
[----] I, [2017-11-28T14:53:27.200809 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - object_name: AvailableClusters
[----] I, [2017-11-28T14:53:27.201539 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - required: true
[----] I, [2017-11-28T14:53:27.202351 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - sort_by: description
[----] I, [2017-11-28T14:53:27.203218 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - sort_order: ascending
[----] I, [2017-11-28T14:53:27.204519 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - tenant: #<MiqAeMethodService::MiqAeServiceTenant:0x00000011f64440>
[----] I, [2017-11-28T14:53:27.205666 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - user: #<MiqAeMethodService::MiqAeServiceUser:0x00000011f64c60>
[----] I, [2017-11-28T14:53:27.206440 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - user_id: 1
[----] I, [2017-11-28T14:53:27.207337 #13359:43a4cc0]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> Attribute - visible: true
[----] I, [2017-11-28T14:53:27.208098 #13359:45012a8]  INFO -- : <AEMethod dump_attrs> Object:<$evm.object> End $evm.object.attributes
[----] I, [2017-11-28T14:53:27.208661 #13359:45012a8]  INFO -- : <AEMethod dump_attrs> 
[----] I, [2017-11-28T14:53:27.231199 #13359:fa3534]  INFO -- : <AEMethod [/Test-a-Thon/Common/Log/dump_attrs]> Ending
[----] I, [2017-11-28T14:53:27.231401 #13359:fa3534]  INFO -- : Method exited with rc=MIQ_OK
[----] I, [2017-11-28T14:53:27.232669 #13359:fa3534]  INFO -- : <AEMethod available_clusters> No vmdb_object_type on $evm.root
[----] I, [2017-11-28T14:53:27.256537 #13359:1829f64]  INFO -- : <AEMethod [/Test-a-Thon/Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters]> Ending
[----] I, [2017-11-28T14:53:27.256716 #13359:1829f64]  INFO -- : Method exited with rc=MIQ_OK

Comment 3 Tina Fitzgerald 2017-11-29 15:33:01 UTC
Hi Brant,

Can you send us the evm.log/automation.log and the 
/Test-a-Thon/Integration/RedHat/CloudForms/DynamicDropDowns/available_clusters Automate method?

Thanks,
Tina

Comment 4 Brant Evans 2017-11-29 15:43:26 UTC
Created attachment 1360418 [details]
automation.log

Comment 5 Brant Evans 2017-11-29 15:44:12 UTC
Created attachment 1360419 [details]
evm.log

Comment 6 Brant Evans 2017-11-29 15:45:02 UTC
Created attachment 1360421 [details]
available_clusters.rb

Comment 7 Brant Evans 2017-11-29 15:46:29 UTC
Hi Tina,

The requested files have been attached.

Regards,
Brant

Comment 8 eclarizi 2017-11-29 16:01:58 UTC
Hey Brant, does the dialog just have one field with a drop-down or is it more complex than that? If it's more complex can you export it and post here?

I feel like this title is a bit misleading because I have a couple of dialogs with dynamic elements and their data seems to load just fine without running the automate method twice. I'm unsure of the reasoning behind why yours is running twice at the moment.

Comment 9 Brant Evans 2017-11-29 16:27:19 UTC
Created attachment 1360451 [details]
Sample Dialog

Comment 10 Brant Evans 2017-11-29 16:30:30 UTC
Erik,

I have attached the dialog I used to test this. It does have a couple of non-dynamic elements and one dynamic element.

I am doing nothing to cause CF to run the dynamic method twice. It just happens. You can see in the logs that when the dialog loads the dynamic method(s) are run twice.

Regards,
Brant

Comment 12 eclarizi 2017-11-30 15:46:33 UTC
Jillian and I think we have determined the root cause and the above PR will need to be combined with my forthcoming PR to have this fully fixed.

Comment 14 CFME Bot 2017-11-30 18:55:26 UTC
New commit detected on ManageIQ/manageiq-api/master:
https://github.com/ManageIQ/manageiq-api/commit/b100aa7fa6989d8f8241597001cce2de3b5587c7

commit b100aa7fa6989d8f8241597001cce2de3b5587c7
Author:     Jillian Tullo <jtullo>
AuthorDate: Wed Nov 29 14:07:30 2017 -0500
Commit:     Jillian Tullo <jtullo>
CommitDate: Wed Nov 29 15:21:39 2017 -0500

    Specify a target and resource action when retrieving a service dialog
    
    Fetching the content from a resource sometimes requires both a target and resource_action, where we are currently passing in nil values. By accepting resource_action_id, target_type, and target_id, we are able to use resource search to pass in the applicable values.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1518390

 app/controllers/api/service_dialogs_controller.rb | 14 ++++++++++++-
 spec/requests/service_dialogs_spec.rb             | 25 +++++++++++++++++++++++
 2 files changed, 38 insertions(+), 1 deletion(-)

Comment 16 CFME Bot 2017-12-04 22:05:26 UTC
New commit detected on ManageIQ/manageiq-api/master:
https://github.com/ManageIQ/manageiq-api/commit/0cbec91e77592212c0b6c11e6216b33fe8853af2

commit 0cbec91e77592212c0b6c11e6216b33fe8853af2
Author:     Erik Clarizio <eclarizio>
AuthorDate: Fri Dec 1 11:07:56 2017 -0800
Commit:     Erik Clarizio <eclarizio>
CommitDate: Fri Dec 1 15:35:25 2017 -0800

    Specify a target and resource when refreshing a dialog field
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1518390

 app/controllers/api/service_dialogs_controller.rb | 27 ++++++------
 spec/requests/service_dialogs_spec.rb             | 51 +++++++++++++++++++++--
 2 files changed, 61 insertions(+), 17 deletions(-)

Comment 17 CFME Bot 2017-12-04 22:05:31 UTC
New commit detected on ManageIQ/manageiq-api/master:
https://github.com/ManageIQ/manageiq-api/commit/574e63dedec37e071da6ad83606b72bc55e2fd9e

commit 574e63dedec37e071da6ad83606b72bc55e2fd9e
Author:     Erik Clarizio <eclarizio>
AuthorDate: Mon Dec 4 11:00:01 2017 -0800
Commit:     Erik Clarizio <eclarizio>
CommitDate: Mon Dec 4 12:25:11 2017 -0800

    Ensure dialog passed in and resource action dialog are the same
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1518390

 app/controllers/api/service_dialogs_controller.rb | 11 +++++++++--
 spec/requests/service_dialogs_spec.rb             | 15 +++++++++++++++
 2 files changed, 24 insertions(+), 2 deletions(-)

Comment 18 CFME Bot 2017-12-04 22:13:40 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/d7c7f9c2b4070e871a68717640ee0b2a7431184c

commit d7c7f9c2b4070e871a68717640ee0b2a7431184c
Author:     Erik Clarizio <eclarizio>
AuthorDate: Thu Nov 30 09:49:25 2017 -0800
Commit:     Erik Clarizio <eclarizio>
CommitDate: Fri Dec 1 09:19:11 2017 -0800

    Pass additional information to the API when ordering a service catalog
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1518390
    
    Resource action id, target id, and target type need to be passed in
    order to establish the context that some dynamic methods may use when
    going through automate.

 .../controllers/dialog_user/dialog_user_controller.js         |  9 +++++++--
 app/controllers/application_controller/buttons.rb             |  7 +++++--
 app/controllers/catalog_controller.rb                         |  7 ++++++-
 app/views/shared/dialogs/_dialog_provision.html.haml          |  9 ++++++++-
 app/views/shared/dialogs/_dialog_user.html.haml               |  5 ++++-
 .../controllers/dialog_user/dialog_user_controller.spec.js    | 11 +++++++++--
 6 files changed, 39 insertions(+), 9 deletions(-)

Comment 19 CFME Bot 2017-12-04 22:13:46 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/bcfee500c1650fb1d8f0af8164dfd484c5029414

commit bcfee500c1650fb1d8f0af8164dfd484c5029414
Author:     Erik Clarizio <eclarizio>
AuthorDate: Fri Dec 1 09:18:39 2017 -0800
Commit:     Erik Clarizio <eclarizio>
CommitDate: Fri Dec 1 09:19:11 2017 -0800

    Extract dialog local logic and add specs around it
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1518390

 app/controllers/application_controller/buttons.rb | 34 +---------
 app/controllers/catalog_controller.rb             | 13 +---
 app/services/dialog_local_service.rb              | 47 +++++++++++++
 spec/services/dialog_local_service_spec.rb        | 81 +++++++++++++++++++++++
 4 files changed, 134 insertions(+), 41 deletions(-)
 create mode 100644 app/services/dialog_local_service.rb
 create mode 100644 spec/services/dialog_local_service_spec.rb

Comment 20 CFME Bot 2017-12-04 22:13:51 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/cad3a3966e814d571d16d27fc869a18b9443ef12

commit cad3a3966e814d571d16d27fc869a18b9443ef12
Author:     Erik Clarizio <eclarizio>
AuthorDate: Fri Dec 1 10:23:15 2017 -0800
Commit:     Erik Clarizio <eclarizio>
CommitDate: Mon Dec 4 09:34:33 2017 -0800

    Pass additional information when refreshing a dialog field
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1518390
    
    As before, resource action id, target id, and target type need to be
    passed to the API in order to establish the context for dialog fields
    when they are refreshed via the /service_dialogs endpoint

 .../controllers/dialog_user/dialog_user_controller.js      |  9 ++++++++-
 .../javascripts/services/dialog_field_refresh_service.js   |  7 +++++--
 app/controllers/catalog_controller.rb                      |  6 +++++-
 .../controllers/dialog_user/dialog_user_controller.spec.js |  2 +-
 .../services/dialog_field_refresh_service_spec.js          | 14 +++++++++++---
 5 files changed, 30 insertions(+), 8 deletions(-)

Comment 22 Shveta 2018-07-09 19:46:32 UTC
Values are loaded properly in 5.10.0.2.20180626170006_40dc459


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