b1a22463d6
This extends the support for Cinder volume consistency groups. This patch adds snapshot support for all volumes contained within a consistency group. Additional features includes the ability to create a new consistency group from an existing consistency group or consistency group snapshot. This will involve cloning all volumes in the original CG. To enable this feature, update "consistencygroup" items in the cinder policy file (/etc/cinder/policy.json). The default is that all consistencygroup actions are disabled. Co-Authored-By: Brad Pokorny <brad_pokorny@symantec.com> Change-Id: I2e2ae26369a23415bf58d6edac8d161d3a125dd6 Implements: blueprint cinder-consistency-groups
58 lines
2.2 KiB
Python
58 lines
2.2 KiB
Python
# Copyright 2012 Nebula, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from django.conf.urls import include
|
|
from django.conf.urls import url
|
|
|
|
from openstack_dashboard.dashboards.project.volumes.backups \
|
|
import urls as backups_urls
|
|
from openstack_dashboard.dashboards.project.volumes.cg_snapshots \
|
|
import urls as cg_snapshots_urls
|
|
from openstack_dashboard.dashboards.project.volumes.cgroups \
|
|
import urls as cgroup_urls
|
|
from openstack_dashboard.dashboards.project.volumes.snapshots \
|
|
import urls as snapshot_urls
|
|
from openstack_dashboard.dashboards.project.volumes import views
|
|
from openstack_dashboard.dashboards.project.volumes.volumes \
|
|
import urls as volume_urls
|
|
|
|
urlpatterns = [
|
|
url(r'^$', views.IndexView.as_view(), name='index'),
|
|
url(r'^\?tab=volumes_and_snapshots__snapshots_tab$',
|
|
views.IndexView.as_view(), name='snapshots_tab'),
|
|
url(r'^\?tab=volumes_and_snapshots__volumes_tab$',
|
|
views.IndexView.as_view(), name='volumes_tab'),
|
|
url(r'^\?tab=volumes_and_snapshots__backups_tab$',
|
|
views.IndexView.as_view(), name='backups_tab'),
|
|
url(r'^\?tab=volumes_and_snapshots__cgroups_tab$',
|
|
views.IndexView.as_view(), name='cgroups_tab'),
|
|
url(r'^\?tab=volumes_and_snapshots__cg_snapshots_tab$',
|
|
views.IndexView.as_view(), name='cg_snapshots_tab'),
|
|
url(r'', include(
|
|
volume_urls,
|
|
namespace='volumes')),
|
|
url(r'backups/', include(
|
|
backups_urls,
|
|
namespace='backups')),
|
|
url(r'snapshots/', include(
|
|
snapshot_urls,
|
|
namespace='snapshots')),
|
|
url(r'cgroups/', include(
|
|
cgroup_urls,
|
|
namespace='cgroups')),
|
|
url(r'cg_snapshots/', include(
|
|
cg_snapshots_urls,
|
|
namespace='cg_snapshots')),
|
|
]
|