Compare commits
3 Commits
35e27f79ef
...
v0.9.78
Author | SHA1 | Date | |
---|---|---|---|
c6c44bf775 | |||
bbb940da65 | |||
a0b45a2bcd |
@ -1,5 +1,10 @@
|
||||
## PVC Changelog
|
||||
|
||||
###### [v0.9.78](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.78)
|
||||
|
||||
* [API, Client CLI] Fixes several bugs around image uploads; adds a new query parameter for non-raw images
|
||||
* [API] Ensures RBD images are created with a raw bytes value to avoid rounding errors
|
||||
|
||||
###### [v0.9.77](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.77)
|
||||
|
||||
* [Client CLI] Fixes a bug from a bad library import
|
||||
|
@ -27,7 +27,7 @@ from ssl import SSLContext, TLSVersion
|
||||
from distutils.util import strtobool as dustrtobool
|
||||
|
||||
# Daemon version
|
||||
version = "0.9.77"
|
||||
version = "0.9.78"
|
||||
|
||||
# API version
|
||||
API_VERSION = 1.0
|
||||
|
@ -1629,7 +1629,6 @@ def ceph_volume_upload(zkhandler, pool, volume, img_type, file_size=None):
|
||||
zkhandler, pool, "{}_tmp".format(volume)
|
||||
)
|
||||
|
||||
# Create a temporary block device to store non-raw images
|
||||
if img_type == "raw":
|
||||
if file_size != dev_size:
|
||||
output = {
|
||||
@ -1676,7 +1675,6 @@ def ceph_volume_upload(zkhandler, pool, volume, img_type, file_size=None):
|
||||
cleanup_maps_and_volumes()
|
||||
return output, retcode
|
||||
|
||||
# Write the image directly to the blockdev
|
||||
else:
|
||||
if file_size is None:
|
||||
output = {"message": "A file size must be specified"}
|
||||
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||
|
||||
setup(
|
||||
name="pvc",
|
||||
version="0.9.77",
|
||||
version="0.9.78",
|
||||
packages=["pvc.cli", "pvc.lib"],
|
||||
install_requires=[
|
||||
"Click",
|
||||
|
@ -763,9 +763,7 @@ def add_volume(zkhandler, pool, name, size):
|
||||
|
||||
# 2. Create the volume
|
||||
retcode, stdout, stderr = common.run_os_command(
|
||||
"rbd create --size {} {}/{}".format(
|
||||
format_bytes_tohuman(size_bytes), pool, name
|
||||
)
|
||||
"rbd create --size {}B {}/{}".format(size_bytes, pool, name)
|
||||
)
|
||||
if retcode:
|
||||
return False, 'ERROR: Failed to create RBD volume "{}": {}'.format(name, stderr)
|
||||
|
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
||||
pvc (0.9.78-0) unstable; urgency=high
|
||||
|
||||
* [API, Client CLI] Fixes several bugs around image uploads; adds a new query parameter for non-raw images
|
||||
* [API] Ensures RBD images are created with a raw bytes value to avoid rounding errors
|
||||
|
||||
-- Joshua M. Boniface <joshua@boniface.me> Sat, 30 Sep 2023 12:57:55 -0400
|
||||
|
||||
pvc (0.9.77-0) unstable; urgency=high
|
||||
|
||||
* [Client CLI] Fixes a bug from a bad library import
|
||||
|
@ -49,7 +49,7 @@ import re
|
||||
import json
|
||||
|
||||
# Daemon version
|
||||
version = "0.9.77"
|
||||
version = "0.9.78"
|
||||
|
||||
|
||||
##########################################################
|
||||
|
Reference in New Issue
Block a user