Created attachment 1457065 [details] Automate datastore Description of problem: I am creating a custom button that will allow users to rebuild any of the OpenStack instances under a service they own. This button is launched at the service level, and pulls a listing of instances the current user owns to populate into a drop down list in the dialog. This works fine in the operations ui, but not in the service UI. In the service UI, the field with the dynamic element and all fields below stop rendering. Version-Release number of selected component (if applicable): cfme-5.9.2.4-1 How reproducible: Always in my testing thus far - I have several different dialogs with dyamic elements I have been using in the ops/classic UI that do not seem to work correctly in the service UI. Steps to Reproduce: 1. Create ruby code to pull a list of values & populate a dynamic element 2. Create dialog to utilize this method in a dynamic element 3. Associate that dialog with a custom button (have tried VM & service level buttons to same effect) 4. Launch custom button action in service UI Actual results: Dialog field will stop rendering once it his the dynamic field. evm.log output similar to: [----] I, [2018-07-06T14:51:25.358365 #2860:41576e8] INFO -- : MIQ(ResourceAction#deliver_to_automate_from_dialog_field) Running <ResourceAction:10000000000231> for <DialogField:10000000000208> [----] I, [2018-07-06T14:51:25.361426 #2860:41576e8] INFO -- : MIQ(MiqAeEngine.deliver) Delivering {} for object [.] with state [] to Automate Expected results: Data from method to populate dynamic field, and all subsequent fields render correctly. evm.log output similar to: [----] I, [2018-07-06T14:52:05.701397 #2832:de05bc] INFO -- : MIQ(ResourceAction#deliver_to_automate_from_dialog_field) Running <ResourceAction:10000000000231> for <DialogField:10000000000208> [----] I, [2018-07-06T14:52:05.703205 #2832:de05bc] INFO -- : MIQ(MiqAeEngine.deliver) Delivering {"dialog_textarea_box_1"=>nil, "dialog_param_vm_name"=>"", "dialog_param_sid"=>nil, "dialog_dropdown_list_1"=>nil} for object [Service.10000000000073] with state [] to Automate Additional info: I'm attaching my dialog & automate export. Method I'm running is under /POC/Integration/RedHat/CloudForms/DynamicDropDowns/GetVM
Created attachment 1457066 [details] Custom dialog referencing automation method
Can you retest when errata 3 comes out and let me know the results. Thank you
Upon further testing in 5.9.3, it seems my custom buttons that use ANY dialog - even ones without dynamic elements - seem to hang in the service UI. This is happening in two different 5.9.3 environments.
Created attachment 1465066 [details] Screenshot of "loading" after interacting with custom button. What happens in 5.9.3 when I try to use any custom button with a dialog attached - with or without dynamic elements - in the service UI.
Do you happen to have an appliance you are testing on that we can look at to see how your custom buttons are setup?
Yes, that shows up in the API log as soon as I interact with a custom button with a dialog attached in 5.9.3.4. [----] I, [2018-07-25T08:51:56.358637 #12553:14c0288] INFO -- : MIQ(Api::ServicesController.log_request) API Request: {:requested_at=>"2018-07-25 12:51:56 UTC", :method=>"GET", :url=>"https://192.168.2.46/api/services/10000000000072?attributes=picture%2Cpicture.image_href"} [----] E, [2018-07-25T08:51:57.106468 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) API Error [----] E, [2018-07-25T08:51:57.106646 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) NoMethodError: undefined method `service_dialog_ident' for #<Api::ServicesController:0x00000000183e9550> [----] E, [2018-07-25T08:51:57.106740 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) Did you mean? service_ident [----] E, [2018-07-25T08:51:57.107088 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) API Error [----] E, [2018-07-25T08:51:57.107255 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) [----] E, [2018-07-25T08:51:57.107357 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) [----] E, [2018-07-25T08:51:57.107440 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/bundler/gems/cfme-api-ebd1e44a7a7d/app/controllers/api/subcollections/service_dialogs.rb:22:in `fetch_service_dialogs_content' [----] E, [2018-07-25T08:51:57.107553 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/bundler/gems/cfme-api-ebd1e44a7a7d/app/controllers/api/base_controller/renderer.rb:268:in `fetch_direct_virtual_attribute' [----] E, [2018-07-25T08:51:57.108297 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/bundler/gems/cfme-api-ebd1e44a7a7d/app/controllers/api/base_controller/renderer.rb:256:in `block in expand_virtual_attributes' [----] E, [2018-07-25T08:51:57.108396 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/bundler/gems/cfme-api-ebd1e44a7a7d/app/controllers/api/base_controller/renderer.rb:252:in `each' [----] E, [2018-07-25T08:51:57.108715 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/bundler/gems/cfme-api-ebd1e44a7a7d/app/controllers/api/base_controller/renderer.rb:252:in `expand_virtual_attributes' [----] E, [2018-07-25T08:51:57.109837 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/bundler/gems/cfme-api-ebd1e44a7a7d/app/controllers/api/base_controller/renderer.rb:81:in `resource_to_jbuilder' [----] E, [2018-07-25T08:51:57.109921 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/bundler/gems/cfme-api-ebd1e44a7a7d/app/controllers/api/base_controller/renderer.rb:17:in `render_resource' [----] E, [2018-07-25T08:51:57.109994 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/bundler/gems/cfme-api-ebd1e44a7a7d/app/controllers/api/base_controller.rb:92:in `show' [----] E, [2018-07-25T08:51:57.111359 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' [----] E, [2018-07-25T08:51:57.111446 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/abstract_controller/base.rb:188:in `process_action' [----] I, [2018-07-25T08:51:57.111974 #12553:14c0288] INFO -- : MIQ(Api::ServicesController.log_request) Authentication: {:type=>"token", :token=>"d34aa697d0f0a0dd0e026b39760ec514", :x_miq_group=>nil, :user=>"admin"} [----] E, [2018-07-25T08:51:57.112069 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal/rendering.rb:30:in `process_action' [----] E, [2018-07-25T08:51:57.112971 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/abstract_controller/callbacks.rb:20:in `block in process_action' [----] E, [2018-07-25T08:51:57.113062 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:126:in `call' [----] I, [2018-07-25T08:51:57.113705 #12553:14c0288] INFO -- : MIQ(Api::ServicesController.log_request) Authorization: {:user=>"admin", :group=>"EvmGroup-super_administrator", :role=>"EvmRole-super_administrator", :tenant=>"My Company"} [----] E, [2018-07-25T08:51:57.113823 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' [----] I, [2018-07-25T08:51:57.116726 #12553:14c0288] INFO -- : MIQ(Api::ServicesController.log_request) Request: {:method=>:get, :action=>"read", :fullpath=>"/api/services/10000000000072?attributes=picture%2Cpicture.image_href", :url=>"https://192.168.2.46/api/services/10000000000072?attributes=picture%2Cpicture.image_href", :base=>"https://192.168.2.46", :path=>"/api/services/10000000000072", :prefix=>"/api", :version=>"3.0.0", :api_prefix=>"https://192.168.2.46/api", :collection=>"services", :c_suffix=>nil, :collection_id=>"10000000000072", :subcollection=>nil, :subcollection_id=>nil} [----] E, [2018-07-25T08:51:57.116857 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:455:in `call' [----] I, [2018-07-25T08:51:57.117402 #12553:14c0288] INFO -- : MIQ(Api::ServicesController.log_request) Parameters: {"attributes"=>"picture,picture.image_href", "action"=>"show", "controller"=>"api/services", "format"=>"json", "body"=>{}} [----] E, [2018-07-25T08:51:57.117541 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:101:in `__run_callbacks__' [----] E, [2018-07-25T08:51:57.119247 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' [----] E, [2018-07-25T08:51:57.119361 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:90:in `run_callbacks' [----] E, [2018-07-25T08:51:57.119447 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/abstract_controller/callbacks.rb:19:in `process_action' [----] E, [2018-07-25T08:51:57.119530 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal/rescue.rb:20:in `process_action' [----] E, [2018-07-25T08:51:57.119610 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' [----] E, [2018-07-25T08:51:57.119682 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/notifications.rb:164:in `block in instrument' [----] E, [2018-07-25T08:51:57.119753 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument' [----] E, [2018-07-25T08:51:57.119839 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/notifications.rb:164:in `instrument' [----] E, [2018-07-25T08:51:57.121052 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal/instrumentation.rb:30:in `process_action' [----] E, [2018-07-25T08:51:57.121166 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal/params_wrapper.rb:248:in `process_action' [----] E, [2018-07-25T08:51:57.121265 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/railties/controller_runtime.rb:18:in `process_action' [----] E, [2018-07-25T08:51:57.121369 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/abstract_controller/base.rb:126:in `process' [----] E, [2018-07-25T08:51:57.121472 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal.rb:190:in `dispatch' [----] E, [2018-07-25T08:51:57.123210 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal.rb:262:in `dispatch' [----] E, [2018-07-25T08:51:57.123329 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' [----] E, [2018-07-25T08:51:57.124258 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/routing/route_set.rb:32:in `serve' [----] E, [2018-07-25T08:51:57.124378 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb:39:in `block in serve' [----] E, [2018-07-25T08:51:57.124468 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb:26:in `each' [----] E, [2018-07-25T08:51:57.124556 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/journey/router.rb:26:in `serve' [----] E, [2018-07-25T08:51:57.124656 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/routing/route_set.rb:727:in `call' [----] E, [2018-07-25T08:51:57.128088 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/secure_headers-3.0.3/lib/secure_headers/middleware.rb:10:in `call' [----] E, [2018-07-25T08:51:57.128208 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/etag.rb:25:in `call' [----] E, [2018-07-25T08:51:57.128312 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/conditional_get.rb:25:in `call' [----] E, [2018-07-25T08:51:57.128399 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/head.rb:12:in `call' [----] E, [2018-07-25T08:51:57.128484 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:232:in `context' [----] E, [2018-07-25T08:51:57.128557 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/session/abstract/id.rb:226:in `call' [----] E, [2018-07-25T08:51:57.130207 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/middleware/cookies.rb:613:in `call' [----] E, [2018-07-25T08:51:57.130337 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' [----] E, [2018-07-25T08:51:57.130415 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:97:in `__run_callbacks__' [----] E, [2018-07-25T08:51:57.130475 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:750:in `_run_call_callbacks' [----] E, [2018-07-25T08:51:57.130574 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/callbacks.rb:90:in `run_callbacks' [----] E, [2018-07-25T08:51:57.130640 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/middleware/callbacks.rb:36:in `call' [----] E, [2018-07-25T08:51:57.130719 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' [----] E, [2018-07-25T08:51:57.132451 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' [----] E, [2018-07-25T08:51:57.132544 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' [----] E, [2018-07-25T08:51:57.132604 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/rack/logger.rb:36:in `call_app' [----] E, [2018-07-25T08:51:57.132667 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/rack/logger.rb:26:in `call' [----] E, [2018-07-25T08:51:57.132735 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/middleware/request_id.rb:24:in `call' [----] E, [2018-07-25T08:51:57.132809 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call' [----] E, [2018-07-25T08:51:57.135442 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call' [----] E, [2018-07-25T08:51:57.135510 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/activesupport-5.0.6/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' [----] E, [2018-07-25T08:51:57.135568 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_dispatch/middleware/executor.rb:12:in `call' [----] E, [2018-07-25T08:51:57.135626 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call' [----] E, [2018-07-25T08:51:57.135696 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/engine.rb:522:in `call' [----] E, [2018-07-25T08:51:57.135759 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.7.1/lib/puma/configuration.rb:232:in `call' [----] E, [2018-07-25T08:51:57.135824 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.7.1/lib/puma/server.rb:578:in `handle_request' [----] E, [2018-07-25T08:51:57.135882 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.7.1/lib/puma/server.rb:415:in `process_client' [----] E, [2018-07-25T08:51:57.135947 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.7.1/lib/puma/server.rb:275:in `block in run' [----] E, [2018-07-25T08:51:57.136008 #12553:14c0f58] ERROR -- : MIQ(Api::ServicesController.api_error) /opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.7.1/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
*** Bug 1608429 has been marked as a duplicate of this bug. ***
GH PR -https://github.com/ManageIQ/manageiq-ui-service/pull/1467
Merged!
Verified in Version 5.10.0.32.20190115185124_c957ada