Bug 1501246 - Cockpit accessible via Service UI even when Server role disabled
Summary: Cockpit accessible via Service UI even when Server role disabled
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: Allen W
QA Contact: Vatsal Parekh
URL:
Whiteboard:
Depends On:
Blocks: 1506806
TreeView+ depends on / blocked
 
Reported: 2017-10-12 09:23 UTC by Vatsal Parekh
Modified: 2018-03-06 15:08 UTC (History)
6 users (show)

Fixed In Version: 5.9.0.12
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1506806 (view as bug list)
Environment:
Last Closed: 2018-03-06 15:08:56 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
I just checked master, looks like this isn't an issue there, gonna close this one (367.26 KB, image/png)
2017-11-07 13:10 UTC, Allen W
no flags Details
Woops wrong screen shot, attached is current master, closing this because it is fixed on current master (401.12 KB, image/png)
2017-11-07 13:40 UTC, Allen W
no flags Details
Its also fixed on current Gaprindashvili (395.54 KB, image/png)
2017-11-07 13:41 UTC, Allen W
no flags Details
i proxied into this appliance with the latest g release and did not see this issue (300.61 KB, image/png)
2017-11-09 20:41 UTC, Allen W
no flags Details
supports_console? is false, sooo the console buttons are disabled, behaving as expected (796.04 KB, image/png)
2017-11-10 15:23 UTC, Allen W
no flags Details

Description Vatsal Parekh 2017-10-12 09:23:32 UTC
Description of problem:
Cockpit is accessible via Service UI even if it is disabled in Server role.
It can be accessed under VMs provisioned via services and can be seen under My Services.

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

How reproducible:


Steps to Reproduce:
1.Disable Cockpit server role or keep disabled
2.Provision a VM from service UI
3.'Web console' in VM

Actual results:


Expected results:


Additional info:

Comment 2 Chris Kacerguis 2017-10-12 16:09:19 UTC
We should attach this to the new roles you are doing.

Comment 3 Allen W 2017-10-12 16:50:08 UTC
Would it be possible to get an appliance exhibiting this issue? Quick glance at the code, it looks okayish, not having any luck creating a user without the product feature  in question.

Comment 5 Allen W 2017-10-23 13:46:22 UTC
SUI Cockpit is now gated on the product feature `sui_vm_console`, will take a look at the vm at about the end of today and report back

Comment 6 Allen W 2017-10-24 13:51:05 UTC
Hi Vatsal!

Was wondering if you could create an appliance with the latest nightly and give this another check, (above comment) Appliance you posted is before these product features were added, wanta make sure this issue is applicable after those parts of the code have were given a little love.

Comment 7 Allen W 2017-10-26 15:18:21 UTC
This is fixed by https://github.com/ManageIQ/manageiq-ui-service/pull/1165

Comment 10 Vatsal Parekh 2017-11-06 12:15:59 UTC
Hey, it seemed to be working previously in 5.9.0.4, but in 5.9.0.5, the issue still seems reproducible

Comment 11 Allen W 2017-11-06 13:26:48 UTC
Hi Vatsal, can you provide the appliance on which you're seeing this?

Comment 13 Allen W 2017-11-07 13:10:44 UTC
Created attachment 1348956 [details]
I just checked master, looks like this isn't an issue there, gonna close this one

Thanks for the appliance!! It made verifying the issue extremely easy <3

Comment 15 Allen W 2017-11-07 13:40:00 UTC
Created attachment 1348961 [details]
Woops wrong screen shot, attached is current master, closing this because it is fixed on current master

Comment 16 Allen W 2017-11-07 13:41:50 UTC
Created attachment 1348962 [details]
Its also fixed on current Gaprindashvili

Comment 17 Vatsal Parekh 2017-11-07 14:27:10 UTC
(In reply to Allen W from comment #15)
> Created attachment 1348961 [details]
> Woops wrong screen shot, attached is current master, closing this because it
> is fixed on current master

This should be moved to on_qa to verify

Comment 21 Chris Kacerguis 2017-11-08 13:17:09 UTC
Hello Vatsal,

I took a look at the appliance you provided (thanks for that).  What user should we login as?  If I login as "admin" all works like I would expect it to.

Chris

Comment 25 Allen W 2017-11-09 20:41:40 UTC
Created attachment 1350097 [details]
i proxied into this appliance with the latest g release and did not see this issue

ChrisK thinking this should be closed, not seeing the bug, it might be that an older appliance

Comment 28 Allen W 2017-11-10 15:22:31 UTC
Yeah Hi Vatsal, Thanks for checking this out on a recent build, what you're seeing is not a bug, we gate the availability of console buttons on a flag supports_console?

This indicates the ability of the vm to support any console. The individual buttons supports_cockpit? and supports_vnc_console? are second to supports_console? (doesn’t matter if they are true if supports_console? is false).  

Please ensure the vm supports either console, if you feel this is still a bug please direct it to the appropriate team.

Following this up with a ss to show ya what we're getting.

Comment 29 Allen W 2017-11-10 15:23:38 UTC
Created attachment 1350560 [details]
supports_console? is false, sooo the console buttons are disabled, behaving as expected

Comment 30 Allen W 2017-11-10 16:10:56 UTC
Looks like this might be a server issue, the method that checks the status of the console availability, https://bugzilla.redhat.com/show_bug.cgi?id=1510131 captures a similar issue, suspect console availability status reporting.

Comment 31 Allen W 2017-11-28 15:04:53 UTC
More fixes for this going on here: https://github.com/ManageIQ/manageiq-ui-service/pull/1280

Api handling this has been vastly improved! <3

Comment 32 Vatsal Parekh 2017-12-12 10:18:07 UTC
Able to verify this on Version: 5.9.0.12.20171205180333_3e32b3d


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