Created attachment 1590722 [details] Error page Description of problem: Unexpected error encountered while performing operations(Refresh Relationships and Power States, Perform Smartstate Analysis, Extract Running Processes) on VM. Version-Release number of selected component (if applicable): 5.10.7.0.20190709151852_68f0bf9 How reproducible: 100% Steps to Reproduce: 1. Add infrastructure provider(e.g: vsphere65) 2. Provision VM 3. Navigate to VM's details page and click on 'Datastores' from 'Relationships' table 4. Click on 'Managed VMs' from from 'Relationships' table 5. Select VM(Vm should be in 'on' state) and perform operations(Refresh Relationships and Power States, Perform Smartstate Analysis, Extract Running Processes) by selecting from 'configuration' dropdown Actual results: Unexpected error encountered Expected results: VM should be refreshed and flash message displayed. Additional info: - Working as expected in 5.9.9.1.20190304164243_28a581b - Checked on old versions of 5.10z and this issue is reproducible - This issue is reproducible on 5.11.0.14 too.
Note that the bug is also reproducible if you skip step 3, so if you go directly to Compute > Infra > Datastores and you display VMs thru some datastore's summary page.
Fixing https://github.com/ManageIQ/manageiq-ui-classic/pull/5867
Note that the bug is also present in the latest 5.11. and applies also to some other actions, for example to some Power operations - this depends on the fact if an error flash message is about to be rendered for a chosen operation or not. If not, this BZ is reproducible. If yes, then nothing happens in the UI and there is a different problem (Render and/or redirect were called multiple times), different parts of the code. I will open a separate BZ also for this problem. Also note that after the fix for this BZ will be merged, Extract Running Processes action still may not work well - if there are some error flash messages which are about to be displayed - and this is because of what I've written above (different issue - multiple redirecting).
Another note: The fix for this BZ will probably fix also the https://bugzilla.redhat.com/show_bug.cgi?id=1732370 as the core of the problem is the same.
Hi Hilda, Please have a look at this asap. This appliance will expire in two days. Thanks, Ganesh
Hi Ganesh, thank you for the appliance and for reminding. I think I have everything I need.
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/21e06346084b2c562d91fba3456f360f6c164a0b commit 21e06346084b2c562d91fba3456f360f6c164a0b Author: Hilda Stastna <hstastna> AuthorDate: Wed Jul 24 09:57:13 2019 -0400 Commit: Hilda Stastna <hstastna> CommitDate: Wed Jul 24 09:57:13 2019 -0400 Get record class while performing operations on VM's datastore page Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729953 app/controllers/application_controller/ci_processing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commit detected on ManageIQ/manageiq-ui-classic/ivanchuk: https://github.com/ManageIQ/manageiq-ui-classic/commit/86655602471bf71fe0cf35acbcf4cfa221671046 commit 86655602471bf71fe0cf35acbcf4cfa221671046 Author: Milan Zázrivec <mzazrivec> AuthorDate: Mon Aug 5 06:53:56 2019 -0400 Commit: Milan Zázrivec <mzazrivec> CommitDate: Mon Aug 5 06:53:56 2019 -0400 Merge pull request #5867 from hstastna/Unexpected_error_VM_datastore_get_rec_cls Get proper record class while performing operations on Managed VMs of a chosen Datastore (cherry picked from commit dfab1f9d841e4dcc8b3faba3b83a9d8f7fd26c4e) https://bugzilla.redhat.com/show_bug.cgi?id=1729953 app/controllers/application_controller/ci_processing.rb | 2 +- spec/controllers/application_controller/ci_processing_spec.rb | 22 +- 2 files changed, 20 insertions(+), 4 deletions(-)
Hi, Checked on version: 5.10.8.0.20190729222758_e725e22 I can see that it is working for options(Refresh Relationships and Power States, Perform Smartstate Analysis, Extract Running Processes) But I am getting unexpected error for option: "Compare Selected items" Hence failing this BZ.
Hi Ganesh, first, there is no mention about 'Compare Selected items' operation in this BZ so I was not fixing this regarding this BZ. Second, if you check the error message closely, you will find that that's completely different error so the problem is different: We are missing routes for this operation. I already fixed this in a separate BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1733120. Thank you.
Fixed! verifying on version: 5.11.0.18.20190806180636_1dd6378
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-2019:4199