self.configuration.eqlx_cli_max_retries = 5
self.configuration.eqlx_chap_login = 'admin'
self.configuration.eqlx_chap_password = 'password'
- self.configuration.volume_name_template = 'volume_%s'
self._context = context.get_admin_context()
self.driver = eqlx.DellEQLSanISCSIDriver(
configuration=self.configuration)
def test_create_cloned_volume(self):
self.driver._eql_execute = self.mox.\
CreateMock(self.driver._eql_execute)
- src_vref = {'id': 'fake_uuid'}
+ src_vref = {'name': 'fake_uuid'}
volume = {'name': self.volume_name}
- src_volume_name = self.configuration.\
- volume_name_template % src_vref['id']
- self.driver._eql_execute('volume', 'select', src_volume_name, 'clone',
+ self.driver._eql_execute('volume', 'select', src_vref['name'], 'clone',
volume['name']).\
AndReturn(['iSCSI target name is %s.' % self.fake_iqn])
self.driver._eql_execute('volume', 'select', volume['name'],
def create_cloned_volume(self, volume, src_vref):
"""Creates a clone of the specified volume."""
try:
- src_volume_name = self.configuration.\
- volume_name_template % src_vref['id']
+ src_volume_name = src_vref['name']
out = self._eql_execute('volume', 'select', src_volume_name,
'clone', volume['name'])
self.add_multihost_access(volume)