SHA256
1
0
forked from pool/cloud-init

- Add cloud-init-no-openstack-guess.patch (bsc#1222113)

+ Do not guess if we are running on OpenStack or not. Only recognize
    the known markers and enable cloud-init if we know for sure.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=227
This commit is contained in:
Robert Schweikert 2024-04-05 15:21:59 +00:00 committed by Git OBS Bridge
parent 6c1af59408
commit 1475962d05
3 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,26 @@
--- tools/ds-identify.orig
+++ tools/ds-identify
@@ -1261,12 +1261,6 @@ dscheck_OpenStack() {
return ${DS_FOUND}
fi
- # LP: #1715241 : arch other than intel are not identified properly.
- case "$DI_UNAME_MACHINE" in
- i?86|x86_64) :;;
- *) return ${DS_MAYBE};;
- esac
-
return ${DS_NOT_FOUND}
}
--- tests/unittests/test_ds_identify.py.orig
+++ tests/unittests/test_ds_identify.py
@@ -574,7 +574,7 @@ class TestDsIdentify(DsIdentifyBase):
nova does not identify itself on platforms other than intel.
https://bugs.launchpad.net/cloud-init/+bugs?field.tag=dsid-nova"""
-
+ return
data = copy.deepcopy(VALID_CFG["OpenStack"])
del data["files"][P_PRODUCT_NAME]
data.update(

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Apr 5 14:27:16 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
- Add cloud-init-no-openstack-guess.patch (bsc#1222113)
+ Do not guess if we are running on OpenStack or not. Only recognize
the known markers and enable cloud-init if we know for sure.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 28 12:22:05 UTC 2024 - Robert Schweikert <rjschwei@suse.com> Thu Mar 28 12:22:05 UTC 2024 - Robert Schweikert <rjschwei@suse.com>

View File

@ -43,8 +43,9 @@ Patch8: cloud-init-lint-fixes.patch
Patch9: cloud-init-pckg-reboot.patch Patch9: cloud-init-pckg-reboot.patch
# FIXME # FIXME
Patch10: cloud-init-skip-empty-conf.patch Patch10: cloud-init-skip-empty-conf.patch
# FIXME (ttps://github.com/canonical/cloud-init/issues/5075) # FIXME (https://github.com/canonical/cloud-init/commit/d0f00bd54649e527d69ad597cbcad6efa8548e58)
Patch11: cloud-init-ds-deterministic.patch Patch11: cloud-init-ds-deterministic.patch
Patch12: cloud-init-no-openstack-guess.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: filesystem BuildRequires: filesystem
# pkg-config is needed to find correct systemd unit dir # pkg-config is needed to find correct systemd unit dir
@ -154,6 +155,7 @@ Documentation and examples for cloud-init tools
%patch -P 9 %patch -P 9
%patch -P 10 %patch -P 10
%patch -P 11 %patch -P 11
%patch -P 12
# patch in the full version to version.py # patch in the full version to version.py
version_pys=$(find . -name version.py -type f) version_pys=$(find . -name version.py -type f)