 5c5bc57d2b
			
		
	
	5c5bc57d2b
	
	
	
		
			
			Cinder deprecated the GlusterFS volume driver in Newton and deleted it in Ocata: I10c576602dd0e65947d1a1af5d04b8ada54f4625 Since it's unused, unmaintained and unsupported in Cinder we should remove it from the libvirt driver. This also removes the related configuration options. A note is left in the code since I'm unsure if anything relies on checking for the netfs disk source_protocol which was added at the same time as the glusterfs support in Ic6dd861b40b692b25df67c9d5b63fd436c690fde. Change-Id: I2745f5578646ec994b53f6b5c0a5f62637b0948a
		
			
				
	
	
		
			92 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
| .. -*- rst -*-
 | |
| 
 | |
| ==========================================================
 | |
|  Assisted volume snapshots (os-assisted-volume-snapshots)
 | |
| ==========================================================
 | |
| 
 | |
| Creates and deletes snapshots through an emulator/hypervisor. Only qcow2
 | |
| file format is supported.
 | |
| 
 | |
| This API is only implemented by the libvirt compute driver.
 | |
| 
 | |
| An internal snapshot that lacks storage such as NFS can use
 | |
| an emulator/hypervisor to add the snapshot feature.
 | |
| This is used to enable snapshot of volumes on backends such as NFS
 | |
| by storing data as qcow2 files on these volumes.
 | |
| 
 | |
| This API is only ever called by Cinder, where it is used to create a snapshot
 | |
| for drivers that extend the remotefs Cinder driver.
 | |
| 
 | |
| Create Assisted Volume Snapshots
 | |
| ================================
 | |
| 
 | |
| .. rest_method:: POST /os-assisted-volume-snapshots
 | |
| 
 | |
| Creates an assisted volume snapshot.
 | |
| 
 | |
| Normal response codes: 200
 | |
| 
 | |
| Error response codes: badRequest(400),unauthorized(401), forbidden(403)
 | |
| 
 | |
| Request
 | |
| -------
 | |
| 
 | |
| .. rest_parameters:: parameters.yaml
 | |
| 
 | |
| 
 | |
|   - snapshot: snapshot
 | |
|   - volume_id: volume_id
 | |
|   - create_info: create_info
 | |
|   - create_info.snapshot_id: snapshot_id
 | |
|   - create_info.type: type-os-assisted-volume-snapshot
 | |
|   - create_info.new_file: new_file
 | |
|   - create_info.id: create_info_id
 | |
| 
 | |
| **Example Create Assisted Volume Snapshots: JSON request**
 | |
| 
 | |
| .. literalinclude:: ../../doc/api_samples/os-assisted-volume-snapshots/snapshot-create-assisted-req.json
 | |
|    :language: javascript
 | |
| 
 | |
| Response
 | |
| --------
 | |
| 
 | |
| .. rest_parameters:: parameters.yaml
 | |
| 
 | |
|   - snapshot: snapshot
 | |
|   - id: create_info_id_resp
 | |
|   - volumeId: volume_id
 | |
| 
 | |
| **Example Create Assisted Volume Snapshots: JSON response**
 | |
| 
 | |
| .. literalinclude:: ../../doc/api_samples/os-assisted-volume-snapshots/snapshot-create-assisted-resp.json
 | |
|    :language: javascript
 | |
| 
 | |
| Delete Assisted Volume Snapshot
 | |
| ===============================
 | |
| 
 | |
| .. rest_method:: DELETE /os-assisted-volume-snapshots/{snapshot_id}
 | |
| 
 | |
| Deletes an assisted volume snapshot.
 | |
| 
 | |
| To make this request, add the ``delete_info`` query parameter to the URI, as follows:
 | |
| 
 | |
| DELETE /os-assisted-volume-snapshots/421752a6-acf6-4b2d-bc7a-119f9148cd8c?delete_info='{"volume_id": "521752a6-acf6-4b2d-bc7a-119f9148cd8c"}'
 | |
| 
 | |
| Normal response codes: 204
 | |
| 
 | |
| Error response codes: badRequest(400), unauthorized(401), forbidden(403),
 | |
| itemNotFound(404)
 | |
| 
 | |
| Request
 | |
| -------
 | |
| 
 | |
| .. rest_parameters:: parameters.yaml
 | |
| 
 | |
|   - snapshot_id: snapshot_id_path
 | |
|   - delete_info: delete_info
 | |
| 
 | |
| Response
 | |
| --------
 | |
| 
 | |
| There is no body content for the response of a successful DELETE query
 |