Bug 1824811 - Error when Check Compliance button is pressed for an Instance
Summary: Error when Check Compliance button is pressed for an Instance
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.11.5
Assignee: Harpreet Kataria
QA Contact: Parthvi Vala
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-16 13:45 UTC by Harpreet Kataria
Modified: 2020-06-21 18:21 UTC (History)
7 users (show)

Fixed In Version: 5.11.5.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-05 13:43:34 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:
pm-rhel: cfme-5.11.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2020 0 None None None 2020-05-05 13:43:42 UTC

Description Harpreet Kataria 2020-04-16 13:45:14 UTC
Description of problem:Error when Check Compliance button is pressed for an Instance


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


How reproducible: 


Steps to Reproduce:
1. Press Check Compliance button from Instance list view, does not do anything, but there is an error in the log
3.

Actual results:
[----] I, [2020-04-02T09:41:11.271373 #6963:2ab6fb14e8bc]  INFO -- : Started POST "/vm_cloud/x_button/1000000132824?pressed=instance_check_compliance" for 172.16.211.1 at 2020-04-02 09:41:11 -0400
[----] I, [2020-04-02T09:41:11.276378 #6963:2ab6fb14e8bc]  INFO -- : Processing by VmCloudController#x_button as JS
[----] I, [2020-04-02T09:41:11.276597 #6963:2ab6fb14e8bc]  INFO -- :   Parameters: {"pressed"=>"instance_check_compliance", "id"=>"1000000132824"}
[----] F, [2020-04-02T09:41:11.883647 #6963:2ab6fb14e8bc] FATAL -- : Error caught: [NoMethodError] undefined method `validate_check_compliance_queue' for #<ManageIQ::Providers::Openstack::CloudManager::Vm:0x0000556e05c36a40>
Did you mean?  validates_acceptance_of
/opt/rh/cfme-gemset/gems/activemodel-5.1.7/lib/active_model/attribute_methods.rb:432:in `method_missing'
/var/www/miq/vmdb/app/models/mixins/availability_mixin.rb:24:in `is_available?'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-3a49768831a8/app/helpers/application_helper.rb:203:in `block in records_support_feature?'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-3a49768831a8/app/helpers/application_helper.rb:199:in `each'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-3a49768831a8/app/helpers/application_helper.rb:199:in `find'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-3a49768831a8/app/helpers/application_helper.rb:199:in `records_support_feature?'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-3a49768831a8/app/controllers/application_controller/ci_processing.rb:612:in `generic_button_operation'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-3a49768831a8/app/controllers/application_controller/ci_processing.rb:412:in `check_compliance_vms'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-3a49768831a8/app/controllers/application_controller/explorer.rb:112:in `x_button'
/opt/rh/cfme-gemset/gems/actionpack-5.1.7/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/r


Expected results:


Additional info:

Fixed on upstream in https://github.com/ManageIQ/manageiq-ui-classic/pull/6426

Comment 4 Parthvi Vala 2020-04-24 08:48:09 UTC
FIXED. Verified on 5.11.5.2.
No longer see the FATAL error in the production log. Following is the output - 
```
[----] I, [2020-04-24T02:32:32.223927 #7386:2b21a66e8078]  INFO -- :   Parameters: {"miq_grid_checks"=>"63", "check_63"=>"63", "pressed"=>"instance_check_compliance"}
[----] I, [2020-04-24T02:32:32.486581 #7386:2b21a66e8078]  INFO -- :   Rendered /opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-04bd47f41acb/app/views/layouts/_flash_msg.html.haml (0.2ms)
[----] I, [2020-04-24T02:32:32.486986 #7386:2b21a66e8078]  INFO -- :   Rendered /opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-04bd47f41acb/app/views/layouts/_info_msg.html.haml (0.0ms)
```

Question: My manager told me something about this build picking up a new version of manageiq-smartstate gem which may have affected this BZ, can you tell if and how it could've affected this BZ?

Comment 9 errata-xmlrpc 2020-05-05 13:43:34 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/RHBA-2020:2020


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