ZFS Storage Appliance Cinder Volume Driver
"""
import ast
-import base64
import math
from oslo_config import cfg
from oslo_log import log
+from oslo_serialization import base64
from oslo_utils import units
import six
self.zfssa = factory_zfssa()
self.tgt_zfssa = factory_zfssa()
self.zfssa.set_host(lcfg.san_ip, timeout=lcfg.zfssa_rest_timeout)
- auth_str = base64.encodestring('%s:%s' %
- (lcfg.san_login,
- lcfg.san_password))[:-1]
+ auth_str = '%s:%s' % (lcfg.san_login, lcfg.san_password)
+ auth_str = base64.encode_as_text(auth_str)[:-1]
self.zfssa.login(auth_str)
self.zfssa.create_project(lcfg.zfssa_pool, lcfg.zfssa_project,
host = lcfg.san_ip
pool = lcfg.zfssa_pool
project = lcfg.zfssa_project
- auth_str = base64.encodestring('%s:%s' %
- (lcfg.san_login,
- lcfg.san_password))[:-1]
+ auth_str = '%s:%s' % (lcfg.san_login, lcfg.san_password)
+ auth_str = base64.encode_as_text(auth_str)[:-1]
zfssa_tgt_group = lcfg.zfssa_target_group
repl_ip = lcfg.zfssa_replication_ip
"""
ZFS Storage Appliance NFS Cinder Volume Driver
"""
-import base64
import datetime as dt
import errno
import math
from oslo_config import cfg
from oslo_log import log
+from oslo_serialization import base64
from oslo_utils import excutils
from oslo_utils import units
import six
self.zfssa = factory_zfssa()
self.zfssa.set_host(host, timeout=lcfg.zfssa_rest_timeout)
- auth_str = base64.encodestring('%s:%s' % (user, password))[:-1]
+ auth_str = base64.encode_as_text('%s:%s' % (user, password))[:-1]
self.zfssa.login(auth_str)
self.zfssa.create_project(lcfg.zfssa_nfs_pool, lcfg.zfssa_nfs_project,
cinder.tests.unit.test_volume_types_extra_specs
cinder.tests.unit.test_volume_utils
cinder.tests.unit.test_vzstorage
+cinder.tests.unit.test_zfssa
cinder.tests.unit.volume.drivers.emc.scaleio
cinder.tests.unit.volume.flows.test_create_volume_flow
cinder.tests.unit.windows.test_smbfs