forked from pool/cloud-init
Accepting request 1163386 from Cloud:Tools
- Add cloud-init-ds-deterministic.patch (bsc#1221132) + Do not guess a data source when checking for a CloudStack environment OBS-URL: https://build.opensuse.org/request/show/1163386 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=98
This commit is contained in:
commit
cade3403b4
54
cloud-init-ds-deterministic.patch
Normal file
54
cloud-init-ds-deterministic.patch
Normal file
@ -0,0 +1,54 @@
|
||||
--- tests/unittests/test_ds_identify.py.orig
|
||||
+++ tests/unittests/test_ds_identify.py
|
||||
@@ -1488,7 +1488,6 @@ VALID_CFG = {
|
||||
},
|
||||
"IBMCloud-metadata": {
|
||||
"ds": "IBMCloud",
|
||||
- "policy_dmi": POLICY_FOUND_ONLY,
|
||||
"mocks": [
|
||||
MOCK_VIRT_IS_XEN,
|
||||
{"name": "is_ibm_provisioning", "ret": shell_false},
|
||||
@@ -1555,7 +1554,6 @@ VALID_CFG = {
|
||||
},
|
||||
"IBMCloud-nodisks": {
|
||||
"ds": "IBMCloud",
|
||||
- "policy_dmi": POLICY_FOUND_ONLY,
|
||||
"mocks": [
|
||||
MOCK_VIRT_IS_XEN,
|
||||
{"name": "is_ibm_provisioning", "ret": shell_false},
|
||||
@@ -1642,7 +1640,6 @@ VALID_CFG = {
|
||||
},
|
||||
"VMware-NoValidTransports": {
|
||||
"ds": "VMware",
|
||||
- "policy_dmi": POLICY_FOUND_ONLY,
|
||||
"mocks": [
|
||||
MOCK_VIRT_IS_VMWARE,
|
||||
],
|
||||
@@ -1665,7 +1662,6 @@ VALID_CFG = {
|
||||
},
|
||||
"VMware-EnvVar-NoData": {
|
||||
"ds": "VMware",
|
||||
- "policy_dmi": POLICY_FOUND_ONLY,
|
||||
"mocks": [
|
||||
{
|
||||
"name": "vmware_has_envvar_vmx_guestinfo",
|
||||
@@ -1775,7 +1771,6 @@ VALID_CFG = {
|
||||
},
|
||||
"VMware-GuestInfo-NoData": {
|
||||
"ds": "VMware",
|
||||
- "policy_dmi": POLICY_FOUND_ONLY,
|
||||
"mocks": [
|
||||
{
|
||||
"name": "vmware_has_rpctool",
|
||||
--- tools/ds-identify.orig
|
||||
+++ tools/ds-identify
|
||||
@@ -739,9 +739,6 @@ probe_floppy() {
|
||||
dscheck_CloudStack() {
|
||||
is_container && return ${DS_NOT_FOUND}
|
||||
dmi_product_name_matches "CloudStack*" && return $DS_FOUND
|
||||
- if [ "$DI_VIRT" = "vmware" ] || [ "$DI_VIRT" = "xen" ]; then
|
||||
- return $DS_MAYBE
|
||||
- fi
|
||||
return $DS_NOT_FOUND
|
||||
}
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:22:05 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
|
||||
|
||||
- Add cloud-init-ds-deterministic.patch (bsc#1221132)
|
||||
+ Do not guess a data source when checking for a CloudStack
|
||||
environment
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 6 08:42:20 UTC 2024 - Frederic Crozat <fcrozat@suse.com>
|
||||
|
||||
|
@ -43,6 +43,8 @@ Patch8: cloud-init-lint-fixes.patch
|
||||
Patch9: cloud-init-pckg-reboot.patch
|
||||
# FIXME
|
||||
Patch10: cloud-init-skip-empty-conf.patch
|
||||
# FIXME (ttps://github.com/canonical/cloud-init/issues/5075)
|
||||
Patch11: cloud-init-ds-deterministic.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: filesystem
|
||||
# pkg-config is needed to find correct systemd unit dir
|
||||
@ -151,6 +153,7 @@ Documentation and examples for cloud-init tools
|
||||
%patch -P 8
|
||||
%patch -P 9
|
||||
%patch -P 10
|
||||
%patch -P 11
|
||||
|
||||
# patch in the full version to version.py
|
||||
version_pys=$(find . -name version.py -type f)
|
||||
|
Loading…
Reference in New Issue
Block a user