Bug 1490103 - Unable to perform vm operation via button on self-service portal
Summary: Unable to perform vm operation via button on self-service portal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service
Version: 5.8.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: Chris Hale
QA Contact: Shveta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-10 10:48 UTC by Neha Chugh
Modified: 2020-12-14 09:58 UTC (History)
7 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-01 13:17:22 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
service dialog for RHEL hardening and Reset User password (3.73 KB, text/x-vhdl)
2017-09-20 09:15 UTC, Neha Chugh
no flags Details
harden_rhel_server_button (303.01 KB, image/png)
2017-09-20 09:16 UTC, Neha Chugh
no flags Details
reset_user_password_button (301.47 KB, image/png)
2017-09-20 09:16 UTC, Neha Chugh
no flags Details
ruby_script_reset_password (998 bytes, text/plain)
2017-09-20 09:16 UTC, Neha Chugh
no flags Details
error in SUI (119.22 KB, image/png)
2017-09-20 18:54 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 0 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 18:37:12 UTC

Comment 3 Chris Hale 2017-09-13 13:19:39 UTC
Shveta, can you reproduce this on an appliance and let us know the results?

Comment 4 Shveta 2017-09-13 18:12:54 UTC
Can you please provide the method and dialog used .
Some screenshots will also be helpful.
Thanks,
Shveta

Comment 6 Neha Chugh 2017-09-20 09:15:32 UTC
Created attachment 1328334 [details]
service dialog for RHEL hardening and Reset User password

Comment 7 Neha Chugh 2017-09-20 09:16:05 UTC
Created attachment 1328335 [details]
harden_rhel_server_button

Comment 8 Neha Chugh 2017-09-20 09:16:30 UTC
Created attachment 1328336 [details]
reset_user_password_button

Comment 9 Neha Chugh 2017-09-20 09:16:54 UTC
Created attachment 1328337 [details]
ruby_script_reset_password

Comment 10 Shveta 2017-09-20 18:54:18 UTC
Appliance : https://10.8.198.50/ui/service

I created a service (ssui_bz) which has same two buttons as attached in the BZ.
I am able to submit the reset request from OPS UI but getting error from SUI .

Comment 11 Shveta 2017-09-20 18:54:41 UTC
Created attachment 1328559 [details]
error in SUI

Comment 14 Shveta 2017-09-20 20:27:36 UTC
I checked the database .My Understanding .

The service on which the operation was performed (ssui_bz) has service_id = 10 .
========================================================
vmdb_production=# select id from services where name = 'ssui_bz';
 id 
----
 10
(1 row)

When the VM operation is performed through buttons from SUI , the same ID is used for VM(=10) and searched and hence it fails.

Neha , correct me if I am wrong .

Comment 15 Neha Chugh 2017-09-25 06:29:52 UTC
Hello Shveta,

Yes, this is exactly what is happening. When we performed VM operations via SUI, the service ID is used as VM ID and looked for it and got failed as it is unable to find the same ID in vms table.

Let me know if you have any further query on this.

Regards,
Neha Chugh

Comment 16 Chris Hale 2017-09-27 18:45:42 UTC
GH PR - https://github.com/ManageIQ/manageiq-ui-service/pull/1022

Comment 19 Shveta 2017-11-03 00:58:53 UTC
Fixed in 5.9.0.4.20171024163837_ef71ea6

Comment 23 errata-xmlrpc 2018-03-01 13:17:22 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/RHSA-2018:0380


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