fc00a865fe
This patch fixes the 3PAR driver's create_cloned_volume call in the case where a larger size for the volume was specified. When the new volume size is the same as the source volume, we still use an 'online' copy, which is 3PAR speak for background copy. When the new volume size is larger than the source volume, we have to do an offline copy, which entails creating a fresh volume with the requested size, and then copying the bits from the old volume to the new. This copy happens on the 3PAR itself and can take some time to complete. This patch also updates the minimum client version to 4.2.0 Change-Id: Ie2da441b32017f38e743189060209084e1f20974 Closes-bug: #1554740
29 lines
964 B
Python
29 lines
964 B
Python
# (c) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
"""Fake HPE client for testing 3PAR without installing the client."""
|
|
|
|
import sys
|
|
|
|
import mock
|
|
|
|
from cinder.tests.unit import fake_hpe_client_exceptions as hpeexceptions
|
|
|
|
hpe3par = mock.Mock()
|
|
hpe3par.version = "4.2.0"
|
|
hpe3par.exceptions = hpeexceptions
|
|
|
|
sys.modules['hpe3parclient'] = hpe3par
|