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
...
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: CINDER_ FEATURES' , {}).get( 'enable_ backup' , False): get_dashboard( "project" ) get_panel( "backups" ) unregister( backup. __class_ _)
import horizon
from django.conf import settings
if not getattr(settings, 'OPENSTACK_
project = horizon.
backup = project.
project.
And for permanent fix I see the following decision. In openstack_ dashboard/ dashboards/ project/ backups/ panel.py make the following changes: CINDER_ FEATURES' , {}).get( 'enable_ backup' , False):
...
+L16: from django.conf import settings
...
+L21: if not getattr(settings, 'OPENSTACK_
+L22: return False
...