Bug 1490103

Summary: Unable to perform vm operation via button on self-service portal
Product: Red Hat CloudForms Management Engine Reporter: Neha Chugh <nchugh>
Component: UI - ServiceAssignee: Chris Hale <chhale>
Status: CLOSED ERRATA QA Contact: Shveta <sshveta>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: abellott, dclarizi, jhardy, nchugh, obarenbo, simaishi, sshveta
Target Milestone: GA   
Target Release: 5.9.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:17:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
service dialog for RHEL hardening and Reset User password
none
harden_rhel_server_button
none
reset_user_password_button
none
ruby_script_reset_password
none
error in SUI none

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