from cinder.openstack.common import units
from cinder import utils
from cinder.volume.drivers import nfs
- from cinder.volume.drivers.nfs import nas_opts
+ from cinder.volume.drivers.remotefs import nas_opts
from cinder.volume.drivers.san import san
-VERSION = '1.0.0'
+VERSION = '1.1.0'
LOG = logging.getLogger(__name__)
+
+platform_opts = [
+ cfg.StrOpt('ibmnas_platform_type',
+ default='v7ku',
+ help=('IBMNAS platform type to be used as backend storage; '
+ 'valid values are - '
+ 'v7ku : for using IBM Storwize V7000 Unified, '
+ 'sonas : for using IBM Scale Out NAS, '
+ 'gpfs-nas : for using NFS based IBM GPFS deployments.')),
+]
+
CONF = cfg.CONF
+CONF.register_opts(platform_opts)
class IBMNAS_NFSDriver(nfs.NfsDriver, san.SanDriver):
from oslo.config import cfg
- from cinder.brick.remotefs import remotefs
+ from cinder.brick.remotefs import remotefs as remotefs_brick
from cinder import exception
+from cinder.i18n import _
from cinder.image import image_utils
-from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder.openstack.common import processutils as putils
from cinder.openstack.common import units