Compare commits
4 Commits
578e47410b
...
d07770eebe
Author | SHA1 | Date | |
---|---|---|---|
d07770eebe | |||
a5763c9d25 | |||
39ec427c42 | |||
1ba21312ea |
@ -1,5 +1,12 @@
|
||||
## PVC Changelog
|
||||
|
||||
###### [v0.9.90](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.90)
|
||||
|
||||
* [Client CLI/API Daemon] Adds additional backup metainfo and an emailed report option to autobackups.
|
||||
* [All] Adds a live migration maximum downtime selector to help with busy VM migrations.
|
||||
* [API Daemon] Fixes a database migration bug on Debian 11.
|
||||
* [Node Daemon] Fixes a race condition when applying Zookeeper schema changes.
|
||||
|
||||
###### [v0.9.89](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.89)
|
||||
|
||||
* [API/Worker Daemons] Fixes a bug with the Celery result backends not being properly initialized on Debian 10/11.
|
||||
|
@ -12,16 +12,7 @@ fi
|
||||
|
||||
pushd /usr/share/pvc
|
||||
|
||||
case "$( cat /etc/debian_version )" in
|
||||
10.*|11.*)
|
||||
# Debian 10 & 11
|
||||
./pvcapid-manage_legacy.py db upgrade
|
||||
;;
|
||||
*)
|
||||
# Debian 12+
|
||||
export FLASK_APP=./pvcapid-manage_flask.py
|
||||
flask db upgrade
|
||||
;;
|
||||
esac
|
||||
export FLASK_APP=./pvcapid-manage-flask.py
|
||||
flask db upgrade
|
||||
|
||||
popd
|
||||
|
@ -1,33 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# pvcapid-manage_legacy.py - PVC Database management tasks (Legacy)
|
||||
# Part of the Parallel Virtual Cluster (PVC) system
|
||||
#
|
||||
# Copyright (C) 2018-2024 Joshua M. Boniface <joshua@boniface.me>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, version 3.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
from flask_migrate import Migrate, MigrateCommand, Manager
|
||||
|
||||
from pvcapid.flaskapi import app, db
|
||||
from pvcapid.models import * # noqa F401,F403
|
||||
|
||||
migrate = Migrate(app, db)
|
||||
manager = Manager(app)
|
||||
|
||||
manager.add_command("db", MigrateCommand)
|
||||
|
||||
if __name__ == "__main__":
|
||||
manager.run()
|
@ -27,7 +27,7 @@ from distutils.util import strtobool as dustrtobool
|
||||
import daemon_lib.config as cfg
|
||||
|
||||
# Daemon version
|
||||
version = "0.9.89"
|
||||
version = "0.9.90"
|
||||
|
||||
# API version
|
||||
API_VERSION = 1.0
|
||||
|
@ -1,13 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PVC Client API Documentation</title>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style> body { margin: 0; padding: 0; } </style>
|
||||
</head>
|
||||
<body>
|
||||
<redoc spec-url='./swagger.json' hide-loading></redoc>
|
||||
<script src="https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"> </script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@ from setuptools import setup
|
||||
|
||||
setup(
|
||||
name="pvc",
|
||||
version="0.9.89",
|
||||
version="0.9.90",
|
||||
packages=["pvc.cli", "pvc.lib"],
|
||||
install_requires=[
|
||||
"Click",
|
||||
|
9
debian/changelog
vendored
9
debian/changelog
vendored
@ -1,3 +1,12 @@
|
||||
pvc (0.9.90-0) unstable; urgency=high
|
||||
|
||||
* [Client CLI/API Daemon] Adds additional backup metainfo and an emailed report option to autobackups.
|
||||
* [All] Adds a live migration maximum downtime selector to help with busy VM migrations.
|
||||
* [API Daemon] Fixes a database migration bug on Debian 11.
|
||||
* [Node Daemon] Fixes a race condition when applying Zookeeper schema changes.
|
||||
|
||||
-- Joshua M. Boniface <joshua@boniface.me> Thu, 11 Jan 2024 00:14:49 -0500
|
||||
|
||||
pvc (0.9.89-0) unstable; urgency=high
|
||||
|
||||
* [API/Worker Daemons] Fixes a bug with the Celery result backends not being properly initialized on Debian 10/11.
|
||||
|
@ -33,7 +33,7 @@ import os
|
||||
import signal
|
||||
|
||||
# Daemon version
|
||||
version = "0.9.89"
|
||||
version = "0.9.90"
|
||||
|
||||
|
||||
##########################################################
|
||||
|
@ -49,7 +49,7 @@ import re
|
||||
import json
|
||||
|
||||
# Daemon version
|
||||
version = "0.9.89"
|
||||
version = "0.9.90"
|
||||
|
||||
|
||||
##########################################################
|
||||
@ -197,7 +197,9 @@ def entrypoint():
|
||||
os.execv(sys.argv[0], sys.argv)
|
||||
|
||||
# Validate the schema
|
||||
pvcnoded.util.zookeeper.validate_schema(logger, zkhandler)
|
||||
with zkhandler.writelock("base.schema.version"):
|
||||
sleep(0.5)
|
||||
pvcnoded.util.zookeeper.validate_schema(logger, zkhandler)
|
||||
|
||||
# Define a cleanup function
|
||||
def cleanup(failure=False):
|
||||
|
@ -94,7 +94,10 @@ def validate_schema(logger, zkhandler):
|
||||
# Validate our schema against the active version
|
||||
if not zkhandler.schema.validate(zkhandler, logger):
|
||||
logger.out("Found schema violations, applying", state="i")
|
||||
zkhandler.schema.apply(zkhandler)
|
||||
try:
|
||||
zkhandler.schema.apply(zkhandler)
|
||||
except Exception as e:
|
||||
logger.out(f"Failed to apply schema updates: {e}", state="w")
|
||||
else:
|
||||
logger.out("Schema successfully validated", state="o")
|
||||
|
||||
|
@ -44,7 +44,7 @@ from daemon_lib.vmbuilder import (
|
||||
)
|
||||
|
||||
# Daemon version
|
||||
version = "0.9.89"
|
||||
version = "0.9.90"
|
||||
|
||||
|
||||
config = cfg.get_configuration()
|
||||
|
Reference in New Issue
Block a user