Compare commits

...

2 Commits

Author SHA1 Message Date
de2b2a4036 Bump version to 0.9.48 2022-04-29 12:13:58 -04:00
7d2ea494e7 Ensure unresponsive OSDs still display in list
It is still useful to see such dead OSDs even if they've never checked
in or have not checked in for quite some time.
2022-04-29 12:11:52 -04:00
7 changed files with 30 additions and 6 deletions

View File

@ -1 +1 @@
0.9.47 0.9.48

View File

@ -1,5 +1,11 @@
## PVC Changelog ## PVC Changelog
###### [v0.9.48](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.48)
* [CLI] Fixes situation where only a single cluster is available
* [CLI/API/Daemon] Allows forcing of OSD removal ignoring errors
* [CLI] Fixes bug where down OSDs are not displayed
###### [v0.9.47](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.47) ###### [v0.9.47](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.47)
* [Node Daemon/API/CLI] Adds Ceph pool device class/tier support * [Node Daemon/API/CLI] Adds Ceph pool device class/tier support

View File

@ -25,7 +25,7 @@ import yaml
from distutils.util import strtobool as dustrtobool from distutils.util import strtobool as dustrtobool
# Daemon version # Daemon version
version = "0.9.47" version = "0.9.48"
# API version # API version
API_VERSION = 1.0 API_VERSION = 1.0

View File

@ -367,10 +367,20 @@ def format_list_osd(osd_list):
for osd_information in osd_list: for osd_information in osd_list:
try: try:
# If this happens, the node hasn't checked in fully yet, so just ignore it # If this happens, the node hasn't checked in fully yet, so use some dummy data
if osd_information["stats"]["node"] == "|": if osd_information["stats"]["node"] == "|":
continue for key in osd_information["stats"].keys():
if osd_information["stats"][key] == "|":
osd_information["stats"][key] = "N/A"
elif osd_information["stats"][key] is None:
osd_information["stats"][key] = "N/A"
for key in osd_information.keys():
if osd_information[key] is None:
osd_information[key] = "N/A"
except KeyError: except KeyError:
print(
f"Details for OSD {osd_information['id']} missing required keys, skipping."
)
continue continue
# Deal with the size to human readable # Deal with the size to human readable

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup( setup(
name="pvc", name="pvc",
version="0.9.47", version="0.9.48",
packages=["pvc", "pvc.cli_lib"], packages=["pvc", "pvc.cli_lib"],
install_requires=[ install_requires=[
"Click", "Click",

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
pvc (0.9.48-0) unstable; urgency=high
* [CLI] Fixes situation where only a single cluster is available
* [CLI/API/Daemon] Allows forcing of OSD removal ignoring errors
* [CLI] Fixes bug where down OSDs are not displayed
-- Joshua M. Boniface <joshua@boniface.me> Fri, 29 Apr 2022 12:13:58 -0400
pvc (0.9.47-0) unstable; urgency=high pvc (0.9.47-0) unstable; urgency=high
* [Node Daemon/API/CLI] Adds Ceph pool device class/tier support * [Node Daemon/API/CLI] Adds Ceph pool device class/tier support

View File

@ -48,7 +48,7 @@ import re
import json import json
# Daemon version # Daemon version
version = "0.9.47" version = "0.9.48"
########################################################## ##########################################################