Ask Your Question
0

remove console tab on compute instance page on Horizon dashboard

asked 2017-07-28 01:00:39 -0500

we remove console access on another user in the drop down using dashboard nova_policy.json file. But console tab also available on when clicking the instance name it goes to overview, log, console, action tab available page. when clicking the console tab it shows this message

(If the console is not responding to keyboard input: click the grey status bar below. Click here to show the only console To exit the full-screen mode, click the browser's back button.)

click the Url it goes to http://serverip:6080/vnc_auto.html page to access control of the instance of other user created.

So how to hide this console tab on the dashboard.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-31 00:15:18 -0500

teju gravatar image

updated 2017-07-31 00:16:23 -0500

You can remove the console tab on horizon by making the below change in

/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/tabs.py

class InstanceDetailTabs(tabs.TabGroup):
    slug = "instance_details"
    tabs = (OverviewTab, LogTab, ConsoleTab, AuditTab)
    sticky = True

Replace the line tabs = (OverviewTab, LogTab, ConsoleTab, AuditTab) with

tabs = (OverviewTab, LogTab, AuditTab)

and restart apache

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-07-28 01:00:39 -0500

Seen: 134 times

Last updated: Jul 31 '17