ManageIQ / manageiq

ManageIQ Open-Source Management Platform
https://manageiq.org
Apache License 2.0
1.35k stars 898 forks source link

[Oparin1-1][BUG] show request issue #22739

Closed rabah-beldi closed 1 year ago

rabah-beldi commented 1 year ago

Hello,

Since the upgrade from Najdorf to Oparin, I have been experiencing an issue with request show, which specifically affects only the EC2/VM requests. No issues are observed with custom services. request_issue2

when I click on the request in question, the following screen appears. request_issue1

it's an error 500. here's the network trace: show_request_issue_trace

Error in logs:

Oct 12 10:34:27 XXX production[2835]: INFO – production: Parameters: {"id"=>"9469"} Oct 12 10:34:27 XXXX production[2835]: INFO – production: Rendered /opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/show.html.haml within layouts/application (Duration: 83.0ms | Allocations: 28951) Oct 12 10:34:27 XXXX production[2835]: INFO – production: Rendered layout /opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/layouts/application.html.haml (Duration: 83.2ms | Allocations: 29049) Oct 12 10:34:27 XXXX production[2835]: FATAL – production: Error caught: [ActionView::Template::Error] undefined methodgsub' for nil:NilClass#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/request_dialog_details.html.haml:31:in opt_manageiq_manageiq_gemset_bundler_gems_manageiq_ui_classic_ca_f_ad_d_aapp_views_miq_requestrequest_dialog_details_html_haml1084350341333586826_426020'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/base.rb:247:inpublic_send'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/base.rb:247:in _run'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/template.rb:154:inblock in render'#012/opt/manageiq/manageiq-gemset/gems/activesupport-6.1.7/lib/active_support/notifications.rb:205:in instrument'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/template.rb:345:ininstrument_render_template'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/template.rb:152:in render'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/partial_renderer.rb:285:inblock in render_partial_template'#012/opt/manageiq/manageiq-gemset/gems/activesupport-6.1.7/lib/active_support/notifications.rb:203:in block in instrument'#012/opt/manageiq/manageiq-gemset/gems/activesupport-6.1.7/lib/active_support/notifications/instrumenter.rb:24:ininstrument'#012/opt/manageiq/manageiq-gemset/gems/activesupport-6.1.7/lib/active_support/notifications.rb:203:in instrument'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/partial_renderer.rb:280:inrender_partial_template'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/partial_renderer.rb:271:in render'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/renderer.rb:81:inrender_partial_to_object'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/renderer.rb:27:in render_to_object'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/renderer.rb:22:inrender'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/helpers/rendering_helper.rb:38:in block in render'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/base.rb:273:inin_rendering_context'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/helpers/rendering_helper.rb:34:in render'#012/opt/manageiq/manageiq-gemset/gems/jquery-rjs-0.1.1.3/lib/jquery-rjs/rendering.rb:9:inblock in '#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/_st_prov_show.html.haml:30:in block (4 levels) in __opt_manageiq_manageiq_gemset_bundler_gems_manageiq_ui_classic_ca_f_ad_d_aapp_views_miq_requestst_prov_show_html_haml_732910857175166208_425620'#012/opt/manageiq/manageiq-gemset/gems/activerecord-6.1.7/lib/active_record/relation/delegation.rb:88:ineach'#012/opt/manageiq/manageiq-gemset/gems/activerecord-6.1.7/lib/active_record/relation/delegation.rb:88:in each'#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/_st_prov_show.html.haml:29:inblock (3 levels) in opt_manageiq_manageiq_gemset_bundler_gems_manageiq_ui_classic_ca_f_ad_d_aapp_views_miq_requestst_prov_show_html_haml_732910857175166208_425620'#012/opt/manageiq/manageiq-gemset/gems/activerecord-6.1.7/lib/active_record/relation/delegation.rb:88:in each'#012/opt/manageiq/manageiq-gemset/gems/activerecord-6.1.7/lib/active_record/relation/delegation.rb:88:ineach'#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/_st_prov_show.html.haml:23:in `block (2 levels) in opt_manageiq_manageiq_gemset_bundler_gems_manageiq_ui_classic_ca_f_ad_d_aapp_views_miq_requestst_prov_show_html_haml_732910857175166208_425620'#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/helpers/application_helper.rb:1149:in block in miq_tab_content'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/helpers/capture_helper.rb:45:inblock in capture'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/helpers/capture_helper.rb:209:in with_output_buffer'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/helpers/capture_helper.rb:45:incapture'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/helpers/tag_helper.rb:342:in content_tag'#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/helpers/application_helper.rb:1148:inmiq_tab_content'#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/_st_prov_show.html.haml:22:in block in __opt_manageiq_manageiq_gemset_bundler_gems_manageiq_ui_classic_ca_f_ad_d_aapp_views_miq_requestst_prov_show_html_haml_732910857175166208_425620'#012/opt/manageiq/manageiq-gemset/gems/activerecord-6.1.7/lib/active_record/relation/delegation.rb:88:ineach'#012/opt/manageiq/manageiq-gemset/gems/activerecord-6.1.7/lib/active_record/relation/delegation.rb:88:in each'#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/_st_prov_show.html.haml:20:ineach_with_index'#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/_st_prov_show.html.haml:20:in opt_manageiq_manageiq_gemset_bundler_gems_manageiq_ui_classic_ca_f_ad_d_aapp_views_miq_requestst_prov_show_html_haml_732910857175166208_425620'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/base.rb:247:inpublic_send'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/base.rb:247:in _run'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/template.rb:154:inblock in render'#012/opt/manageiq/manageiq-gemset/gems/activesupport-6.1.7/lib/active_support/notifications.rb:205:in instrument'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/template.rb:345:ininstrument_render_template'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/template.rb:152:in render'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/partial_renderer.rb:285:inblock in render_partial_template'#012/opt/manageiq/manageiq-gemset/gems/activesupport-6.1.7/lib/active_support/notifications.rb:203:in block in instrument'#012/opt/manageiq/manageiq-gemset/gems/activesupport-6.1.7/lib/active_support/notifications/instrumenter.rb:24:ininstrument'#012/opt/manageiq/manageiq-gemset/gems/activesupport-6.1.7/lib/active_support/notifications.rb:203:in instrument'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/partial_renderer.rb:280:inrender_partial_template'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/partial_renderer.rb:271:in render'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/renderer.rb:81:inrender_partial_to_object'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/renderer.rb:27:in render_to_object'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/renderer/renderer.rb:22:inrender'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/helpers/rendering_helper.rb:38:in block in render'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/base.rb:273:inin_rendering_context'#012/opt/manageiq/manageiq-gemset/gems/actionview-6.1.7/lib/action_view/helpers/rendering_helper.rb:34:in render'#012/opt/manageiq/manageiq-gemset/gems/jquery-rjs-0.1.1.3/lib/jquery-rjs/rendering.rb:9:inblock in '#012/opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/miq_request/_request.html.haml:123:in opt_manageiq_manageiq_gemset_bundler_gems_manageiq_ui_classic_ca_f_ad_d Oct 12 10:34:27 XXXX production[2835]: INFO – production: Rendered /opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/layouts/exception.html.haml within layouts/application (Duration: 0.5ms | Allocations: 294) Oct 12 10:34:27 XXXX production[2835]: INFO – production: Rendered layout /opt/manageiq/manageiq-gemset/bundler/gems/manageiq-ui-classic-ca2f0ad3d9a2/app/views/layouts/application.html.haml (Duration: 16.7ms | Allocations: 22220) Oct 12 10:34:27 XXXX production[2835]: INFO – production: Completed 500 Internal Server Error in 230ms (Views: 16.8ms | ActiveRecord: 27.2ms | Allocations: 183144)

no other windows are open.

rabah-beldi commented 1 year ago

Could you please help us correct this issue? We are stuck on the production platform upgrade. I am at your disposal if you need more information. Thank you in advance for your assistance.

agrare commented 1 year ago

This appears to have been fixed by https://github.com/ManageIQ/manageiq-ui-classic/pull/8734 which is in petrosian you should be able to upgrade to that to fix this issue

rabah-beldi commented 1 year ago

Ok great! thanks for this information.

Fryguy commented 1 year ago

Closing as this has been fixed in petrosian.

Fryguy commented 1 year ago

Duplicate of https://github.com/ManageIQ/manageiq/issues/22504