Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bhagyashree-sarawate committed Aug 19, 2019
1 parent 991b17b commit 8c130b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions hpedockerplugin/hpe/hpe_3par_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,9 @@ def create_volume(self, volume):
extras['compression'] = compression
else:
err = (_("To create compression enabled volume, size of "
"the volume should be atleast 16GB. Fully "
"provisioned volume can not be compressed. "
"Please re enter requested volume size or "
"the volume should be at least 16GB. Fully "
"provisioned volume cannot be compressed. "
"Please re-enter requested volume size or "
"provisioning type. "))
# LOG.error(err)
raise exception.HPEDriverInvalidSizeForCompressedVolume(
Expand Down Expand Up @@ -887,10 +887,10 @@ def create_volume(self, volume):
msg = "For thin volume, 'provisioning' must be specified " \
"as 'thin'. And for deduplicated and compressed " \
"volume, 'provisioning' must be specified as 'dedup' " \
"and 'compression' must be specified to true. " \
"and 'compression' must be specified as true. " \
"If any of " \
"these conditions for a given type of volume" \
"is not met volume creation will fail"
"these conditions for a given type of volume " \
"is not met volume creation will fail."
raise exception.HPEDriverInvalidInput(reason=msg)

raise exception.HPEDriverInvalidInput(reason=ex.get_description())
Expand Down
4 changes: 2 additions & 2 deletions hpedockerplugin/hpe_storage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def volumedriver_create_snapshot(self, name, mount_conflict_delay,
if exphrs is not None:
if rethrs > exphrs:
msg = ('create schedule failed, error is: '
'expiration hours cannot be greater than '
'expiration hours must be greater than '
'retention hours')
LOG.error(msg)
response = json.dumps({'Err': msg})
Expand Down Expand Up @@ -746,7 +746,7 @@ def volumedriver_create_snapshot(self, name, mount_conflict_delay,
schedNameLength = len(schedName)
snapPrefixLength = len(snapPrefix)
if schedNameLength > 31 or snapPrefixLength > 15:
msg = ('Please provide a schedlueName with max 31 '
msg = ('Please provide a scheduleName with max 31 '
'characters and snapshotPrefix with max '
'length of 15 characters')
LOG.error(msg)
Expand Down
7 changes: 4 additions & 3 deletions hpedockerplugin/volume_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ def _initialize_configuration(self):
"Failed to initialize driver - cpg_map not defined for"
"replication device")

self.tgt_bkend_config.hpe3par_snapcpg = \
self._extract_remote_cpgs(
self.tgt_bkend_config.snap_cpg_map)
if self.tgt_bkend_config.snap_cpg_map:
self.tgt_bkend_config.hpe3par_snapcpg = \
self._extract_remote_cpgs(
self.tgt_bkend_config.snap_cpg_map)
if not self.tgt_bkend_config.hpe3par_snapcpg:
self.tgt_bkend_config.hpe3par_snapcpg = \
self.tgt_bkend_config.hpe3par_cpg
Expand Down

0 comments on commit 8c130b0

Please sign in to comment.