forked from pool/cloud-init
Compare commits
107 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
9d54ca0906 | ||
b1469b941b | |||
f155ed52a6 | |||
1a0cecdf92 | |||
|
e330242ba5 | ||
ae07dd3a29 | |||
|
d2277ce376 | ||
0338649d15 | |||
14e9c00f78 | |||
fb5493d9e8 | |||
882510dff4 | |||
26859a25ae | |||
|
3c7c6e256e | ||
|
c05d6e2f74 | ||
84c6e02742 | |||
fff63196cf | |||
|
cade3403b4 | ||
06f0391ead | |||
|
e17e51b4cf | ||
|
2bf1ee4ee3 | ||
|
7e0ec650d8 | ||
|
8330229f84 | ||
|
62347769ec | ||
|
bb6ef29f74 | ||
|
baff025f5c | ||
32d6bc0624 | |||
c4435ac5c3 | |||
2ae4318ae4 | |||
7be73db30b | |||
63de3a8f9f | |||
a4fc101552 | |||
0eecf8bdf0 | |||
|
6b19333bfc | ||
8ffc3d9cdf | |||
68888fb944 | |||
934063986c | |||
3e03d52384 | |||
fd0b3499be | |||
65bba0838b | |||
cc3eeff32f | |||
74b5fabc82 | |||
d174a8cd19 | |||
91dfbf22af | |||
197013d386 | |||
1673a5770a | |||
a931efbd63 | |||
df49ce6d46 | |||
31adfdd05a | |||
e8539a971b | |||
493166b275 | |||
6dbf527a2c | |||
83f69b8b12 | |||
08601df903 | |||
0764e8e2b0 | |||
67d0e4641b | |||
522b534b46 | |||
a88363e6e1 | |||
|
40dff8d618 | ||
|
15110b1354 | ||
0349f08ea9 | |||
d8c0fcb2ba | |||
c952884add | |||
a3bf6024e3 | |||
cb26e87bdc | |||
a60ee52798 | |||
64e80bc062 | |||
6fc02fc32c | |||
99e541cc85 | |||
697db804a2 | |||
588515308f | |||
d326454b18 | |||
a2137d41ee | |||
2041458081 | |||
db79f76cde | |||
45a3cf07eb | |||
f6b14a20b8 | |||
250140c9eb | |||
e6b386982d | |||
9e9fc2359a | |||
f783a08ce7 | |||
95c27c2348 | |||
1d7f0a7f70 | |||
81acd45fdf | |||
ab14e844b6 | |||
0f04f406b8 | |||
64856189e6 | |||
aca7aa8b6a | |||
205b8307c2 | |||
60a6dbc83d | |||
cc978c570e | |||
ad1328957f | |||
|
dc3424e990 | ||
4e2670406e | |||
cdf9171a36 | |||
aa1e646265 | |||
7cfbd29a31 | |||
5693821dbb | |||
68acaf254d | |||
84a6d9d4cc | |||
|
fbb9e17899 | ||
0b8569a353 | |||
|
0e265ccf0d | ||
|
c4fe0e3c05 | ||
|
6554f0e50b | ||
|
f91df56437 | ||
|
193aae788d | ||
|
a3dddb319c |
24
cloud-init-direxist.patch
Normal file
24
cloud-init-direxist.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- cloudinit/atomic_helper.py.orig
|
||||
+++ cloudinit/atomic_helper.py
|
||||
@@ -7,6 +7,8 @@ import stat
|
||||
import tempfile
|
||||
from base64 import b64decode, b64encode
|
||||
|
||||
+from cloudinit import util
|
||||
+
|
||||
_DEF_PERMS = 0o644
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
@@ -43,9 +45,9 @@ def write_file(
|
||||
|
||||
tf = None
|
||||
try:
|
||||
- tf = tempfile.NamedTemporaryFile(
|
||||
- dir=os.path.dirname(filename), delete=False, mode=omode
|
||||
- )
|
||||
+ dirname = os.path.dirname(filename)
|
||||
+ util.ensure_dir(dirname)
|
||||
+ tf = tempfile.NamedTemporaryFile(dir=dirname, delete=False, mode=omode)
|
||||
LOG.debug(
|
||||
"Atomically writing to file %s (via temporary file %s) - %s: [%o]"
|
||||
" %d bytes/chars",
|
100
cloud-init-dont-assume-ordering-of-ThreadPoolExecutor.patch
Normal file
100
cloud-init-dont-assume-ordering-of-ThreadPoolExecutor.patch
Normal file
@ -0,0 +1,100 @@
|
||||
From 4060bed98d2637418955fdb33fc43623c8b95235 Mon Sep 17 00:00:00 2001
|
||||
From: Brett Holman <brett.holman@canonical.com>
|
||||
Date: Tue, 12 Mar 2024 22:20:06 -0600
|
||||
Subject: [PATCH 1/4] fix: Don't assume ordering of ThreadPoolExecutor
|
||||
submissions
|
||||
|
||||
---
|
||||
tests/unittests/test_url_helper.py | 52 +++++++++++++++++++++++++++---
|
||||
1 file changed, 47 insertions(+), 5 deletions(-)
|
||||
|
||||
Index: cloud-init-23.3/tests/unittests/test_url_helper.py
|
||||
===================================================================
|
||||
--- cloud-init-23.3.orig/tests/unittests/test_url_helper.py
|
||||
+++ cloud-init-23.3/tests/unittests/test_url_helper.py
|
||||
@@ -4,6 +4,7 @@ import logging
|
||||
from functools import partial
|
||||
from threading import Event
|
||||
from time import process_time
|
||||
+from unittest.mock import ANY, call
|
||||
|
||||
import pytest
|
||||
import requests
|
||||
@@ -465,20 +466,72 @@ class TestDualStack:
|
||||
"""Assert expected call intervals occur"""
|
||||
stagger = 0.1
|
||||
with mock.patch(M_PATH + "_run_func_with_delay") as delay_func:
|
||||
+
|
||||
+ def identity_of_first_arg(x, _):
|
||||
+ return x
|
||||
+
|
||||
dual_stack(
|
||||
- lambda x, _y: x,
|
||||
+ identity_of_first_arg,
|
||||
["you", "and", "me", "and", "dog"],
|
||||
stagger_delay=stagger,
|
||||
timeout=1,
|
||||
)
|
||||
|
||||
- # ensure that stagger delay for each subsequent call is:
|
||||
+ # ensure that stagger delay for each call is made with args:
|
||||
# [ 0 * N, 1 * N, 2 * N, 3 * N, 4 * N, 5 * N] where N = stagger
|
||||
# it appears that without an explicit wait/join we can't assert
|
||||
# number of calls
|
||||
- for delay, call_item in enumerate(delay_func.call_args_list):
|
||||
- _, kwargs = call_item
|
||||
- assert stagger * delay == kwargs.get("delay")
|
||||
+ calls = [
|
||||
+ call(
|
||||
+ func=identity_of_first_arg,
|
||||
+ addr="you",
|
||||
+ timeout=1,
|
||||
+ event=ANY,
|
||||
+ delay=stagger * 0,
|
||||
+ ),
|
||||
+ call(
|
||||
+ func=identity_of_first_arg,
|
||||
+ addr="and",
|
||||
+ timeout=1,
|
||||
+ event=ANY,
|
||||
+ delay=stagger * 1,
|
||||
+ ),
|
||||
+ call(
|
||||
+ func=identity_of_first_arg,
|
||||
+ addr="me",
|
||||
+ timeout=1,
|
||||
+ event=ANY,
|
||||
+ delay=stagger * 2,
|
||||
+ ),
|
||||
+ call(
|
||||
+ func=identity_of_first_arg,
|
||||
+ addr="and",
|
||||
+ timeout=1,
|
||||
+ event=ANY,
|
||||
+ delay=stagger * 3,
|
||||
+ ),
|
||||
+ call(
|
||||
+ func=identity_of_first_arg,
|
||||
+ addr="dog",
|
||||
+ timeout=1,
|
||||
+ event=ANY,
|
||||
+ delay=stagger * 4,
|
||||
+ ),
|
||||
+ ]
|
||||
+ num_calls = 0
|
||||
+ for call_instance in calls:
|
||||
+ if call_instance in delay_func.call_args_list:
|
||||
+ num_calls += 1
|
||||
+
|
||||
+ # we can't know the order of the submitted functions' execution
|
||||
+ # we can't know how many of the submitted functions get called
|
||||
+ # in advance
|
||||
+ #
|
||||
+ # we _do_ know what the possible arg combinations are
|
||||
+ # we _do_ know from the mocked function how many got called
|
||||
+ # assert that all calls that occurred had known valid arguments
|
||||
+ # by checking for the correct number of matches
|
||||
+ assert num_calls == len(delay_func.call_args_list)
|
||||
|
||||
|
||||
ADDR1 = "https://addr1/"
|
22
cloud-init-fix-python313.patch
Normal file
22
cloud-init-fix-python313.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From bed5ae7f777e0e4bcb5609622385ee94751c03ce Mon Sep 17 00:00:00 2001
|
||||
From: Brett Holman <brett.holman@canonical.com>
|
||||
Date: Tue, 5 Dec 2023 13:41:13 -0700
|
||||
Subject: [PATCH] fix(python3.13): Fix import error for passlib on Python 3.13
|
||||
|
||||
---
|
||||
cloudinit/sources/DataSourceAzure.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: cloud-init-23.3/cloudinit/sources/DataSourceAzure.py
|
||||
===================================================================
|
||||
--- cloud-init-23.3.orig/cloudinit/sources/DataSourceAzure.py
|
||||
+++ cloud-init-23.3/cloudinit/sources/DataSourceAzure.py
|
||||
@@ -55,7 +55,7 @@ try:
|
||||
)
|
||||
except (ImportError, AttributeError):
|
||||
try:
|
||||
- import passlib
|
||||
+ import passlib.hash
|
||||
|
||||
blowfish_hash = passlib.hash.sha512_crypt.hash
|
||||
except ImportError:
|
36
cloud-init-wait-for-net.patch
Normal file
36
cloud-init-wait-for-net.patch
Normal file
@ -0,0 +1,36 @@
|
||||
--- cloudinit/sources/helpers/openstack.py.orig
|
||||
+++ cloudinit/sources/helpers/openstack.py
|
||||
@@ -736,7 +736,14 @@ def convert_net_json(network_json=None,
|
||||
if not mac:
|
||||
raise ValueError("No mac_address or name entry for %s" % d)
|
||||
if mac not in known_macs:
|
||||
- raise ValueError("Unable to find a system nic for %s" % d)
|
||||
+ # Let's give udev a chance to catch up
|
||||
+ try:
|
||||
+ util.udevadm_settle()
|
||||
+ except subp.ProcessExecutionError:
|
||||
+ pass
|
||||
+ known_macs = net.get_interfaces_by_mac()
|
||||
+ if mac not in known_macs:
|
||||
+ raise ValueError("Unable to find a system nic for %s" % d)
|
||||
d["name"] = known_macs[mac]
|
||||
|
||||
for cfg, key, fmt, targets in link_updates:
|
||||
--- tests/unittests/sources/test_configdrive.py.orig
|
||||
+++ tests/unittests/sources/test_configdrive.py
|
||||
@@ -389,6 +389,7 @@ class TestConfigDriveDataSource(CiTestCa
|
||||
M_PATH + "util.find_devs_with", "m_find_devs_with", return_value=[]
|
||||
)
|
||||
self.tmp = self.tmp_dir()
|
||||
+ self.allowed_subp = True
|
||||
|
||||
def test_ec2_metadata(self):
|
||||
populate_dir(self.tmp, CFG_DRIVE_FILES_V2)
|
||||
@@ -869,6 +870,7 @@ class TestConvertNetworkData(CiTestCase)
|
||||
def setUp(self):
|
||||
super(TestConvertNetworkData, self).setUp()
|
||||
self.tmp = self.tmp_dir()
|
||||
+ self.allowed_subp = True
|
||||
|
||||
def _getnames_in_config(self, ncfg):
|
||||
return set(
|
@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 4 16:44:12 UTC 2025 - Robert Schweikert <rjschwei@suse.com>
|
||||
|
||||
- Add cloud-init-direxist.patch (bsc#1236720)
|
||||
+ Make sure the directory exists, if not create it, before writing in that
|
||||
location.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 20 14:21:55 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Support python 3.13 (bsc#1233649):
|
||||
+ pep-594-drop-pipes.patch, gh#canonical/cloud-init#4392
|
||||
+ cloud-init-fix-python313.patch, gh#canonical/cloud-init#4669
|
||||
+ cloud-init-dont-assume-ordering-of-ThreadPoolExecutor.patch gh#canonical/cloud-init#5052
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 6 13:17:05 UTC 2025 - Robert Schweikert <rjschwei@suse.com>
|
||||
|
||||
- Add cloud-init-wait-for-net.patch (bsc#1227237)
|
||||
+ Wait for udev once if we cannot find the expected MAC
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 14 10:34:54 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
@ -7,7 +28,7 @@ Fri Jun 14 10:34:54 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||
Mon Jun 3 19:53:46 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
|
||||
|
||||
- Add cloud-init-skip-rename.patch (bsc#1219680)
|
||||
+ Brute force appraoch to skip renames if the device is already present
|
||||
+ Brute force approach to skip renames if the device is already present
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 29 21:49:48 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
|
||||
@ -76,7 +97,7 @@ Fri Dec 15 14:09:36 UTC 2023 - Robert Schweikert <rjschwei@suse.com>
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 1 23:16:08 UTC 2023 - Michal Vyskocil <michal.vyskocil@gmail.com>
|
||||
|
||||
- Move fdupes call back to %install (boo#1214169)
|
||||
- Move fdupes call back to %install (boo#1214169)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 9 14:26:40 UTC 2023 - Robert Schweikert <rjschwei@suse.com>
|
||||
@ -416,7 +437,7 @@ Sun Aug 13 21:02:31 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
* Make user/vendor data sensitive and remove log permissions
|
||||
* source: Force OpenStack when it is only option (#2045)
|
||||
* sources/azure: fix regressions in IMDS behavior
|
||||
- drop
|
||||
- drop
|
||||
cloud-init-cve-2023-1786-redact-instance-data-json-main.patch (upstream)
|
||||
- spec-file cleanups, including dropping flake8 (as build fails
|
||||
with newer flake8 versions)
|
||||
@ -443,7 +464,7 @@ Thu Apr 27 12:22:11 UTC 2023 - Robert Schweikert <rjschwei@suse.com>
|
||||
Tue Apr 11 18:48:30 UTC 2023 - Robert Schweikert <rjschwei@suse.com>
|
||||
|
||||
- Sensitive data exposure (bsc#1210277, CVE-2023-1786)
|
||||
+ Add hidesensitivedata
|
||||
+ Add hidesensitivedata
|
||||
+ Add cloud-init-cve-2023-1786-redact-inst-data.patch
|
||||
+ Do not expose sensitive data gathered from the CSP
|
||||
|
||||
@ -1444,7 +1465,7 @@ Fri Feb 18 19:08:21 UTC 2022 - Robert Schweikert <rjschwei@suse.com>
|
||||
+ Azure: Retry dhcp on timeouts when polling reprovisiondata (#998)
|
||||
[aswinrajamannar]
|
||||
+ testing: Fix ssh keys integration test (#992)
|
||||
|
||||
|
||||
- From 21.3
|
||||
+ Azure: During primary nic detection, check interface status continuously
|
||||
before rebinding again (#990) [aswinrajamannar]
|
||||
@ -1556,7 +1577,7 @@ Thu Feb 17 18:01:31 UTC 2022 - Robert Schweikert <rjschwei@suse.com>
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 24 04:17:30 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Remove unneeded BuildRequires on python3-nose.
|
||||
- Remove unneeded BuildRequires on python3-nose.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 12 11:27:19 UTC 2021 - Robert Schweikert <rjschwei@suse.com>
|
||||
@ -1572,7 +1593,7 @@ Thu Aug 12 11:27:19 UTC 2021 - Robert Schweikert <rjschwei@suse.com>
|
||||
- cloud-init-no-pwd-in-log.patch
|
||||
- 0001-templater-drop-Jinja-Python-2-compatibility-shim.patch
|
||||
+ Remove cloud-init-sle12-compat.patch, version in SLE 12 is frozen to 20.2
|
||||
+ Remove cloud-init-tests-set-exec.patch no longer needed
|
||||
+ Remove cloud-init-tests-set-exec.patch no longer needed
|
||||
+ Forward port:
|
||||
- cloud-init-write-routes.patch
|
||||
- cloud-init-break-resolv-symlink.patch
|
||||
@ -2108,7 +2129,7 @@ Wed Apr 7 17:35:46 UTC 2021 - Robert Schweikert <rjschwei@suse.com>
|
||||
Fri Jan 22 16:27:17 UTC 2021 - Jordi Massaguer <jmassaguerpla@suse.com>
|
||||
|
||||
- Add use_arroba_to_include_sudoers_directory-bsc_1181283.patchfix (bsc#1181283)
|
||||
- Do not including sudoers.d directory twice
|
||||
- Do not including sudoers.d directory twice
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 4 22:27:22 UTC 2021 - Robert Schweikert <rjschwei@suse.com>
|
||||
@ -2355,7 +2376,7 @@ Fri Jul 24 19:55:40 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
|
||||
[Joshua Powers] (LP: #1827021)
|
||||
+ ci: emit names of tests run in Travis (#120)
|
||||
|
||||
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 18 12:11:49 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
|
||||
@ -2365,9 +2386,9 @@ Thu Jun 18 12:11:49 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
|
||||
-------------------------------------------------------------------
|
||||
Wed May 20 11:23:04 UTC 2020 - Martin Loviska <mloviska@suse.com>
|
||||
|
||||
- bsc#1170154: rsyslog warning, '~' is deprecated
|
||||
- bsc#1170154: rsyslog warning, '~' is deprecated
|
||||
+ replace deprecated syntax '& ~' by '& stop'
|
||||
for more information please see https://www.rsyslog.com/rsyslog-error-2307/
|
||||
for more information please see https://www.rsyslog.com/rsyslog-error-2307/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 11:51:18 UTC 2020 - Joachim Gleissner <jgleissner@suse.com>
|
||||
@ -2943,7 +2964,7 @@ Tue Jan 22 13:04:40 UTC 2019 - Robert Schweikert <rjschwei@suse.com>
|
||||
Mon Jan 7 20:22:39 UTC 2019 - Robert Schweikert <rjschwei@suse.com>
|
||||
|
||||
- Update to version 18.5 (bsc#1121878, boo#1116767)
|
||||
+ Remove
|
||||
+ Remove
|
||||
0001-Fix-the-service-order-for-SUSE-distributions.patch
|
||||
0001-Follow-the-ever-bouncing-ball-for-openSUSE-distribut.patch
|
||||
0002-Add-tests-for-additional-openSUSE-distro-condition-m.patch
|
||||
@ -3543,7 +3564,7 @@ Thu Sep 21 17:32:55 EDT 2017 - rjschwei@suse.com
|
||||
+ Remove dataSourceOpenNebula.patch, use upstream implementation
|
||||
+ Remove setupSUSEsysVInit.diff, included upstream
|
||||
+ Remove suseSysVInit.diff, included upstream
|
||||
+ Remove cloud-init-finalbeforelogin.patch, don't block login
|
||||
+ Remove cloud-init-finalbeforelogin.patch, don't block login
|
||||
+ Remove cloud-init-handle-not-implemented-query.patch, query option removed
|
||||
+ Remove cloud-init-spceandtabs-clean.patch, indentation fixed upstream
|
||||
+ Remove dynamicInitCmd.diff, different solution from upstream
|
||||
@ -4172,7 +4193,7 @@ Fri Dec 9 09:50:50 UTC 2016 - jgleissner@suse.com
|
||||
|
||||
- Modify suseIntegratedHandler.patch (bsc#998103)
|
||||
+ Store previous hostname so update_hostname module does not
|
||||
overwrite manually set hostnames
|
||||
overwrite manually set hostnames
|
||||
- cloud-init-python26.patch
|
||||
+ Compatibility fixes with Python 2.6
|
||||
|
||||
@ -4339,7 +4360,7 @@ Tue Sep 13 13:19:51 UTC 2016 - rjschwei@suse.com
|
||||
|
||||
- update to version 0.7.8 (bsc#998103)
|
||||
+ added cloud-init-net-eni.patch based on work by eblock
|
||||
- Using config-drive instead of metadata failed because the network
|
||||
- Using config-drive instead of metadata failed because the network
|
||||
translation to Ubuntu-style did not return gateway information to
|
||||
opensuse.py
|
||||
+ added cloud-init-service.patch based on work by eblock
|
||||
@ -4512,7 +4533,7 @@ from 0.7.7:
|
||||
+ support network rendering to sysconfig (for centos and RHEL)
|
||||
+ write_files: if no permissions are given, just use default without warn.
|
||||
+ user_data: fix error when user-data is not utf-8 decodable (LP: #1532072)
|
||||
+ fix mcollective module with python3 (LP: #1597699) [Sergii Golovatiuk]
|
||||
+ fix mcollective module with python3 (LP: #1597699) [Sergii Golovatiuk]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 6 09:43:12 UTC 2016 - joachim.gleissner@suse.com
|
||||
@ -4611,9 +4632,9 @@ Mon Apr 13 08:46:40 UTC 2015 - tbechtold@suse.com
|
||||
Tue Feb 24 15:52:13 UTC 2015 - rjschwei@suse.com
|
||||
|
||||
- Fix (bnc#919305 & bnc#918952)
|
||||
- Properly handle persistent network device names for OpenNebula
|
||||
- Properly handle persistent network device names for OpenNebula
|
||||
+ add dataSourceOpenNebula.patch
|
||||
- Properly set up network mode if interface config file
|
||||
- Properly set up network mode if interface config file
|
||||
+ modified suseIntegratedHandler.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -4648,7 +4669,7 @@ Sat Aug 9 12:35:16 UTC 2014 - dvlaeev@suse.com
|
||||
on architectures where dmidecode is not available.
|
||||
|
||||
- Avoid to run dmidecode on PowerPC as well
|
||||
cloud-init-no-dmidecode-on-ppc64.patch
|
||||
cloud-init-no-dmidecode-on-ppc64.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 28 15:54:32 UTC 2014 - rschweikert@suse.com
|
||||
@ -4664,7 +4685,7 @@ Mon Jul 28 15:14:02 UTC 2014 - rschweikert@suse.com
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 22 22:31:17 UTC 2014 - dmueller@suse.com
|
||||
|
||||
- fix typo in cloud.cfg (gowpart -> growpart)
|
||||
- fix typo in cloud.cfg (gowpart -> growpart)
|
||||
- add cloudinit-datasources.patch: Fixes datasource list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -4792,7 +4813,7 @@ Mon Mar 17 17:58:23 UTC 2014 - rschweikert@suse.com
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 20 17:51:24 UTC 2014 - dmueller@suse.com
|
||||
|
||||
|
||||
- add python-jsonpatch, python-pyserial, python-PyYAML requires,
|
||||
otherwise it immediately traces on startup
|
||||
|
||||
@ -4836,7 +4857,7 @@ Sat Jan 4 16:03:57 UTC 2014 - rschweikert@suse.com
|
||||
filesystems. Useful if attached disks are not formatted (LP: #1218506)
|
||||
+ Fix usage of libselinux-python when selinux is disabled. [Garrett Holmstrom]
|
||||
+ multi_log: only write to /dev/console if it exists [Garrett Holmstrom]
|
||||
+ config/cloud.cfg: add 'sudo' to list groups for the default user
|
||||
+ config/cloud.cfg: add 'sudo' to list groups for the default user
|
||||
(LP: #1228228)
|
||||
+ documentation fix for use of 'mkpasswd' [Eric Nordlund]
|
||||
+ respect /etc/growroot-disabled file (LP: #1234331)
|
||||
@ -4881,7 +4902,7 @@ Wed Jun 26 15:41:24 UTC 2013 - bwiedemann@suse.com
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 26 13:07:41 UTC 2013 - rschweikert@suse.com
|
||||
|
||||
- fix stray character in patch introduced by previous changes
|
||||
- fix stray character in patch introduced by previous changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 26 12:37:10 UTC 2013 - rschweikert@suse.com
|
||||
|
@ -53,6 +53,16 @@ Patch13: cloud-init-no-nmcfg-needed.patch
|
||||
Patch14: cloud-init-usr-sudoers.patch
|
||||
# FIXME https://github.com/canonical/cloud-init/issues/5075
|
||||
Patch15: cloud-init-skip-rename.patch
|
||||
# FIXME https://github.com/canonical/cloud-init/pull/5947
|
||||
Patch16: cloud-init-wait-for-net.patch
|
||||
# FIXME https://github.com/canonical/cloud-init/pull/4392
|
||||
Patch17: pep-594-drop-pipes.patch
|
||||
# FIXME https://github.com/canonical/cloud-init/pull/4669
|
||||
Patch18: cloud-init-fix-python313.patch
|
||||
# FIXME https://github.com/canonical/cloud-init/pull/5052
|
||||
Patch19: cloud-init-dont-assume-ordering-of-ThreadPoolExecutor.patch
|
||||
# FIXME https://github.com/canonical/cloud-init/pull/4938
|
||||
Patch20: cloud-init-direxist.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: filesystem
|
||||
# pkg-config is needed to find correct systemd unit dir
|
||||
@ -166,6 +176,11 @@ Documentation and examples for cloud-init tools
|
||||
%patch -P 13
|
||||
%patch -P 14
|
||||
%patch -P 15
|
||||
%patch -P 16
|
||||
%patch -p1 -P 17
|
||||
%patch -p1 -P 18
|
||||
%patch -p1 -P 19
|
||||
%patch -P 20
|
||||
|
||||
# patch in the full version to version.py
|
||||
version_pys=$(find . -name version.py -type f)
|
||||
|
63
pep-594-drop-pipes.patch
Normal file
63
pep-594-drop-pipes.patch
Normal file
@ -0,0 +1,63 @@
|
||||
From c76f9eb0df30ab7c288e5050ed1df85d132c0202 Mon Sep 17 00:00:00 2001
|
||||
From: Chad Smith <chad.smith@canonical.com>
|
||||
Date: Mon, 28 Aug 2023 10:22:04 -0600
|
||||
Subject: [PATCH] pep-594: drop deprecated pipes module import
|
||||
|
||||
python3.11 will deprecated pipes module 3.13 will drop it from main.
|
||||
|
||||
cloud-init only used the undocumented pipes.quote function,
|
||||
which is actually only wrapper around shlex.quote[1].
|
||||
|
||||
Use shlex.quote instead.
|
||||
|
||||
[1] https://github.com/python/cpython/blob/3.11/Lib/pipes.py#L64-L66
|
||||
---
|
||||
cloudinit/distros/parsers/sys_conf.py | 6 +++---
|
||||
tests/unittests/distros/test_sysconfig.py | 2 +-
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/cloudinit/distros/parsers/sys_conf.py b/cloudinit/distros/parsers/sys_conf.py
|
||||
index cb6e583e789..1d519ce4ef7 100644
|
||||
--- a/cloudinit/distros/parsers/sys_conf.py
|
||||
+++ b/cloudinit/distros/parsers/sys_conf.py
|
||||
@@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of cloud-init. See LICENSE file for license information.
|
||||
|
||||
-import pipes
|
||||
import re
|
||||
+import shlex
|
||||
from io import StringIO
|
||||
|
||||
# This library is used to parse/write
|
||||
@@ -82,7 +82,7 @@ def _quote(self, value, multiline=False):
|
||||
if re.search(r"[\t\r\n ]", value):
|
||||
if _contains_shell_variable(value):
|
||||
# If it contains shell variables then we likely want to
|
||||
- # leave it alone since the pipes.quote function likes
|
||||
+ # leave it alone since the shlex.quote function likes
|
||||
# to use single quotes which won't get expanded...
|
||||
if re.search(r"[\n\"']", value):
|
||||
quot_func = (
|
||||
@@ -93,7 +93,7 @@ def _quote(self, value, multiline=False):
|
||||
lambda x: self._get_single_quote(x) % x
|
||||
) # noqa: E731
|
||||
else:
|
||||
- quot_func = pipes.quote
|
||||
+ quot_func = shlex.quote
|
||||
if not quot_func:
|
||||
return value
|
||||
return quot_func(value)
|
||||
diff --git a/tests/unittests/distros/test_sysconfig.py b/tests/unittests/distros/test_sysconfig.py
|
||||
index 9c3a2018edf..9f8d0cc8003 100644
|
||||
--- a/tests/unittests/distros/test_sysconfig.py
|
||||
+++ b/tests/unittests/distros/test_sysconfig.py
|
||||
@@ -65,7 +65,7 @@ def test_parse_adjust(self):
|
||||
conf["IPV6TO4_ROUTING"] = "blah \tblah"
|
||||
contents2 = str(conf).strip()
|
||||
# Should be requoted due to whitespace
|
||||
- self.assertRegex(contents2, r"IPV6TO4_ROUTING=[\']blah\s+blah[\']")
|
||||
+ self.assertRegex(contents2, r"IPV6TO4_ROUTING='blah\s+blah'")
|
||||
|
||||
def test_parse_no_adjust_shell(self):
|
||||
conf = SysConf("".splitlines())
|
Loading…
x
Reference in New Issue
Block a user