yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #73525
[Bug 1778771] [NEW] Backups panel is visible even if enable_backup is False
Public bug reported:
Hi,
Volumes - Backup panel is visible even if OPENSTACK_CINDER_FEATURES =
{'enable_backup': False} in local_settings.py
Meanwhile setting enable_backup to false removes an option to create
backup of a volume in the volume drop-down options. But panel with
backups itself stays visible for both admins and users.
As a work-around I use the following customization script:
import horizon
from django.conf import settings
if not getattr(settings, 'OPENSTACK_CINDER_FEATURES', {}).get('enable_backup', False):
project = horizon.get_dashboard("project")
backup = project.get_panel("backups")
project.unregister(backup.__class__)
And for permanent fix I see the following decision. In openstack_dashboard/dashboards/project/backups/panel.py make the following changes:
...
+L16: from django.conf import settings
...
+L21: if not getattr(settings, 'OPENSTACK_CINDER_FEATURES', {}).get('enable_backup', False):
+L22: return False
...
** Affects: horizon
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1778771
Title:
Backups panel is visible even if enable_backup is False
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Hi,
Volumes - Backup panel is visible even if OPENSTACK_CINDER_FEATURES =
{'enable_backup': False} in local_settings.py
Meanwhile setting enable_backup to false removes an option to create
backup of a volume in the volume drop-down options. But panel with
backups itself stays visible for both admins and users.
As a work-around I use the following customization script:
import horizon
from django.conf import settings
if not getattr(settings, 'OPENSTACK_CINDER_FEATURES', {}).get('enable_backup', False):
project = horizon.get_dashboard("project")
backup = project.get_panel("backups")
project.unregister(backup.__class__)
And for permanent fix I see the following decision. In openstack_dashboard/dashboards/project/backups/panel.py make the following changes:
...
+L16: from django.conf import settings
...
+L21: if not getattr(settings, 'OPENSTACK_CINDER_FEATURES', {}).get('enable_backup', False):
+L22: return False
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1778771/+subscriptions
Follow ups
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Corey Bryant, 2018-11-05
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Launchpad Bug Tracker, 2018-11-01
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Edward Hope-Morley, 2018-10-12
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Corey Bryant, 2018-10-03
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Launchpad Bug Tracker, 2018-10-03
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Corey Bryant, 2018-10-02
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Corey Bryant, 2018-10-01
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Edward Hope-Morley, 2018-10-01
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: OpenStack Infra, 2018-09-27
-
[Bug 1778771] Re: Backups panel is visible even if enable_backup is False
From: Seyeong Kim, 2018-08-21