Merge "Keep consistent of naming convention"
This commit is contained in:
commit
0705b003c2
@ -12,7 +12,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
# cinder documentation build configuration file, created by
|
# Cinder documentation build configuration file, created by
|
||||||
# sphinx-quickstart on Sat May 1 15:17:47 2010.
|
# sphinx-quickstart on Sat May 1 15:17:47 2010.
|
||||||
#
|
#
|
||||||
# This file is execfile()d with the current directory set to
|
# This file is execfile()d with the current directory set to
|
||||||
|
@ -26,7 +26,7 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def root_app_factory(loader, global_conf, **local_conf):
|
def root_app_factory(loader, global_conf, **local_conf):
|
||||||
if CONF.enable_v1_api:
|
if CONF.enable_v1_api:
|
||||||
LOG.warning('The v1 api is deprecated and is not under active '
|
LOG.warning('The v1 API is deprecated and is not under active '
|
||||||
'development. You should set enable_v1_api=false '
|
'development. You should set enable_v1_api=false '
|
||||||
'and enable_v3_api=true in your cinder.conf file.')
|
'and enable_v3_api=true in your cinder.conf file.')
|
||||||
return paste.urlmap.urlmap_factory(loader, global_conf, **local_conf)
|
return paste.urlmap.urlmap_factory(loader, global_conf, **local_conf)
|
||||||
|
@ -254,7 +254,7 @@ def get_request_url(request):
|
|||||||
|
|
||||||
|
|
||||||
def remove_version_from_href(href):
|
def remove_version_from_href(href):
|
||||||
"""Removes the first api version from the href.
|
"""Removes the first API version from the href.
|
||||||
|
|
||||||
Given: 'http://cinder.example.com/v1.1/123'
|
Given: 'http://cinder.example.com/v1.1/123'
|
||||||
Returns: 'http://cinder.example.com/123'
|
Returns: 'http://cinder.example.com/123'
|
||||||
|
@ -61,7 +61,7 @@ class VolumeActionsController(wsgi.Controller):
|
|||||||
# Not found exception will be handled at the wsgi level
|
# Not found exception will be handled at the wsgi level
|
||||||
volume = self.volume_api.get(context, id)
|
volume = self.volume_api.get(context, id)
|
||||||
|
|
||||||
# instance uuid is an option now
|
# instance UUID is an option now
|
||||||
instance_uuid = None
|
instance_uuid = None
|
||||||
if 'instance_uuid' in body['os-attach']:
|
if 'instance_uuid' in body['os-attach']:
|
||||||
instance_uuid = body['os-attach']['instance_uuid']
|
instance_uuid = body['os-attach']['instance_uuid']
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""The volumes attachments api."""
|
"""The volumes attachments API."""
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import webob
|
import webob
|
||||||
@ -114,8 +114,8 @@ class AttachmentsController(wsgi.Controller):
|
|||||||
information (connector data) at the time of the call.
|
information (connector data) at the time of the call.
|
||||||
|
|
||||||
NOTE: In Nova terms server == instance, the server_id parameter
|
NOTE: In Nova terms server == instance, the server_id parameter
|
||||||
referenced below is the uuid of the Instance, for non-nova consumers
|
referenced below is the UUID of the Instance, for non-nova consumers
|
||||||
this can be a server uuid or some other arbitrary unique identifier.
|
this can be a server UUID or some other arbitrary unique identifier.
|
||||||
|
|
||||||
Expected format of the input parameter 'body':
|
Expected format of the input parameter 'body':
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""The backups V3 api."""
|
"""The backups V3 API."""
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from webob import exc
|
from webob import exc
|
||||||
@ -32,7 +32,7 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class BackupsController(backups_v2.BackupsController):
|
class BackupsController(backups_v2.BackupsController):
|
||||||
"""The backups API controller for the Openstack API V3."""
|
"""The backups API controller for the OpenStack API V3."""
|
||||||
|
|
||||||
@wsgi.Controller.api_version(BACKUP_UPDATE_MICRO_VERSION)
|
@wsgi.Controller.api_version(BACKUP_UPDATE_MICRO_VERSION)
|
||||||
def update(self, req, id, body):
|
def update(self, req, id, body):
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""The consistencygroups V3 api."""
|
"""The consistencygroups V3 API."""
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from six.moves import http_client
|
from six.moves import http_client
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""The group_snapshots api."""
|
"""The group_snapshots API."""
|
||||||
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import six
|
import six
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""The volumes snapshots V3 api."""
|
"""The volumes snapshots V3 API."""
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
|
|
||||||
|
@ -87,11 +87,11 @@ class BackupMetadataAPI(base.Base):
|
|||||||
LOG.info("Unable to serialize field '%s' - excluding "
|
LOG.info("Unable to serialize field '%s' - excluding "
|
||||||
"from backup", key)
|
"from backup", key)
|
||||||
continue
|
continue
|
||||||
# Copy the encryption key uuid for backup
|
# Copy the encryption key UUID for backup
|
||||||
if key is 'encryption_key_id' and value is not None:
|
if key is 'encryption_key_id' and value is not None:
|
||||||
km = key_manager.API(CONF)
|
km = key_manager.API(CONF)
|
||||||
value = km.store(self.context, km.get(self.context, value))
|
value = km.store(self.context, km.get(self.context, value))
|
||||||
LOG.debug("Copying encryption key uuid for backup.")
|
LOG.debug("Copying encryption key UUID for backup.")
|
||||||
container[type_tag][key] = value
|
container[type_tag][key] = value
|
||||||
|
|
||||||
LOG.debug("Completed fetching metadata type '%s'", type_tag)
|
LOG.debug("Completed fetching metadata type '%s'", type_tag)
|
||||||
|
@ -818,7 +818,7 @@ class Message(BASE, CinderBase):
|
|||||||
message_level = Column(String(255), nullable=False)
|
message_level = Column(String(255), nullable=False)
|
||||||
request_id = Column(String(255), nullable=True)
|
request_id = Column(String(255), nullable=True)
|
||||||
resource_type = Column(String(255))
|
resource_type = Column(String(255))
|
||||||
# The uuid of the related resource.
|
# The UUID of the related resource.
|
||||||
resource_uuid = Column(String(36), nullable=True)
|
resource_uuid = Column(String(36), nullable=True)
|
||||||
# Operation specific event ID.
|
# Operation specific event ID.
|
||||||
event_id = Column(String(255), nullable=False)
|
event_id = Column(String(255), nullable=False)
|
||||||
|
@ -266,7 +266,7 @@ class SnapshotUnavailable(VolumeBackendAPIException):
|
|||||||
|
|
||||||
|
|
||||||
class InvalidUUID(Invalid):
|
class InvalidUUID(Invalid):
|
||||||
message = _("Expected a uuid but received %(uuid)s.")
|
message = _("Expected a UUID but received %(uuid)s.")
|
||||||
|
|
||||||
|
|
||||||
class InvalidAPIVersionString(Invalid):
|
class InvalidAPIVersionString(Invalid):
|
||||||
|
@ -442,7 +442,7 @@ class NimbleBaseVolumeDriver(san.SanDriver):
|
|||||||
if 'access_control_records' in vol_info and (
|
if 'access_control_records' in vol_info and (
|
||||||
vol_info['access_control_records'] is not None):
|
vol_info['access_control_records'] is not None):
|
||||||
msg = (_('Volume %s has ACL associated with it. Remove ACL '
|
msg = (_('Volume %s has ACL associated with it. Remove ACL '
|
||||||
'for managing using Openstack') % target_vol_name)
|
'for managing using OpenStack') % target_vol_name)
|
||||||
raise exception.InvalidVolume(reason=msg)
|
raise exception.InvalidVolume(reason=msg)
|
||||||
data['data']['agent_type'] = AGENT_TYPE_OPENSTACK_GST
|
data['data']['agent_type'] = AGENT_TYPE_OPENSTACK_GST
|
||||||
else:
|
else:
|
||||||
|
@ -151,7 +151,7 @@ class ReduxioISCSIDriver(san.SanISCSIDriver):
|
|||||||
cli_vol = self.rdxApi.find_volume_by_name(target_vol_name)
|
cli_vol = self.rdxApi.find_volume_by_name(target_vol_name)
|
||||||
managed_info = self._get_managed_info(cli_vol)
|
managed_info = self._get_managed_info(cli_vol)
|
||||||
|
|
||||||
# Check if volume is already managed by Openstack
|
# Check if volume is already managed by OpenStack
|
||||||
if managed_info[AGENT_TYPE_KEY] == AGENT_TYPE_OPENSTACK:
|
if managed_info[AGENT_TYPE_KEY] == AGENT_TYPE_OPENSTACK:
|
||||||
raise exception.ManageExistingAlreadyManaged(
|
raise exception.ManageExistingAlreadyManaged(
|
||||||
volume_ref=volume['id'])
|
volume_ref=volume['id'])
|
||||||
@ -187,7 +187,7 @@ class ReduxioISCSIDriver(san.SanISCSIDriver):
|
|||||||
managed_info = self._get_managed_info(cli_vol)
|
managed_info = self._get_managed_info(cli_vol)
|
||||||
|
|
||||||
if managed_info['agent-type'] != AGENT_TYPE_OPENSTACK:
|
if managed_info['agent-type'] != AGENT_TYPE_OPENSTACK:
|
||||||
msg = _('Only volumes managed by Openstack can be unmanaged.')
|
msg = _('Only volumes managed by OpenStack can be unmanaged.')
|
||||||
raise exception.InvalidVolume(reason=msg)
|
raise exception.InvalidVolume(reason=msg)
|
||||||
|
|
||||||
# update the agent-type to None
|
# update the agent-type to None
|
||||||
@ -244,7 +244,7 @@ class ReduxioISCSIDriver(san.SanISCSIDriver):
|
|||||||
Reduxio CLI date: mm/dd/yyyy-hh:mm:ss.
|
Reduxio CLI date: mm/dd/yyyy-hh:mm:ss.
|
||||||
for example: '02/17/2015-11:39:00.
|
for example: '02/17/2015-11:39:00.
|
||||||
Note: Different timezones might be configured
|
Note: Different timezones might be configured
|
||||||
for Reduxio and Openstack.
|
for Reduxio and OpenStack.
|
||||||
The specified date must be related to Reduxio time settings.
|
The specified date must be related to Reduxio time settings.
|
||||||
|
|
||||||
If meta key 'backdate' was not specified,
|
If meta key 'backdate' was not specified,
|
||||||
@ -292,7 +292,7 @@ class ReduxioISCSIDriver(san.SanISCSIDriver):
|
|||||||
Reduxio CLI date: mm/dd/yyyy-hh:mm:ss.
|
Reduxio CLI date: mm/dd/yyyy-hh:mm:ss.
|
||||||
for example: '02/17/2015-11:39:00'.
|
for example: '02/17/2015-11:39:00'.
|
||||||
Note: Different timezones might be configured
|
Note: Different timezones might be configured
|
||||||
for Reduxio and Openstack.
|
for Reduxio and OpenStack.
|
||||||
The specified date must be related to Reduxio time settings.
|
The specified date must be related to Reduxio time settings.
|
||||||
|
|
||||||
If meta key 'backdate' was not specified, then we create a snapshot
|
If meta key 'backdate' was not specified, then we create a snapshot
|
||||||
|
@ -25,7 +25,7 @@ LOG = logging.getLogger(__name__)
|
|||||||
|
|
||||||
@interface.volumedriver
|
@interface.volumedriver
|
||||||
class SynoISCSIDriver(driver.ISCSIDriver):
|
class SynoISCSIDriver(driver.ISCSIDriver):
|
||||||
"""Openstack Cinder drivers for Synology storage.
|
"""OpenStack Cinder drivers for Synology storage.
|
||||||
|
|
||||||
Version history:
|
Version history:
|
||||||
1.0.0 - Initial driver. Provide Cinder minimum features
|
1.0.0 - Initial driver. Provide Cinder minimum features
|
||||||
|
@ -97,7 +97,7 @@ master_doc = 'index'
|
|||||||
repository_name = 'openstack/cinder'
|
repository_name = 'openstack/cinder'
|
||||||
bug_project = 'cinder'
|
bug_project = 'cinder'
|
||||||
bug_tag = 'doc'
|
bug_tag = 'doc'
|
||||||
project = u'cinder'
|
project = u'Cinder'
|
||||||
copyright = u'2010-present, OpenStack Foundation'
|
copyright = u'2010-present, OpenStack Foundation'
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
|
@ -36,12 +36,12 @@ changed. The user contract covers many kinds of information such as:
|
|||||||
|
|
||||||
- the Request
|
- the Request
|
||||||
|
|
||||||
- the list of resource urls which exist on the server
|
- the list of resource URLs which exist on the server
|
||||||
|
|
||||||
Example: adding a new shares/{ID}/foo which didn't exist in a
|
Example: adding a new shares/{ID}/foo which didn't exist in a
|
||||||
previous version of the code
|
previous version of the code
|
||||||
|
|
||||||
- the list of query parameters that are valid on urls
|
- the list of query parameters that are valid on URLs
|
||||||
|
|
||||||
Example: adding a new parameter ``is_yellow`` servers/{ID}?is_yellow=True
|
Example: adding a new parameter ``is_yellow`` servers/{ID}?is_yellow=True
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ we need a microversion".
|
|||||||
new_param[shape="diamond", style="", label="Did we add or remove
|
new_param[shape="diamond", style="", label="Did we add or remove
|
||||||
an accepted query string parameter or value?"];
|
an accepted query string parameter or value?"];
|
||||||
new_resource[shape="diamond", style="", label="Did we add or remove a
|
new_resource[shape="diamond", style="", label="Did we add or remove a
|
||||||
resource url?"];
|
resource URL?"];
|
||||||
|
|
||||||
|
|
||||||
no[shape="box", style=rounded, label="No microversion needed"];
|
no[shape="box", style=rounded, label="No microversion needed"];
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""Generate list of cinder drivers"""
|
"""Generate list of Cinder drivers"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
@ -120,7 +120,7 @@ def collect_driver_info(driver):
|
|||||||
|
|
||||||
|
|
||||||
def output_dict():
|
def output_dict():
|
||||||
"""Output the results as a json dict."""
|
"""Output the results as a JSON dict."""
|
||||||
|
|
||||||
driver_list = []
|
driver_list = []
|
||||||
drivers = util.get_volume_drivers()
|
drivers = util.get_volume_drivers()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user