From 47d73f8d2fa91a24de0743b1873af7d775dbb702 Mon Sep 17 00:00:00 2001 From: rearcher <123781007@qq.com> Date: Thu, 20 Mar 2025 09:36:16 +0800 Subject: [PATCH] Fix host filter by status --- 0003-fix-host-filter-by-status.patch | 25 +++++++++++++++++++++++++ aops-zeus.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0003-fix-host-filter-by-status.patch diff --git a/0003-fix-host-filter-by-status.patch b/0003-fix-host-filter-by-status.patch new file mode 100644 index 0000000..9593288 --- /dev/null +++ b/0003-fix-host-filter-by-status.patch @@ -0,0 +1,25 @@ +From e45488f3f4b566b7ae6ad6b083f8ea9b487fa8c4 Mon Sep 17 00:00:00 2001 +From: rearcher <123781007@qq.com> +Date: Wed, 19 Mar 2025 21:39:36 +0800 +Subject: [PATCH] fix host filter + +--- + .../zeus/host_information_service/app/serialize/host.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/host-information-service/zeus/host_information_service/app/serialize/host.py b/host-information-service/zeus/host_information_service/app/serialize/host.py +index a0d7a79..ee3ffd5 100644 +--- a/host-information-service/zeus/host_information_service/app/serialize/host.py ++++ b/host-information-service/zeus/host_information_service/app/serialize/host.py +@@ -162,7 +162,7 @@ class HostFilterSchema(Schema): + Filter host info + """ + +- status = fields.List(fields.String(required=True), required=False, missing=None) ++ status = fields.List(fields.Integer(required=True), required=False, missing=None) + host_ids = fields.List(fields.String(required=True), required=False, missing=None, validate=lambda s: len(s) > 0) + host_group_ids = fields.List( + fields.String(required=True, validate=lambda s: 36 >= len(s) > 0), required=False, missing=None +-- +Gitee + diff --git a/aops-zeus.spec b/aops-zeus.spec index bf66959..e4d11bc 100644 --- a/aops-zeus.spec +++ b/aops-zeus.spec @@ -1,13 +1,14 @@ %define vulcanus_version v2.1.0 Name: aops-zeus Version: v2.1.0 -Release: 6 +Release: 7 Summary: A service which is the foundation of aops. License: MulanPSL2 URL: https://gitee.com/openeuler/%{name} Source0: %{name}-%{version}.tar.gz Patch0001: 0001-fix-reids-protected-mode.patch Patch0002: 0002-fix-ragdoll-domain-table-synchronize.patch +Patch0003: 0003-fix-host-filter-by-status.patch BuildRequires: python3-setuptools Requires: python3-pyyaml python3-PyMySQL python3-kazoo python3-click @@ -168,6 +169,9 @@ popd %{python3_sitelib}/zeus/distribute_service/* %changelog +* Thu Mar 20 2025 luxuexian - v2.1.0-7 +- Fix host filter by status + * Tue Mar 11 2025 luxuexian - v2.1.0-6 - Fix ragdoll domain table synchronize failed -- Gitee