Compare commits
3 Commits
7a32d8da9d
...
309b203f5d
Author | SHA1 | Date | |
---|---|---|---|
309b203f5d | |||
de4241161e | |||
1950d22876 |
@ -1,5 +1,9 @@
|
|||||||
## PVC Changelog
|
## PVC Changelog
|
||||||
|
|
||||||
|
###### [v0.9.106](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.106)
|
||||||
|
|
||||||
|
* [API Daemon] Fixes a calculation bug when checking storage free space
|
||||||
|
|
||||||
###### [v0.9.105](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.105)
|
###### [v0.9.105](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.105)
|
||||||
|
|
||||||
* [API Daemon/Provisioner] Corrects some small bugs with OVA handling
|
* [API Daemon/Provisioner] Corrects some small bugs with OVA handling
|
||||||
|
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pvc",
|
name="pvc",
|
||||||
version="0.9.105",
|
version="0.9.106",
|
||||||
packages=["pvc.cli", "pvc.lib"],
|
packages=["pvc.cli", "pvc.lib"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"Click",
|
"Click",
|
||||||
|
@ -596,11 +596,11 @@ def add_volume(zkhandler, pool, name, size, force_flag=False, zk_only=False):
|
|||||||
|
|
||||||
# Check if we're greater than 80% utilization after the create; error if so unless we have the force flag
|
# Check if we're greater than 80% utilization after the create; error if so unless we have the force flag
|
||||||
pool_total_bytes = (
|
pool_total_bytes = (
|
||||||
int(pool_information["stats"]["used_bytes"]) + pool_total_free_bytes
|
int(pool_information["stats"]["stored_bytes"]) + pool_total_free_bytes
|
||||||
)
|
)
|
||||||
pool_safe_total_bytes = int(pool_total_bytes * 0.80)
|
pool_safe_total_bytes = int(pool_total_bytes * 0.80)
|
||||||
pool_safe_free_bytes = pool_safe_total_bytes - int(
|
pool_safe_free_bytes = pool_safe_total_bytes - int(
|
||||||
pool_information["stats"]["used_bytes"]
|
pool_information["stats"]["stored_bytes"]
|
||||||
)
|
)
|
||||||
if size_bytes >= pool_safe_free_bytes and not force_flag:
|
if size_bytes >= pool_safe_free_bytes and not force_flag:
|
||||||
return (
|
return (
|
||||||
@ -656,11 +656,11 @@ def clone_volume(zkhandler, pool, name_src, name_new, force_flag=False):
|
|||||||
|
|
||||||
# Check if we're greater than 80% utilization after the create; error if so unless we have the force flag
|
# Check if we're greater than 80% utilization after the create; error if so unless we have the force flag
|
||||||
pool_total_bytes = (
|
pool_total_bytes = (
|
||||||
int(pool_information["stats"]["used_bytes"]) + pool_total_free_bytes
|
int(pool_information["stats"]["stored_bytes"]) + pool_total_free_bytes
|
||||||
)
|
)
|
||||||
pool_safe_total_bytes = int(pool_total_bytes * 0.80)
|
pool_safe_total_bytes = int(pool_total_bytes * 0.80)
|
||||||
pool_safe_free_bytes = pool_safe_total_bytes - int(
|
pool_safe_free_bytes = pool_safe_total_bytes - int(
|
||||||
pool_information["stats"]["used_bytes"]
|
pool_information["stats"]["stored_bytes"]
|
||||||
)
|
)
|
||||||
if size_bytes >= pool_safe_free_bytes and not force_flag:
|
if size_bytes >= pool_safe_free_bytes and not force_flag:
|
||||||
return (
|
return (
|
||||||
@ -721,11 +721,11 @@ def resize_volume(zkhandler, pool, name, size, force_flag=False):
|
|||||||
|
|
||||||
# Check if we're greater than 80% utilization after the create; error if so unless we have the force flag
|
# Check if we're greater than 80% utilization after the create; error if so unless we have the force flag
|
||||||
pool_total_bytes = (
|
pool_total_bytes = (
|
||||||
int(pool_information["stats"]["used_bytes"]) + pool_total_free_bytes
|
int(pool_information["stats"]["stored_bytes"]) + pool_total_free_bytes
|
||||||
)
|
)
|
||||||
pool_safe_total_bytes = int(pool_total_bytes * 0.80)
|
pool_safe_total_bytes = int(pool_total_bytes * 0.80)
|
||||||
pool_safe_free_bytes = pool_safe_total_bytes - int(
|
pool_safe_free_bytes = pool_safe_total_bytes - int(
|
||||||
pool_information["stats"]["used_bytes"]
|
pool_information["stats"]["stored_bytes"]
|
||||||
)
|
)
|
||||||
if size_bytes >= pool_safe_free_bytes and not force_flag:
|
if size_bytes >= pool_safe_free_bytes and not force_flag:
|
||||||
return (
|
return (
|
||||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
pvc (0.9.106-0) unstable; urgency=high
|
||||||
|
|
||||||
|
* [API Daemon] Fixes a calculation bug when checking storage free space
|
||||||
|
|
||||||
|
-- Joshua M. Boniface <joshua@boniface.me> Mon, 09 Dec 2024 16:45:10 -0500
|
||||||
|
|
||||||
pvc (0.9.105-0) unstable; urgency=high
|
pvc (0.9.105-0) unstable; urgency=high
|
||||||
|
|
||||||
* [API Daemon/Provisioner] Corrects some small bugs with OVA handling
|
* [API Daemon/Provisioner] Corrects some small bugs with OVA handling
|
||||||
|
@ -33,7 +33,7 @@ import os
|
|||||||
import signal
|
import signal
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.105"
|
version = "0.9.106"
|
||||||
|
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
|
@ -49,7 +49,7 @@ import re
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.105"
|
version = "0.9.106"
|
||||||
|
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
|
@ -58,7 +58,7 @@ from daemon_lib.automirror import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.105"
|
version = "0.9.106"
|
||||||
|
|
||||||
|
|
||||||
config = cfg.get_configuration()
|
config = cfg.get_configuration()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user