Compare commits
3 Commits
234d6ae83b
...
v0.9.98
Author | SHA1 | Date | |
---|---|---|---|
1aa5999109 | |||
570460e5ee | |||
7a99e0e524 |
@ -1,5 +1,14 @@
|
|||||||
## PVC Changelog
|
## PVC Changelog
|
||||||
|
|
||||||
|
###### [v0.9.98](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.98)
|
||||||
|
|
||||||
|
* [CLI Client] Fixed output when API call times out
|
||||||
|
* [Node Daemon] Improves the handling of fence states
|
||||||
|
* [API Daemon/CLI Client] Adds support for storage snapshot rollback
|
||||||
|
* [CLI Client] Adds additional warning messages about snapshot consistency to help output
|
||||||
|
* [API Daemon] Fixes a bug listing snapshots by pool/volume
|
||||||
|
* [Node Daemon] Adds a --version flag for information gathering by update-motd.sh
|
||||||
|
|
||||||
###### [v0.9.97](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.97)
|
###### [v0.9.97](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.97)
|
||||||
|
|
||||||
* [Client CLI] Ensures --lines is always an integer value
|
* [Client CLI] Ensures --lines is always an integer value
|
||||||
|
@ -27,7 +27,7 @@ from distutils.util import strtobool as dustrtobool
|
|||||||
import daemon_lib.config as cfg
|
import daemon_lib.config as cfg
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.97"
|
version = "0.9.98"
|
||||||
|
|
||||||
# API version
|
# API version
|
||||||
API_VERSION = 1.0
|
API_VERSION = 1.0
|
||||||
|
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pvc",
|
name="pvc",
|
||||||
version="0.9.97",
|
version="0.9.98",
|
||||||
packages=["pvc.cli", "pvc.lib"],
|
packages=["pvc.cli", "pvc.lib"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"Click",
|
"Click",
|
||||||
|
@ -540,7 +540,10 @@ def getCephVolumes(zkhandler, pool):
|
|||||||
pool_list = [pool]
|
pool_list = [pool]
|
||||||
|
|
||||||
for pool_name in pool_list:
|
for pool_name in pool_list:
|
||||||
for volume_name in zkhandler.children(("volume", pool_name)):
|
children = zkhandler.children(("volume", pool_name))
|
||||||
|
if children is None:
|
||||||
|
continue
|
||||||
|
for volume_name in children:
|
||||||
volume_list.append("{}/{}".format(pool_name, volume_name))
|
volume_list.append("{}/{}".format(pool_name, volume_name))
|
||||||
|
|
||||||
return volume_list
|
return volume_list
|
||||||
@ -1153,20 +1156,9 @@ def remove_snapshot(zkhandler, pool, volume, name):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_list_snapshot(zkhandler, pool, volume, limit=None, is_fuzzy=True):
|
def get_list_snapshot(zkhandler, target_pool, target_volume, limit=None, is_fuzzy=True):
|
||||||
snapshot_list = []
|
snapshot_list = []
|
||||||
if pool and not verifyPool(zkhandler, pool):
|
full_snapshot_list = getCephSnapshots(zkhandler, target_pool, target_volume)
|
||||||
return False, 'ERROR: No pool with name "{}" is present in the cluster.'.format(
|
|
||||||
pool
|
|
||||||
)
|
|
||||||
|
|
||||||
if volume and not verifyPool(zkhandler, volume):
|
|
||||||
return (
|
|
||||||
False,
|
|
||||||
'ERROR: No volume with name "{}" is present in the cluster.'.format(volume),
|
|
||||||
)
|
|
||||||
|
|
||||||
full_snapshot_list = getCephSnapshots(zkhandler, pool, volume)
|
|
||||||
|
|
||||||
if is_fuzzy and limit:
|
if is_fuzzy and limit:
|
||||||
# Implicitly assume fuzzy limits
|
# Implicitly assume fuzzy limits
|
||||||
@ -1178,6 +1170,10 @@ def get_list_snapshot(zkhandler, pool, volume, limit=None, is_fuzzy=True):
|
|||||||
for snapshot in full_snapshot_list:
|
for snapshot in full_snapshot_list:
|
||||||
volume, snapshot_name = snapshot.split("@")
|
volume, snapshot_name = snapshot.split("@")
|
||||||
pool_name, volume_name = volume.split("/")
|
pool_name, volume_name = volume.split("/")
|
||||||
|
if target_pool and pool_name != target_pool:
|
||||||
|
continue
|
||||||
|
if target_volume and volume_name != target_volume:
|
||||||
|
continue
|
||||||
if limit:
|
if limit:
|
||||||
try:
|
try:
|
||||||
if re.fullmatch(limit, snapshot_name):
|
if re.fullmatch(limit, snapshot_name):
|
||||||
|
11
debian/changelog
vendored
11
debian/changelog
vendored
@ -1,3 +1,14 @@
|
|||||||
|
pvc (0.9.98-0) unstable; urgency=high
|
||||||
|
|
||||||
|
* [CLI Client] Fixed output when API call times out
|
||||||
|
* [Node Daemon] Improves the handling of fence states
|
||||||
|
* [API Daemon/CLI Client] Adds support for storage snapshot rollback
|
||||||
|
* [CLI Client] Adds additional warning messages about snapshot consistency to help output
|
||||||
|
* [API Daemon] Fixes a bug listing snapshots by pool/volume
|
||||||
|
* [Node Daemon] Adds a --version flag for information gathering by update-motd.sh
|
||||||
|
|
||||||
|
-- Joshua M. Boniface <joshua@boniface.me> Wed, 05 Jun 2024 12:01:31 -0400
|
||||||
|
|
||||||
pvc (0.9.97-0) unstable; urgency=high
|
pvc (0.9.97-0) unstable; urgency=high
|
||||||
|
|
||||||
* [Client CLI] Ensures --lines is always an integer value
|
* [Client CLI] Ensures --lines is always an integer value
|
||||||
|
@ -33,7 +33,7 @@ import os
|
|||||||
import signal
|
import signal
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.97"
|
version = "0.9.98"
|
||||||
|
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
from sys import argv
|
||||||
import pvcnoded.Daemon # noqa: F401
|
import pvcnoded.Daemon # noqa: F401
|
||||||
|
|
||||||
|
if "--version" in argv:
|
||||||
|
print(pvcnoded.Daemon.version)
|
||||||
|
exit(0)
|
||||||
|
|
||||||
pvcnoded.Daemon.entrypoint()
|
pvcnoded.Daemon.entrypoint()
|
||||||
|
@ -49,7 +49,7 @@ import re
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.97"
|
version = "0.9.98"
|
||||||
|
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
|
@ -44,7 +44,7 @@ from daemon_lib.vmbuilder import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.97"
|
version = "0.9.98"
|
||||||
|
|
||||||
|
|
||||||
config = cfg.get_configuration()
|
config = cfg.get_configuration()
|
||||||
|
Reference in New Issue
Block a user