From 0349ba58f75a6d866ef291b5377065baf3b4223a Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 9 Dec 2024 11:25:43 +0100 Subject: [PATCH] Remove freezer_remove panel There's no reason to handle a separate panel that just disables Freezer dashboard, as it's simplier to achieve via setting DISABLED=True directly or remove the file from Horizons enabled directory. Change-Id: Iebb1816d7f9df4fd61e4a9b1861090615d4e18fc --- README.rst | 27 +++---------------- .../enabled/_7050_freezer_remove_panel_.py | 5 ---- 2 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 freezer_ui/enabled/_7050_freezer_remove_panel_.py diff --git a/README.rst b/README.rst index b2123c0..ce7f337 100644 --- a/README.rst +++ b/README.rst @@ -46,8 +46,8 @@ If keystone service-create and endpoint-create are not available you can set as # add FREEZER_API_URL = http://: -Dev Installation -================ +Installation +============ In the installation procedure we'll assume your main Horizon dashboard directory is /opt/stack/horizon/openstack_dashboard/dashboards/. @@ -61,9 +61,7 @@ To install freezer dashboard for development you need to do the following:: # cp freezer-web-ui/freezer_ui/enabled/_5050_freezer.py /opt/stack/horizon/openstack_dashboard/enabled/_5050_freezer.py - # to disable the panel just copy the following file - - # cp freezer-web-ui/freezer_ui/enabled/_7050_freezer_remove_panel_.py /opt/stack/horizon/openstack_dashboard/enabled/_7050_freezer_remove_panel_.py + # to disable the panel set `DISABLED = True` in /opt/stack/horizon/openstack_dashboard/enabled/_5050_freezer.py # cd /opt/stack/horizon/ @@ -73,25 +71,6 @@ To install freezer dashboard for development you need to do the following:: # ./run_tests.sh --runserver 0.0.0.0:8000 -Production Installation -======================= - -To deploy freezer dashboard in production you need to do the following:: - - # git clone https://github.com/openstack/freezer-web-ui - - # cd freezer-web-ui - - # cp freezer-web-ui/freezer_ui/enabled/_5050_freezer.py /opt/stack/horizon/openstack_dashboard/enabled/_5050_freezer.py - - # to disable the panel just copy the following file - - # cp freezer-web-ui/freezer_ui/enabled/_7050_freezer_remove_panel_.py /opt/stack/horizon/openstack_dashboard/enabled/_7050_freezer_remove_panel_.py - - # make sure freezer is installed from source as detailed in the first step - - # restart apache2 service - A new tab called "Disaster Recovery" will appear on your panels. diff --git a/freezer_ui/enabled/_7050_freezer_remove_panel_.py b/freezer_ui/enabled/_7050_freezer_remove_panel_.py deleted file mode 100644 index e7b059a..0000000 --- a/freezer_ui/enabled/_7050_freezer_remove_panel_.py +++ /dev/null @@ -1,5 +0,0 @@ -# The name of the dashboard to be added to HORIZON['dashboards']. Required. -DASHBOARD = 'disaster_recovery' - -# If set to True, this dashboard will not be added to the settings. -DISABLED = True