From 1e323a1a981e779a992078ac9224fe3199cf733f Mon Sep 17 00:00:00 2001 From: Cory Hawklvelt Date: Sun, 6 Apr 2025 02:48:11 +1030 Subject: [PATCH] working notes and tidy --- app/__init__.py | 2 +- goals.md | 8 ++++++++ requirements.txt | 1 + x.log | 0 4 files changed, 10 insertions(+), 1 deletion(-) delete mode 100644 x.log diff --git a/app/__init__.py b/app/__init__.py index e95db10..d21f41e 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -29,7 +29,7 @@ app.register_blueprint(ui_bp) @app.before_request def assign_request_id(): g.request_id = str(uuid.uuid4()) # Generate a unique request ID - logger.info(f"Assigned request ID: {g.request_id} for {request.path}") + # logger.info(f"Assigned request ID: {g.request_id} for {request.path}") @app.after_request def log_request_id(response): diff --git a/goals.md b/goals.md index b1a95d3..616b341 100644 --- a/goals.md +++ b/goals.md @@ -210,3 +210,11 @@ Output: volume_id: {volumeID} Create a volume on ceph from a ceph-nvme image + + + +--------- +todo +--- +Make the worker connect to websocket before staring libvirt\docker monitors +When initlaising the logger enginer(From websocket\worker or api) add an oiptional default off vairable to add request ID to the output \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index eae871c..f294894 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,6 +10,7 @@ flask_sqlalchemy flask_migrate websocket-client streamlit +aiohttp #sudo apt install python3-rados python3-rbd librados-dev librbd-dev # ln -s /usr/lib/python3/dist-packages/rados* $(python -c 'import site; print(site.getsitepackages()[0])')/ # ln -s /usr/lib/python3/dist-packages/rbd* $(python -c 'import site; print(site.getsitepackages()[0])')/ \ No newline at end of file diff --git a/x.log b/x.log deleted file mode 100644 index e69de29..0000000