c16601a337
- ci-Remove-python3-jsonschema-dependency.patch [RHEL-65849] - Resolves: RHEL-65849 ([RHEL-10] Drop cloud-init dependency on python-jsonschema)
55 lines
1.9 KiB
Diff
55 lines
1.9 KiB
Diff
From bb5f9a5e4ad5225ce9f380812a9ec04828702e76 Mon Sep 17 00:00:00 2001
|
|
From: Ani Sinha <anisinha@redhat.com>
|
|
Date: Tue, 22 Oct 2024 11:49:47 +0530
|
|
Subject: [PATCH] Remove python3-jsonschema dependency
|
|
|
|
RH-Author: Ani Sinha <anisinha@redhat.com>
|
|
RH-MergeRequest: 115: Remove python3-jsonschema dependency
|
|
RH-Jira: RHEL-65849
|
|
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
RH-Commit: [1/1] b2c16e5e07d12eeb05a6d86ccb5e988220afafa3 (anisinha/cloud-init)
|
|
|
|
Cloud-init is the only package in RHEL-10 that still needs it. It is used by the
|
|
schema validator. When python3-jsonschema is not present, the schema validator
|
|
does not run and fails gracefully with the log message:
|
|
|
|
schema.py[DEBUG]: Ignoring schema validation. jsonschema is not present
|
|
|
|
There seems to be no other major regressions if we remove the dependency.
|
|
Please see RHEL-61183 for test cases and test results.
|
|
|
|
Removing the dependency enables us to not support jsonschema package for
|
|
the lifetime of RHEL-10 release.
|
|
|
|
python3-jsonschema can be replaced with fastjsonschema but the replacement is
|
|
not trivial and upstream has not committed to doing the work yet. When
|
|
support for fastjsonschema is implemented, we will incorporate the fix either
|
|
through backport or a rebase and then the schema validator will hopefully
|
|
be enabled again.
|
|
|
|
Remove the dependency from the spec file and requirements.txt file. This
|
|
change is downstream only for now.
|
|
|
|
X-downstream-only: true
|
|
|
|
Signed-off-by: Ani Sinha <anisinha@redhat.com>
|
|
---
|
|
.distro/cloud-init.spec | 1 -
|
|
requirements.txt | 2 +-
|
|
2 files changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/requirements.txt b/requirements.txt
|
|
index eabd7a22..84211e80 100644
|
|
--- a/requirements.txt
|
|
+++ b/requirements.txt
|
|
@@ -28,4 +28,4 @@ requests
|
|
jsonpatch
|
|
|
|
# For validating cloud-config sections per schema definitions
|
|
-jsonschema
|
|
+# jsonschema
|
|
--
|
|
2.39.3
|
|
|