~ubuntu-branches/ubuntu/raring/cinder/raring-updates

« back to all changes in this revision

Viewing changes to cinder/volume/drivers/san/san.py

Tags: upstream-2013.1~g2
ImportĀ upstreamĀ versionĀ 2013.1~g2

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
                while attempts > 0:
118
118
                    attempts -= 1
119
119
                    try:
120
 
                        return utils.ssh_execute(ssh, command,
121
 
                                               check_exit_code=check_exit_code)
 
120
                        return utils.ssh_execute(
 
121
                            ssh,
 
122
                            command,
 
123
                            check_exit_code=check_exit_code)
122
124
                    except Exception as e:
123
125
                        LOG.error(e)
124
126
                        greenthread.sleep(random.randint(20, 500) / 100.0)
151
153
        # The san_ip must always be set, because we use it for the target
152
154
        if not FLAGS.san_ip:
153
155
            raise exception.InvalidInput(reason=_("san_ip must be set"))
 
156
 
 
157
    def copy_image_to_volume(self, context, volume, image_service, image_id):
 
158
        """Fetch the image from image_service and write it to the volume."""
 
159
        raise NotImplementedError()
 
160
 
 
161
    def copy_volume_to_image(self, context, volume, image_service, image_id):
 
162
        """Copy the volume to the specified image."""
 
163
        raise NotImplementedError()
 
164
 
 
165
    def create_cloned_volume(self, volume, src_vref):
 
166
        """Create a cloen of the specified volume."""
 
167
        raise NotImplementedError()