Make the mountpoint property description clearer

There is an issue where the mountpoint may not be honored
so add this note to the property documentation so users can be
aware of the issue.

Change-Id: Iddab9b1f6e5fadddd00e651e92b8b9c922a59347
Closes-bug: #1231705
This commit is contained in:
Angus Salkeld 2013-12-11 17:28:40 +11:00
parent 700563477c
commit c1fae45fe7
1 changed files with 8 additions and 2 deletions

View File

@ -286,7 +286,10 @@ class VolumeAttachment(resource.Resource):
'Type': 'String', 'Required': True,
'AllowedPattern': '/dev/vd[b-z]',
'Description': _('The device where the volume is exposed on '
'the instance.')}
'the instance. This assignment may not be '
'honored and it is advised that the path '
'/dev/disk/by-id/virtio-<VolumeId> be used '
'instead.')}
}
_instance_property = 'InstanceId'
@ -427,7 +430,10 @@ class CinderVolumeAttachment(VolumeAttachment):
'mountpoint': {
'Type': 'String', 'Required': True,
'Description': _('The location where the volume is exposed on '
'the instance.')}
'the instance. This assignment may not be '
'honored and it is advised that the path '
'/dev/disk/by-id/virtio-<VolumeId> be used '
'instead.')}
}
_instance_property = 'instance_uuid'