Follow up patch to correct a minor documentation issue
Manila is the OpenStack Shared Filesystems service. These series of patches implement changes required in Nova to allow the shares provided by Manila to be associated with and attached to instances using virtiofs. Implements: blueprint libvirt-virtiofs-attach-manila-shares Change-Id: I9d94a80d5e86d0494f59e02949d2cc45f8055e84
This commit is contained in:
@@ -87,11 +87,12 @@ class ShareMapping(base.NovaTimestampObject, base.NovaObject):
|
||||
|
||||
@base.remotable_classmethod
|
||||
def get_by_instance_uuid_and_share_id(
|
||||
# This query returns only one element as a share can be
|
||||
# associated only one time to an instance.
|
||||
# Note: the REST API prevent the user to create duplicate share
|
||||
# mapping by raising an exception.ShareMappingAlreadyExists.
|
||||
cls, context, instance_uuid, share_id):
|
||||
"""This query returns only one element as a share can be
|
||||
associated only one time to an instance.
|
||||
Note: the REST API prevent the user to create duplicate share
|
||||
mapping by raising an exception.ShareMappingAlreadyExists.
|
||||
"""
|
||||
share_mapping = ShareMapping(context)
|
||||
db_share_mapping = db.share_mapping_get_by_instance_uuid_and_share_id(
|
||||
context, instance_uuid, share_id)
|
||||
|
||||
Reference in New Issue
Block a user