349 Commits

Author SHA256 Message Date
fb205e0def Accepting request 1295166 from Cloud:Tools
- Update to version 25.1.3 (bsc#1245403)
  + Forward port
    - cloud-init-no-openstack-guess.patch
  + docs: provide example3 for PAM and ssh_pwauth behavior (#27)
  + fix: Make hotplug socket writable only by root (#25) (CVE-2024-11584)
  + fix: Don't attempt to identify non-x86 OpenStack instances (LP: #2069607)
    (CVE-2024-6174)
From 25.1.2
  + fix: ensure MAAS datasource retries on failure (#6167)

OBS-URL: https://build.opensuse.org/request/show/1295166
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=107
2025-07-24 16:34:37 +00:00
55263e441e Accepting request 1277881 from Cloud:Tools
- Update to version 25.1.1 (bsc#1239715,jsc#PED-8680,bsc#1228414)
 + Removed included upstream
   - pep-594-drop-pipes.patch
   - cloud-init-fix-python313.patch
   - cloud-init-dont-assume-ordering-of-ThreadPoolExecutor.patch
   - cloud-init-direxist.patch
   - cloud-init-wait-for-net.patch
   - cloud-init-usr-sudoers.patch
   - cloud-init-no-nmcfg-needed.patch
   - cloud-init-keep-flake.patch
   - cloud-init-lint-fixes.patch
   - cloud-init-pckg-reboot.patch
   - cloud-init-ds-deterministic.patch
   - cloud-init-write-routes.patch
   - cloud-init-skip-empty-conf.patch
 + Forward port
   - cloud-init-no-tempnet-oci.patch
   - cloud-init-no-openstack-guess.patch
   - cloud-init-lint-set-interpreter.patch
 + Add
   - cloud-init-ssh-usrmerge.patch (bsc#1237764)
   - cloud-init-lint-set-interpreter.patch
   - cloud-init-lint-fix.patch
   - cloud-init-no-single-process.patch
   - cloud-init-needs-action.patch
 + Drop hidesensitivedata in 16 & greater
 + test: pytestify cc_chef tests, add migration test
 + chef: migrate files in old config directories for backups and cache
 + fix: correct the path for Chef's backups (#5994)
 + fix(Azure): don't reraise FileNotFoundError during ephemeral setup (#6113)

OBS-URL: https://build.opensuse.org/request/show/1277881
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=106
2025-05-20 07:31:26 +00:00
333e9dfd77 apply the patch dummy
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=246
2025-05-15 18:32:08 +00:00
45e0874bb7 - Update to version 25.1.1 (bsc#1239715,jsc#PED-8680,bsc#1228414)
+ Removed included upstream
   - pep-594-drop-pipes.patch
   - cloud-init-fix-python313.patch
   - cloud-init-dont-assume-ordering-of-ThreadPoolExecutor.patch
   - cloud-init-direxist.patch
   - cloud-init-wait-for-net.patch
   - cloud-init-usr-sudoers.patch
   - cloud-init-no-nmcfg-needed.patch
   - cloud-init-keep-flake.patch
   - cloud-init-lint-fixes.patch
   - cloud-init-pckg-reboot.patch
   - cloud-init-ds-deterministic.patch
   - cloud-init-write-routes.patch
   - cloud-init-skip-empty-conf.patch
 + Forward port
   - cloud-init-no-tempnet-oci.patch
   - cloud-init-no-openstack-guess.patch
   - cloud-init-lint-set-interpreter.patch
 + Add
   - cloud-init-ssh-usrmerge.patch (bsc#1237764)
   - cloud-init-lint-set-interpreter.patch
   - cloud-init-lint-fix.patch
   - cloud-init-no-single-process.patch
   - cloud-init-needs-action.patch
 + Drop hidesensitivedata in 16 & greater
 + test: pytestify cc_chef tests, add migration test
 + chef: migrate files in old config directories for backups and cache
 + fix: correct the path for Chef's backups (#5994)
 + fix(Azure): don't reraise FileNotFoundError during ephemeral setup (#6113)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=245
2025-05-15 18:10:38 +00:00
9d54ca0906 Accepting request 1245372 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/1245372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=105
2025-02-12 20:30:43 +00:00
b1469b941b Add missing bugzilla reference:
- Support python 3.13 (bsc#1233649):

resst is just end-of-line whitespace removal.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=244
2025-02-12 12:27:05 +00:00
f155ed52a6 + Make sure the directory exists, if not create it, before writing in that
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=243
2025-02-11 21:02:04 +00:00
1a0cecdf92 - Add cloud-init-direxist.patch (bsc#1236720)
+ Make sur ethe directory exists, if not create it, before writing in that
    location.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=242
2025-02-04 16:57:48 +00:00
e330242ba5 Accepting request 1239349 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/1239349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=104
2025-01-23 16:56:32 +00:00
ae07dd3a29 - Support python 3.13:
+ 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

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=241
2025-01-21 21:05:02 +00:00
d2277ce376 Accepting request 1235207 from Cloud:Tools
- Add cloud-init-wait-for-net.patch (bsc#1227237)
  + Wait for udev once if we cannot find the expected MAC

  + Brute force approach to skip renames if the device is already present

OBS-URL: https://build.opensuse.org/request/show/1235207
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=103
2025-01-07 19:50:09 +00:00
0338649d15 fix syntx error in patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=240
2025-01-06 13:59:55 +00:00
14e9c00f78 handle missing udev process
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=239
2025-01-06 13:51:27 +00:00
fb5493d9e8 update patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=238
2025-01-06 13:27:30 +00:00
882510dff4 - Add cloud-init-wait-for-net.patch (bsc#1227237)
+ Wait for udev once if we cannot find the expected MAC

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=237
2025-01-06 13:18:52 +00:00
26859a25ae + Brute force approach to skip renames if the device is already present
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=236
2025-01-06 12:29:16 +00:00
3c7c6e256e Accepting request 1181325 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/1181325
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=102
2024-06-17 17:27:15 +00:00
d05d826927 Accepting request 1180876 from home:mcalabkova:branches:Cloud:Tools
- remove dependency on /usr/bin/python3 via using the macros (bsc#1212476)

OBS-URL: https://build.opensuse.org/request/show/1180876
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=235
2024-06-17 13:23:19 +00:00
c05d6e2f74 Accepting request 1179854 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1179854
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=101
2024-06-11 16:27:02 +00:00
b1fd5494a3 fix patch syntax
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=234
2024-06-03 20:07:50 +00:00
9bf9eed94a - Add cloud-init-skip-rename.patch (bsc#1219680)
+ Brute force appraoch to skip renames if the device is already present

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=233
2024-06-03 19:58:00 +00:00
84c6e02742 Accepting request 1172791 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1172791
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=100
2024-05-11 16:18:44 +00:00
bb16d71b80 - Add cloud-init-usr-sudoers.patch (bsc#1223469)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=232
2024-05-01 16:48:39 +00:00
0f2040809b - Add cloud-init-usr-sudoers.patch (bsc#12223469)
+ Handle the existence of /usr/etc/sudoers to search for the expected
    include location

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=231
2024-04-29 22:20:56 +00:00
fff63196cf Accepting request 1168393 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1168393
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=99
2024-04-17 12:45:19 +00:00
b76642396e - Update cloud-init-no-openstack-guess.patch
+ Do not enable cloud-init on systems where there is no DMI just
    because no data source has been found. No data source means
    cloud-init will not run.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=230
2024-04-09 16:09:39 +00:00
c9dc72d3d4 - Add cloud-init-no-nmcfg-needed.patch (bsc#1221726)
+ Do not require a NetworkManager config file in order to detect
    NetworkManager as the renderer

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=229
2024-04-05 18:16:25 +00:00
8513308875 add comment w.r.t patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=228
2024-04-05 16:26:00 +00:00
1475962d05 - 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
2024-04-05 15:21:59 +00:00
cade3403b4 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
2024-03-29 12:09:29 +00:00
6c1af59408 - 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/package/show/Cloud:Tools/cloud-init?expand=0&rev=226
2024-03-28 12:25:09 +00:00
06f0391ead Accepting request 1155557 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/1155557
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=97
2024-03-07 17:27:47 +00:00
4cb93758a3 Accepting request 1155472 from home:fcrozat:branches:Cloud:Tools
- Hardcode distribution to suse for proper cloud.cfg generation
  (bsc#1220132).

OBS-URL: https://build.opensuse.org/request/show/1155472
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=225
2024-03-06 13:00:56 +00:00
e17e51b4cf Accepting request 1152513 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1152513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=96
2024-02-28 18:44:31 +00:00
a46ffe0388 - Prepare for RPM 4.20 switch patch syntax
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=224
2024-02-20 20:29:52 +00:00
2bf1ee4ee3 Accepting request 1142867 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1142867
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=95
2024-01-31 22:53:26 +00:00
77d6307bc5 - Add cloud-init-pckg-reboot.patch (boo#1198533, bsc#1218952, jsc#SMO-326)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=223
2024-01-23 19:21:05 +00:00
c503a930f3 - Add cloud-init-skip-empty-conf.patch
+ Skip tests with empty config

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=222
2024-01-20 09:21:57 +00:00
204408f666 - Add cloud-init-pckg-reboot.patch (boo#1198533, bsc#1218952)
+ Support reboot on package update/upgrade via the cloud-init config

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=221
2024-01-19 19:21:21 +00:00
7e0ec650d8 Accepting request 1133887 from Cloud:Tools
- Switch build dependency to the generic distribution-release package

OBS-URL: https://build.opensuse.org/request/show/1133887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=94
2023-12-19 22:15:31 +00:00
b6c114b78d - Switch build dependency to the generic distribution-release package
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=220
2023-12-15 14:10:22 +00:00
8330229f84 Accepting request 1132673 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1132673
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=93
2023-12-13 17:34:05 +00:00
62347769ec Accepting request 1130860 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/1130860
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=92
2023-12-05 16:02:51 +00:00
79604ae082 - Move fdupes call back to %install (boo#1214169)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=219
2023-12-05 12:39:22 +00:00
a2411d9328 Accepting request 1130364 from home:mvyskocil:branches:Cloud:Tools
- Move fdupes call back to %install

It looked as an error during an update and it makes a little sense to deduplicate the package in %post. Moved (back) to %install.

The existing package is not installable on my MicroOS system, so failing the transactional-update.
```
(50/54) Installing: cloud-init-23.3-1.1.aarch64 [.......
/var/tmp/rpm-tmp.MzH9hQ: line 4: /usr/lib/rpm/fdupes_wrapper: No such file or directory
warning: %post(cloud-init-23.3-1.1.aarch64) scriptlet failed, exit status 127
.done]
```

OBS-URL: https://build.opensuse.org/request/show/1130364
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=218
2023-12-04 22:36:59 +00:00
bb6ef29f74 Accepting request 1130563 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1130563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=91
2023-12-04 22:00:45 +00:00
189bd13cf0 - Update to version 23.3 (bsc#1216011, bsc#1215794, bsc#1215740)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=217
2023-11-26 11:59:39 +00:00
baff025f5c Accepting request 1128348 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1128348
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=90
2023-11-23 20:38:38 +00:00
eed84a210f - Update to version 23.3 (bsc#1216011, bsc#1215794)
+ Remove patches included upstream:
    - cloud-init-fix-ca-test.patch
    - cloud-init-cve-2023-1786-redact-instance-data-json-main.patch
    - cloud-init-power-rhel-only.patch
    - cloud-init-flake8-fixes.patch
  + Add
    - cloud-init-keep-flake.patch
    - cloud-init-lint-fixes.patch
  + Update
    - cloud-init-write-routes.patch (bsc#1216007)
  + Bump pycloudlib to 1!5.1.0 for ec2 mantic daily image support (#4390)
  + Fix cc_keyboard in mantic (LP: #2030788)
  + ec2: initialize get_instance_userdata return value to bytes (#4387)
    [Noah Meyerhans]
  + cc_users_groups: Add doas/opendoas support (#4363) [dermotbradley]
  + Fix pip-managed ansible
  + status: treat SubState=running and MainPID=0 as service exited
  + azure/imds: increase read-timeout to 30s (#4372) [Chris Patterson]
  + collect-logs fix memory usage (SC-1590) (#4289)
    [Alec Warren] (LP: #1980150)
  + cc_mounts: Use fallocate to create swapfile on btrfs (#4369) [王煎饼]
  + Undocument nocloud-net (#4318)
  + feat(akamai): add akamai to settings.py and apport.py (#4370)
  + read-version: fallback to get_version when git describe fails (#4366)
  + apt: fix cloud-init status --wait blocking on systemd v 253 (#4364)
  + integration tests: Pass username to pycloudlib (#4324)
  + Bump pycloudlib to 1!5.1.0 (#4353)
  + cloud.cfg.tmpl: reorganise, minimise/reduce duplication (#4272)
    [dermotbradley]

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=216
2023-11-16 13:51:30 +00:00
60d88ce573 - Revert chnages from previous commit
+ Disabling checks the primary maintainer enabled for specific reasons
    is not a fix.

- update to 23.1.2:
  * 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 
  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)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=215
2023-10-09 14:24:26 +00:00
32d6bc0624 Accepting request 1103818 from Cloud:Tools
- update to 23.1.2:
  * 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 
  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)

OBS-URL: https://build.opensuse.org/request/show/1103818
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=89
2023-08-14 20:35:06 +00:00
d9ca574560 - Add cloud-init-flake8-fixes.patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=214
2023-08-14 12:26:25 +00:00
cbf3b8acd4 - reset to SLE version and keep flake enabled
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=213
2023-08-14 10:54:59 +00:00
131faa9cb9 - drop
cloud-init-cve-2023-1786-redact-instance-data-json-main.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=212
2023-08-14 09:09:31 +00:00
59f356a421 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=211 2023-08-14 07:13:18 +00:00
e3b9ff315d - update to 23.1.2:
* 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 cloud-init-cve-2023-1786-redact-inst-data.patch (upstream)
- spec-file cleanups, including dropping flake8 (as build fails
  with newer flake8 versions)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=210
2023-08-13 21:04:19 +00:00
c4435ac5c3 Accepting request 1098540 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1098540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=88
2023-07-18 19:53:44 +00:00
fafa1082aa - Update cloud-init-write-routes.patch (bsc#1212879)
+ Add necessary import statement
- Enable flake8 linting, fix up patches
  + cloud-init-cve-2023-1786-redact-instance-data-json-main.patch
  + cloud-init-power-rhel-only.patch
  + cloud-init-write-routes.patch
  + datasourceLocalDisk.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=209
2023-07-06 12:09:02 +00:00
5142b4b371 add cve reference
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=208
2023-04-27 12:40:22 +00:00
6b35b75868 - Sensitive data exposure (bsc#1210277, CVE-2023-1786)
+ Add hidesensitivedata 
  + Add cloud-init-cve-2023-1786-redact-inst-data.patch
  + Do not expose sensitive data gathered from the CSP

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=207
2023-04-27 12:35:39 +00:00
23246c72e5 - Add cloud-init-power-rhel-only.patch (bsc#1210273)
+ Config module cc_refresh_rmc_and_interface is implemented such that
    it will only work on RH distros. Set the module availability accordingly.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=206
2023-04-27 12:24:25 +00:00
7037bc5725 responses package is only needed for testing, remove a runtime requirement
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=205
2023-03-27 13:46:35 +00:00
2ae4318ae4 Accepting request 1068502 from Cloud:Tools
- Update to version 23.1
  + Remove patches included upstream:
    - cloud-init-btrfs-queue-resize.patch
    - cloud-init-micro-is-suse.patch
    - cloud-init-suse-afternm.patch
    - cloud-init-prefer-nm.patch
    - cloud-init-transact-up.patch
  + Forward port
    - cloud-init-write-routes.patch
  + Added
    - cloud-init-fix-ca-test.patch
  + Support transactional-updates for SUSE based distros (#1997)
    [Robert Schweikert]
  + Set ownership for new folders in Write Files Module (#1980)
    [Jack] (LP: #1990513)
  + add OpenCloudOS and TencentOS support (#1964) [wynnfeng]
  + lxd: Retry if the server isn't ready (#2025)
  + test: switch pycloudlib source to pypi (#2024)
  + test: Fix integration test deprecation message (#2023)
  + Recognize opensuse-microos, dev tooling fixes [Robert Schweikert]
  + sources/azure: refactor imds handler into own module (#1977)
    [Chris Patterson]
  + docs: deprecation generation support [1/2] (#2013)
  + add function is_virtual to distro/FreeBSD (#1957) [Mina Galić]
  + cc_ssh: support multiple hostcertificates (#2018) (LP: #1999164)
  + Fix minor schema validation regression and fixup typing (#2017)
  + doc: Reword user data debug section (#2019)
  + Overhaul/rewrite of certificate handling as follows: (#1962)
    [dermotbradley] (LP: #1931174)
  + disk_setup: use byte string when purging the partition table (#2012)

OBS-URL: https://build.opensuse.org/request/show/1068502
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=87
2023-03-02 22:01:51 +00:00
30442f28f8 cleanup merge message
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=204
2023-03-01 15:24:49 +00:00
5ddab47951 - Update to version 23.1
+ Remove patches included upstream:
    - cloud-init-btrfs-queue-resize.patch
    - cloud-init-micro-is-suse.patch
    - cloud-init-suse-afternm.patch
    - cloud-init-prefer-nm.patch
    - cloud-init-transact-up.patch
  + Forward port
    - cloud-init-write-routes.patch
  + Added
    - cloud-init-fix-ca-test.patch
  + Support transactional-updates for SUSE based distros (#1997)
    [Robert Schweikert]
  + Set ownership for new folders in Write Files Module (#1980)
    [Jack] (LP: #1990513)
  + add OpenCloudOS and TencentOS support (#1964) [wynnfeng]
  + lxd: Retry if the server isn't ready (#2025)
  + test: switch pycloudlib source to pypi (#2024)
  + test: Fix integration test deprecation message (#2023)
  + Recognize opensuse-microos, dev tooling fixes [Robert Schweikert]
  + sources/azure: refactor imds handler into own module (#1977)
    [Chris Patterson]
  + docs: deprecation generation support [1/2] (#2013)
  + add function is_virtual to distro/FreeBSD (#1957) [Mina Galić]
  + cc_ssh: support multiple hostcertificates (#2018) (LP: #1999164)
  + Fix minor schema validation regression and fixup typing (#2017)
  + doc: Reword user data debug section (#2019)
  + Overhaul/rewrite of certificate handling as follows: (#1962)
    [dermotbradley] (LP: #1931174)
  + disk_setup: use byte string when purging the partition table (#2012)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=203
2023-02-23 19:19:22 +00:00
4f812ec1c8 Include upstream PR reference for patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=202
2023-02-04 17:13:52 +00:00
7cb54c8cc6 - Add cloud-init-transact-up.patch to support transactional-updates
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=201
2023-02-03 22:04:01 +00:00
bdfec3b52b fix test
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=200
2023-02-03 20:26:35 +00:00
68a246cfaa fix test
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=199
2023-02-03 20:14:14 +00:00
5077c87217 - Add cloud-init-prefer-nm.patch
+ Prefer NetworkManager of sysconfig when available

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=198
2023-02-01 20:04:16 +00:00
931d843fe3 add PR references
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=197
2023-01-27 21:20:44 +00:00
7b5d7fee53 do not use six
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=196
2023-01-25 21:48:31 +00:00
67d6374692 - Update to version 22.4
+ Remove patches included upstream:
    - cloud-init-vmware-test.patch
    - cloud-init-sysctl-not-in-bin.patch
  + Forward port:
    - cloud-init-write-routes.patch
    - cloud-init-break-resolv-symlink.patch
    - cloud-init-sysconf-path.patch
    - cloud-init-no-tempnet-oci.patch
  + Add cloud-init-btrfs-queue-resize.patch (bsc#1171511)
  + Add cloud-init-micro-is-suse.patch (bsc#1203393) [Martin Petersen]
  + Add cloud-init-suse-afternm.patch
  + test: fix pro integration test [Alberto Contreras]
  + cc_disk_setup: pass options in correct order to utils (#1829)
    [dermotbradley]
  + tests: text_lxd basic_preseed verify_clean_log (#1826)
  + docs: switch sphinx theme to furo (SC-1327) (#1821) [Alberto Contreras]
  + tests: activate Ubuntu Pro tests (only on Jenkins) (#1777)
    [Alberto Contreras]
  + tests: test_lxd assert features.storage.buckets when present (#1827)
  + tests: replace missed ansible install-method with underscore (#1825)
  + tests: replace ansible install-method with underscore
  + ansible: standardize schema keys
  + ci: run json tool on 22.04 rather than 20.04 (#1823)
  + Stop using devices endpoint for LXD network config (#1819)
  + apport: address new curtin log and config locations (#1812)
  + cc_grub: reword docs for clarity (#1818)
  + tests: Fix preseed test (#1820)
  + Auto-format schema (#1810)
  + Ansible Control Module (#1778)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=195
2023-01-25 13:33:06 +00:00
7be73db30b Accepting request 976076 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/976076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=86
2022-05-12 20:57:46 +00:00
8cde961fdf Accepting request 972813 from home:pgajdos:python
- python-mock is not required for build
  https://trello.com/c/S6eADbii/64-remove-python-mock

OBS-URL: https://build.opensuse.org/request/show/972813
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=194
2022-05-10 13:05:52 +00:00
63de3a8f9f Accepting request 964920 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/964920
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=85
2022-03-28 15:00:18 +00:00
e433cb693e - Update to version 21.4 (bsc#1192343, jsc#PM-3181)
+ Also include VMWare functionality for (jsc#PM-3175)
  + Remove patches included upstream:
    - cloud-init-purge-cache-py-ver-change.patch
    - cloud-init-update-test-characters-in-substitution-unit-test.patch
  + Forward port:
    - cloud-init-write-routes.patch
    - cloud-init-no-tempnet-oci.patch
  + Add cloud-init-vmware-test.patch
    - Test is system dependend, not properly mocked
  + Azure: fallback nic needs to be reevaluated during reprovisioning
    (#1094) [Anh Vo]
  + azure: pps imds (#1093) [Anh Vo]
  + testing: Remove calls to 'install_new_cloud_init' (#1092)
  + Add LXD datasource (#1040)
  + Fix unhandled apt_configure case. (#1065) [Brett Holman]
  + Allow libexec for hotplug (#1088)
  + Add necessary mocks to test_ovf unit tests (#1087)
  + Remove (deprecated) apt-key (#1068) [Brett Holman] (LP: #1836336)
  + distros: Remove a completed "TODO" comment (#1086)
  + cc_ssh.py: Add configuration for controlling ssh-keygen output (#1083)
    [dermotbradley]
  + Add "install hotplug" module (SC-476) (#1069) (LP: #1946003)
  + hosts.alpine.tmpl: rearrange the order of short and long hostnames
    (#1084) [dermotbradley]
  + Add max version to docutils
  + cloudinit/dmi.py: Change warning to debug to prevent console display
    (#1082) [dermotbradley]
  + remove unnecessary EOF string in
    disable-sshd-keygen-if-cloud-init-active.conf (#1075) [Emanuele

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=193
2022-03-25 17:46:06 +00:00
9fd55825db - systemctl location (bsc#1193531)
- Add cloud-init-sysctl-not-in-bin.patch
  - The sytemctl executable is not necessarily in '/bin'

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=192
2022-02-17 18:18:25 +00:00
a4fc101552 Accepting request 936053 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/936053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=84
2021-12-08 21:08:41 +00:00
28f8938ec7 Accepting request 933362 from home:StevenK:branches:Cloud:Tools
- Remove unneeded BuildRequires on python3-nose.

OBS-URL: https://build.opensuse.org/request/show/933362
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=191
2021-12-06 14:36:01 +00:00
0eecf8bdf0 Accepting request 913169 from Cloud:Tools
- Update to version 21.2 (bsc#1186004)
  + Remove patches included upstream:
    - cloud-init-azure-def-usr-pass.patch
    - cloud-init-after-kvp.diff
    - cloud-init-recognize-hpc.patch
    - use_arroba_to_include_sudoers_directory-bsc_1181283.patch
    - cloud-init-bonding-opts.patch
    - cloud-init-log-file-mode.patch
    - 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 
  + Forward port:
    - cloud-init-write-routes.patch
    - cloud-init-break-resolv-symlink.patch
    - cloud-init-sysconf-path.patch
    - cloud-init-no-tempnet-oci.patch
  +  Add \r\n check for SSH keys in Azure (#889)
  +  Revert "Add support to resize rootfs if using LVM (#721)" (#887)
     (LP: #1922742)
  +  Add Vultaire as contributor (#881) [Paul Goins]
  +  Azure: adding support for consuming userdata from IMDS (#884) [Anh Vo]
  +  test_upgrade: modify test_upgrade_package to run for more sources (#883)
  +  Fix chef module run failure when chef_license is set (#868) [Ben Hughes]
  +  Azure: Retry net metadata during nic attach for non-timeout errs (#878)
     [aswinrajamannar]
  +  Azure: Retrieve username and hostname from IMDS (#865) [Thomas Stringer]
  +  Azure: eject the provisioning iso before reporting ready (#861) [Anh Vo]
  +  Use `partprobe` to re-read partition table if available (#856)
     [Nicolas Bock] (LP: #1920939)

OBS-URL: https://build.opensuse.org/request/show/913169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=83
2021-08-24 08:54:11 +00:00
dcf4ef1de4 - Fix changelog order
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=190
2021-08-19 14:57:10 +00:00
3aeb460fd5 - Update to version 21.2 (bsc#1186004)
+ Remove patches included upstream:
    - cloud-init-azure-def-usr-pass.patch
    - cloud-init-after-kvp.diff
    - cloud-init-recognize-hpc.patch
    - use_arroba_to_include_sudoers_directory-bsc_1181283.patch
    - cloud-init-bonding-opts.patch
    - cloud-init-log-file-mode.patch
    - 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 
  + Forward port:
    - cloud-init-write-routes.patch
    - cloud-init-break-resolv-symlink.patch
    - cloud-init-sysconf-path.patch
    - cloud-init-no-tempnet-oci.patch
  +  Add \r\n check for SSH keys in Azure (#889)
  +  Revert "Add support to resize rootfs if using LVM (#721)" (#887)
     (LP: #1922742)
  +  Add Vultaire as contributor (#881) [Paul Goins]
  +  Azure: adding support for consuming userdata from IMDS (#884) [Anh Vo]
  +  test_upgrade: modify test_upgrade_package to run for more sources (#883)
  +  Fix chef module run failure when chef_license is set (#868) [Ben Hughes]
  +  Azure: Retry net metadata during nic attach for non-timeout errs (#878)
     [aswinrajamannar]
  +  Azure: Retrieve username and hostname from IMDS (#865) [Thomas Stringer]
  +  Azure: eject the provisioning iso before reporting ready (#861) [Anh Vo]
  +  Use `partprobe` to re-read partition table if available (#856)
     [Nicolas Bock] (LP: #1920939)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=189
2021-08-19 12:25:42 +00:00
Richard Brown
6b19333bfc Accepting request 911577 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/911577
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=82
2021-08-16 08:08:31 +00:00
bf3841c6e3 Accepting request 911508 from home:fusionfuture:branches:Cloud:Tools
- Add cloud-init-update-test-characters-in-substitution-unit-test.patch
  to fix unit test fail in TestGetPackageMirrorInfo::test_substitution.

OBS-URL: https://build.opensuse.org/request/show/911508
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=188
2021-08-12 11:24:32 +00:00
8ffc3d9cdf Accepting request 905298 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/905298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=81
2021-07-10 20:54:08 +00:00
d4ebc226a3 Accepting request 905232 from home:alarrosa:branches:openSUSE:Factory:Rings:1-MinimalX
- Add patch from upstream to remove python2 compatibility so
  cloud-init builds fine in Tumbleweed with a recent Jinja2
  version. This patch is only applied in TW.
  * 0001-templater-drop-Jinja-Python-2-compatibility-shim.patch

OBS-URL: https://build.opensuse.org/request/show/905232
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=187
2021-07-09 13:55:49 +00:00
68888fb944 Accepting request 899108 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/899108
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=80
2021-06-15 14:36:45 +00:00
1c5c88721b - Disable failing test
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=186
2021-06-03 18:04:39 +00:00
b5f1732754 - Add cloud-init-purge-cache-py-ver-change.patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=185
2021-06-02 21:15:58 +00:00
b8c37f9e0f - Add cloud-init-log-file-mode.patch (bsc#1183939)
+ Change log file creation mode to 640
- Add cloud-init-no-pwd-in-log.patch (bsc#1184758)
  + Do not write the generated password to the log file
- Add cloud-init-purge-cahce-py-ver-change.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=184
2021-06-02 21:15:40 +00:00
934063986c Accepting request 885452 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/885452
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=79
2021-04-18 19:44:15 +00:00
d6986f4135 - Add cloud-init-bonding-opts.patch (bsc#1184085)
+ Write proper bonding option configuration for SLE/openSUSE
- Fix application and inclusion of
  use_arroba_to_include_sudoers_directory-bsc_1181283.patchfix (bsc#1181283)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=183
2021-04-07 17:43:03 +00:00
3e03d52384 Accepting request 866971 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/866971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=78
2021-01-29 13:55:04 +00:00
cd4a5c7fae Accepting request 866951 from home:jordimassaguerpla:branch:Cloud:Tools:fix_bsc_1181283
- Add use_arroba_to_include_sudoers_directory-bsc_1181283.patchfix (bsc#1181283)
  - Do not including sudoers.d directory twice

OBS-URL: https://build.opensuse.org/request/show/866951
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=182
2021-01-26 16:53:57 +00:00
fd0b3499be Accepting request 860463 from Cloud:Tools
- Update cloud-init-write-routes.patch (bsc#1180176)
  + Follow up to previous changes. Fix order of operations
    error to make gateway comparison between subnet configuration and
    route configuration valuable rather than self-comparing.

- Add cloud-init-sle12-compat.patch (jsc#PM-2335)
  - Python 3.4 compatibility in setup.py
  - Disable some test for mock version compatibility

OBS-URL: https://build.opensuse.org/request/show/860463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=77
2021-01-06 18:56:11 +00:00
15c55ee57e - Update cloud-init-write-routes.patch (bsc#1180176)
+ Follow up to previous changes. Fix order of operations
    error to make gateway comparison between subnet configuration and
    route configuration valuable rather than self-comparing.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=181
2021-01-04 22:34:44 +00:00
828bba4cbb - Add cloud-init-sle12-compat.patch (jsc#PM-2335)
- Python 3.4 compatibility in setup.py
  - Disable some test for mock version compatibility

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=180
2021-01-04 20:40:13 +00:00
65bba0838b Accepting request 853763 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/853763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=76
2020-12-09 21:12:15 +00:00
49186f2681 - Add wget as a requirement (bsc#1178029)
+ wget is used in the CloudStack data source

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=179
2020-11-24 21:16:17 +00:00
f8ea6795ac (jsc#PM-2335)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=178
2020-11-24 20:05:45 +00:00
869be1f2bf - Add cloud-init-azure-def-usr-pass.patch (bsc#1179150, bsc#1179151)
+ Properly set the password for the default user in all circumstances

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=177
2020-11-24 12:48:54 +00:00
1bec23819b - Patch the full package version into the cloud-init version file
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=176
2020-11-13 19:44:44 +00:00
e0a3626f42 - Update cloud-init-write-routes.patch (bsc#1177526)
+ Fix missing default route when dual stack network setup is used. Once
    a default route was configured for Ipv6 or IPv4 the default route
    configuration for the othre protocol was skipped.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=175
2020-11-10 11:41:01 +00:00
cc3eeff32f Accepting request 842287 from Cloud:Tools
- Update cloud-init-write-routes.patch (bsc#1177526)
  + Avoid exception if no gateway information is present and warning
    is triggered for existing routing.

OBS-URL: https://build.opensuse.org/request/show/842287
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=75
2020-10-20 14:03:17 +00:00
b0c63d0e77 - Update cloud-init-write-routes.patch (bsc#1177526)
+ Avoid exception if no gateway information is present and warning
    is triggered for existing routing.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=174
2020-10-17 10:31:14 +00:00
74b5fabc82 Accepting request 826089 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/826089
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=74
2020-08-14 07:29:39 +00:00
04ac085278 - Update to version 20.2 (bsc#1174443, bsc#1174444)
+ Remove patches included upstream:
    - 0001-Make-tests-work-with-Python-3.8-139.patch
    - cloud-init-ostack-metadat-dencode.patch
    - cloud-init-use-different-random-src.diff
    - cloud-init-long-pass.patch
    - cloud-init-mix-static-dhcp.patch
  + Remove patches build switched to Python 3 for all distributions
    - cloud-init-python2-sigpipe.patch
    - cloud-init-template-py2.patch
  + Add
    - cloud-init-after-kvp.diff
    - cloud-init-recognize-hpc.patch
  + doc/format: reference make-mime.py instead of an inline script (#334)
  + Add docs about  creating parent folders (#330) [Adrian Wilkins]
  + DataSourceNoCloud/OVF: drop claim to support FTP (#333) (LP: #1875470)
  + schema: ignore spurious pylint error (#332)
  + schema: add json schema for write_files module (#152)
  + BSD: find_devs_with_ refactoring (#298) [Gonéri Le Bouder]
  + nocloud: drop work around for Linux 2.6 (#324) [Gonéri Le Bouder]
  + cloudinit: drop dependencies on unittest2 and contextlib2 (#322)
  + distros: handle a potential mirror filtering error case (#328)
  + log: remove unnecessary import fallback logic (#327)
  + .travis.yml: don't run integration test on ubuntu/* branches (#321)
  + More unit test documentation (#314)
  + conftest: introduce disable_subp_usage autouse fixture (#304)
  + YAML align indent sizes for docs readability  (#323) [Tak Nishigori]
  + network_state: add missing space to log message (#325)
  + tests: add missing mocks for get_interfaces_by_mac (#326) (LP: #1873910)
  + test_mounts: expand happy path test for both happy paths (#319)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=173
2020-08-07 16:48:46 +00:00
d174a8cd19 Accepting request 815739 from Cloud:Tools
- Disable testing to aid elimination of unittest2 in Factory

OBS-URL: https://build.opensuse.org/request/show/815739
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=73
2020-06-21 16:52:06 +00:00
ba3c773df0 - Disable testing to aid elimination of unittest2 in Factory
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=172
2020-06-18 12:12:37 +00:00
91dfbf22af Accepting request 810865 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/810865
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=72
2020-06-03 18:29:47 +00:00
3557d87262 Accepting request 810194 from home:jgleissner:branches:Cloud:Tools
- Change log only update to reference bsc#1171995

OBS-URL: https://build.opensuse.org/request/show/810194
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=171
2020-06-02 14:40:52 +00:00
8cc9dbb9ca Accepting request 808301 from home:mloviska:branches:Cloud:Tools
- bsc#1170154: rsyslog warning, '~' is deprecated 
  + replace deprecated syntax '& ~' by '& stop'
    for more information please see https://www.rsyslog.com/rsyslog-error-2307/

OBS-URL: https://build.opensuse.org/request/show/808301
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=170
2020-05-27 12:22:47 +00:00
197013d386 Accepting request 807397 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/807397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=71
2020-05-26 15:13:37 +00:00
ae005709db Accepting request 807342 from home:jgleissner:branches:Cloud:Tools
Handle netconfig v2 device configurations (bsc#1171546)

OBS-URL: https://build.opensuse.org/request/show/807342
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=169
2020-05-19 19:06:35 +00:00
1673a5770a Accepting request 792960 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/792960
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=70
2020-04-10 21:52:33 +00:00
a931efbd63 Accepting request 791202 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/791202
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=69
2020-04-05 18:49:53 +00:00
ea84c3187e - Update to cloud-init 19.2 (bsc#1099358, bsc#1145622)
- Update cloud-init-write-routes.patch (boo#1144881, bsc#1148645)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=168
2020-04-03 13:32:19 +00:00
f618f6b3f1 - Update cloud-init-write-routes.patch
+ In cases where the config contains 2 or more default gateway
    specifications for an interface only write the first default route,
    log warning message about skipped routes
  + Avoid writing invalid route specification if neither the network
    nor destination is specified in the route configuration

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=167
2020-03-27 12:40:41 +00:00
62128da3ea - Update cloud-init-write-routes.patch
+ Still need to consider the "network" configuration uption
    for the v1 config implementation. Fixes regression
    introduced with update from Wed Feb 12 19:30:42

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=166
2020-03-26 17:22:08 +00:00
d59aba31a6 - Update cloud-init-write-routes.patch (bsc#1165296)
+ Add the default gateway to the ifroute config file when specified
    as part of the subnet configuration
  + Fix typo to properly extrakt provided netmask data (bsc#1163178)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=165
2020-03-25 19:41:57 +00:00
df49ce6d46 Accepting request 782655 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/782655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=68
2020-03-11 17:33:15 +00:00
d41fefb9da Accepting request 766918 from home:dimstar:Factory
- BuildRequire pkgconfig(udev) instead of udev: allow OBS to
  shortcut through the -mini flavor.

OBS-URL: https://build.opensuse.org/request/show/766918
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=164
2020-03-08 11:35:55 +00:00
31adfdd05a Accepting request 777713 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/777713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=67
2020-02-22 17:58:28 +00:00
1b2a3c0e23 - Add cloud-init-long-pass.patch (bsc#1162936, CVE-2020-8632)
+ Increase the default length of generated passwords

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=163
2020-02-13 14:08:57 +00:00
d3536e70a5 - Add cloud-init-use-different-random-src.diff (bsc#1162937, CVE-2020-8631)
+ Use non-deterministic generator for password generation.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=162
2020-02-12 22:40:02 +00:00
3bb80bd89a - Update cloud-init-write-routes.patch (bsc#1163178)
+ Entries in the routes definition have changed causing a traceback
    during rout config file writing. This patch update addresses the
    issue by extracting the new entries properly.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=161
2020-02-12 19:33:31 +00:00
e8539a971b Accepting request 765394 from Cloud:Tools
- Add cloud-init-no-tempnet-oci.patch (bsc#1161132, bsc#1161133)
  + Do not attempt to configure an ephemeral network on OCI. We
    boot off iSCSI and the network is up. Just read the data.

- Add patch to build properly with python 3.8:
  * 0001-Make-tests-work-with-Python-3.8-139.patch

- Update to version 19.4
  + Remove patches included upstream:
    - cloud-init-after-wicked.patch
    - cloud-init-noresolv-merge-no-dns-data.diff
    - cloud-init-renderer-detect.patch
    - cloud-init-trigger-udev.patch
  + Removed patches merged with cloud-init-mix-static-dhcp.patch
    - cloud-init-proper-ipv6-setting.patch
    - cloud-init-static-net.patch
  + Added cloud-init-mix-static-dhcp.patch (bsc#1157894)
  + Forward port cloud-init-sysconf-path.patch
  + doc: specify _ over - in cloud config modules
  + [Joshua Powers] (LP: #1293254)
  + tools: Detect python to use via env in migrate-lp-user-to-github
  + [Adam Dobrawy]
  + Partially revert "fix unlocking method on FreeBSD" (#116)
  + tests: mock uid when running as root (#113)
  + [Joshua Powers] (LP: #1856096)
  + cloudinit/netinfo: remove unused getgateway (#111)
  + docs: clear up apt config sections (#107) [Joshua Powers] (LP: #1832823)
  + doc: add kernel command line option to user data (#105)
  + [Joshua Powers] (LP: #1846524)
  + config/cloud.cfg.d: update README [Joshua Powers] (LP: #1855006)

OBS-URL: https://build.opensuse.org/request/show/765394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=66
2020-01-23 15:08:30 +00:00
5a5220c868 - Add cloud-init-no-tempnet-oci.patch (bsc#1161132, bsc#1161133)
+ Do not attempt to configure an ephemeral network on OCI. We
    boot off iSCSI and the network is up. Just read the data.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=160
2020-01-17 21:33:13 +00:00
d21979739c Accepting request 764340 from home:scarabeus_iv:branches:Cloud:Tools
- Add patch to build properly with python 3.8:
  * 0001-Make-tests-work-with-Python-3.8-139.patch

OBS-URL: https://build.opensuse.org/request/show/764340
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=159
2020-01-17 12:38:50 +00:00
152b453122 - Update to version 19.4
+ Remove patches included upstream:
    - cloud-init-after-wicked.patch
    - cloud-init-noresolv-merge-no-dns-data.diff
    - cloud-init-renderer-detect.patch
    - cloud-init-trigger-udev.patch
  + Removed patches merged with cloud-init-mix-static-dhcp.patch
    - cloud-init-proper-ipv6-setting.patch
    - cloud-init-static-net.patch
  + Added cloud-init-mix-static-dhcp.patch (bsc#1157894)
  + Forward port cloud-init-sysconf-path.patch
  + doc: specify _ over - in cloud config modules
  + [Joshua Powers] (LP: #1293254)
  + tools: Detect python to use via env in migrate-lp-user-to-github
  + [Adam Dobrawy]
  + Partially revert "fix unlocking method on FreeBSD" (#116)
  + tests: mock uid when running as root (#113)
  + [Joshua Powers] (LP: #1856096)
  + cloudinit/netinfo: remove unused getgateway (#111)
  + docs: clear up apt config sections (#107) [Joshua Powers] (LP: #1832823)
  + doc: add kernel command line option to user data (#105)
  + [Joshua Powers] (LP: #1846524)
  + config/cloud.cfg.d: update README [Joshua Powers] (LP: #1855006)
  + azure: avoid re-running cloud-init when instance-id is byte-swapped
  + (#84) [AOhassan]
  + fix unlocking method on FreeBSD [Igor Galić] (LP: #1854594)
  + debian: add reference to the manpages [Joshua Powers]
  + ds_identify: if /sys is not available use dmidecode (#42)
  + [Igor Galić] (LP: #1852442)
  + docs: add cloud-id manpage [Joshua Powers]

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=158
2020-01-16 12:06:38 +00:00
493166b275 Accepting request 753049 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/753049
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=65
2019-12-07 14:15:39 +00:00
7c5eaf65d4 - Add cloud-init-proper-ipv6-setting.patch (bsc#1156139)
+ Set proper IPv6 interface variable in ifcfg file

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=157
2019-11-25 19:38:14 +00:00
6dbf527a2c Accepting request 746646 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/746646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=64
2019-11-10 21:36:38 +00:00
675e6061ec Accepting request 746152 from home:PPavlu:branches:Cloud:Tools
- Update cloud-init-write-routes.patch (bsc#1155376)
  + Write a route's destination network in CIDR notation instead of using the
    netmask. This provides support for correctly recording IPv6 routes.

OBS-URL: https://build.opensuse.org/request/show/746152
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=156
2019-11-08 15:05:12 +00:00
83f69b8b12 Accepting request 741941 from Cloud:Tools
- Add cloud-init-renderer-detect.patch (bsc#1154092, boo#1142988)
  + Short curcuit the conditional for identifying the sysconfig renderer.
    If we find ifup/ifdown accept the renderer as available.

- Add cloud-init-break-resolv-symlink.patch (bsc#1151488)
  + If /etc/resolv.conf is a symlink break it. This will avoid netconfig
    from clobbering the changes cloud-init applied.

OBS-URL: https://build.opensuse.org/request/show/741941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=63
2019-10-25 16:40:22 +00:00
dd6725b794 - Comment about expected upstream fix inclusion
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=155
2019-10-23 19:23:48 +00:00
29723d4dbe - Expand patch to more reliably detect the OS
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=154
2019-10-22 21:13:06 +00:00
e57d5d5263 - Add lp bug number for reference
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=153
2019-10-22 20:48:20 +00:00
40d14c4774 - Add cloud-init-renderer-detect.patch (bsc#1154092, boo#1142988)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=152
2019-10-22 20:06:25 +00:00
0e6e7e2b35 - Add cloud-init-renderer-detect.patch (bsc#1154092)
+ Short curcuit the conditional for identifying the sysconfig renderer.
    If we find ifup/ifdown accept the renderer as available.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=151
2019-10-22 20:01:12 +00:00
e61b62e5b9 - Add cloud-init-break-resolv-symlink.patch (bsc#1151488)
+ If /etc/resolv.conf is a symlink break it. This will avoid netconfig
    from clobbering the changes cloud-init applied.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=150
2019-10-22 12:15:54 +00:00
08601df903 Accepting request 738480 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/738480
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=62
2019-10-18 12:30:07 +00:00
0cb1bb89c1 - Update to cloud-init 19.2 (bsc#1099358)
+ Remove, included upstream
    - cloud-init-detect-nova.diff
    - cloud-init-add-static-routes.diff
  + net: add rfc3442 (classless static routes) to EphemeralDHCP
    (LP: #1821102)
  + templates/ntp.conf.debian.tmpl: fix missing newline for pools
    (LP: #1836598)
  + Support netplan renderer in Arch Linux [Conrad Hoffmann]
  + Fix typo in publicly viewable documentation. [David Medberry]
  + Add a cdrom size checker for OVF ds to ds-identify
    [Pengpeng Sun] (LP: #1806701)
  + VMWare: Trigger the post customization script via cc_scripts module.
    [Xiaofeng Wang] (LP: #1833192)
  + Cloud-init analyze module: Added ability to analyze boot events.
    [Sam Gilson]
  + Update debian eni network configuration location, retain Ubuntu setting
    [Janos Lenart]
  + net: skip bond interfaces in get_interfaces
    [Stanislav Makar] (LP: #1812857)
  + Fix a couple of issues raised by a coverity scan
  + Add missing dsname for Hetzner Cloud datasource [Markus Schade]
  + doc: indicate that netplan is default in Ubuntu now
  + azure: add region and AZ properties from imds compute location metadata
  + sysconfig: support more bonding options [Penghui Liao]
  + cloud-init-generator: use libexec path to ds-identify on redhat systems
    (LP: #1833264)
  + tools/build-on-freebsd: update to python3 [Gonéri Le Bouder]
  + Allow identification of OpenStack by Asset Tag
    [Mark T. Voelker] (LP: #1669875)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=149
2019-10-14 18:50:21 +00:00
0764e8e2b0 Accepting request 734782 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/734782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=61
2019-10-05 14:16:17 +00:00
eb8686803a - Follow up to update cloud-init-trigger-udev.patch (bsc#1144363)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=148
2019-09-26 10:33:25 +00:00
4977fc7a3b - Add cloud-init-after-wicked.patch
- Change the service order, the cloud-init service wants to run after
    networking is started

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=147
2019-09-24 19:53:38 +00:00
fcf843e6dd - Add cloud-init-noresolv-merge-no-dns-data.diff
- Avoid writing resolv.conf if the network configuration contains no
    dns entries.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=146
2019-09-24 19:32:45 +00:00
7b9c2a101f - Follow up to (bsc#1144363)
- In this implementation the "name" is not yet an attribute, use
    get() to obtain the value from a dict. Source code version confusion.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=145
2019-09-23 13:07:29 +00:00
67d0e4641b Accepting request 728523 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/728523
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=60
2019-09-11 08:21:43 +00:00
ddfb957280 - Add cloud-init-add-static-routes.diff (bsc#1141969)
+ Properly handle static routes. The EphemeralDHCP context manager did
    not parse or handle rfc3442 classless static routes which prevented
    reading datasource metadata in some clouds.

- Update cloud-init-trigger-udev.patch (bsc#1144363)
  - The __str__ implementation no longer delivers the name of the interface,
    use the "name" attribute instead to form a proper path in the
    sysfs tree

- Update cloud-init-write-routes.patch (bsc#1144881)
  + If no routes are set for a subnet but the subnet has a gateway
    specified, set the gateway as the default route for the interface

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=144
2019-09-05 13:32:10 +00:00
eceb75bdd4 - And another try at the version BS
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=143
2019-07-05 19:11:25 +00:00
cd23205773 - Follow the ever changing inconsistencies of version definitions and
detection in the build service.
  + No more suse_version in SUSE internal instance for SLES 15 SP1

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=142
2019-07-05 18:59:55 +00:00
522b534b46 Accepting request 709158 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/709158
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=59
2019-06-24 19:48:51 +00:00
4eef7cf985 Accepting request 709156 from home:dimstar:Factory
Allow OBS to pick better candidates to shorten rebuild queues

OBS-URL: https://build.opensuse.org/request/show/709156
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=141
2019-06-11 12:45:15 +00:00
dcd29516da - Own the parent too
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=140
2019-06-09 11:59:14 +00:00
7973844d5b - Own the completions dir to fix SLE 12 build issue
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=139
2019-06-09 11:18:24 +00:00
5fb133e521 - Update to version 19.1 (bsc#1136440)
+ Remove, included upstream
    - fix-default-systemd-unit-dir.patch
    - cloud-init-sysconf-ethsetup.patch
    - cloud-init-handle-def-route-set.patch
    - cloud-init-no-empty-resolv.patch
    - cloud-init-proper-ipv6-varname.patch
  + Forward port
    - cloud-init-trigger-udev.patch
  + Add cloud-init-detect-nova.diff (bsc#1136440)
  + Modify cloud-init-python2-sigpipe.patch, import signal and constants
  + Update spec to account for new location of bash completion
  + freebsd: add chpasswd pkg in the image [Gonéri Le Bouder]
  + tests: add Eoan release [Paride Legovini]
  + cc_mounts: check if mount -a on no-change fstab path
    [Jason Zions (MSFT)] (LP: #1825596)
  + replace remaining occurrences of LOG.warn [Daniel Watkins]
  + DataSourceAzure: Adjust timeout for polling IMDS [Anh Vo]
  + Azure: Changes to the Hyper-V KVP Reporter [Anh Vo]
  + git tests: no longer show warning about safe yaml.
  + tools/read-version: handle errors [Chad Miller]
  + net/sysconfig: only indicate available on known sysconfig distros
    (LP: #1819994)
  + packages: update rpm specs for new bash completion path
    [Daniel Watkins] (LP: #1825444)
  + test_azure: mock util.SeLinuxGuard where needed
    [Jason Zions (MSFT)] (LP: #1825253)
  + setup.py: install bash completion script in new location [Daniel Watkins]
  + mount_cb: do not pass sync and rw options to mount
    [Gonéri Le Bouder] (LP: #1645824)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=138
2019-06-09 11:04:38 +00:00
a88363e6e1 Accepting request 699769 from Cloud:Tools
- Update cloud-init-write-routes.patch (bsc#1132692)
  + Properly accumulate all the defined routes for a given network device.
    Previously only the last defined route was written to the routes file.

- Update cloud-init-trigger-udev.patch (bsc#1125950)
  + Write the udev rules to a different file than the default
  + Settle udev if not all configured devices are in the device tree to
    avoid race condition between udev and cloud-init

  + Fix the order of calls, the SUSE implementation of route config file

OBS-URL: https://build.opensuse.org/request/show/699769
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=58
2019-05-03 20:23:07 +00:00
23723c1216 - Update cloud-init-write-routes.patch (bsc#1132692)
+ Properly accumulate all the defined routes for a given network device.
    Previously only the last defined route was written to the routes file.

- Update cloud-init-trigger-udev.patch (bsc#1125950)
  + Write the udev rules to a different file than the default
  + Settle udev if not all configured devices are in the device tree to
    avoid race condition between udev and cloud-init
  + Fix the order of calls, the SUSE implementation of route config file

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=137
2019-04-30 20:39:13 +00:00
Stephan Kulow
40dff8d618 Accepting request 678302 from Cloud:Tools
- Add cloud-init-trigger-udev.patch (bsc#1125950)
  + When the user configures a new rules file for network devices
    the rules may not apply immediately, trigger udevadm

- Modify cloud-init-write-routes.patch (bsc#1125992)
  + Fix the order of calls, the SUSE imaplementation of route config file
    writing must clobber the default implementation.

- Add cloud-init-proper-ipv6-varname.patch (bsc#1126101)
  + Use the proper name to designate IPv6 addresses in ifcfg-* files

OBS-URL: https://build.opensuse.org/request/show/678302
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=57
2019-02-28 20:24:27 +00:00
f30a915a55 - Add cloud-init-trigger-udev.patch (bsc#1125950)
+ When the user configures a new rules file for network devices
    the rules may not apply immediately, trigger udevadm

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=136
2019-02-22 22:18:27 +00:00
64e78007b9 - Modify cloud-init-write-routes.patch (bsc#1125992)
+ Fix the order of calls, the SUSE imaplementation of route config file
    writing must clobber the default implementation.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=135
2019-02-22 16:22:45 +00:00
ba0d82f7d8 - Add cloud-init-proper-ipv6-varname.patch (bsc#1126101)
+ Use the proper name to designate IPv6 addresses in ifcfg-* files

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=134
2019-02-22 00:43:56 +00:00
Stephan Kulow
15110b1354 Accepting request 670422 from Cloud:Tools
- Modify cloud-init-write-routes.patch (boo#1123694)
  + Drop a '-' in the route file for the last column

OBS-URL: https://build.opensuse.org/request/show/670422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=56
2019-02-08 11:06:58 +00:00
e833f3b188 - Modify cloud-init-write-routes.patch (boo#1123694)
+ Drop a '-' in the route file for the last column

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=133
2019-01-31 17:15:08 +00:00
0349f08ea9 Accepting request 668094 from Cloud:Tools
- Add cloud-init-no-empty-resolv.patch (bsc#1119397)

- Update to version 18.5 (bsc#1121878, boo#1116767)
  + 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
    included upstream
  + Forward port cloud-init-sysconf-ethsetup.patch
  + Add cloud-init-write-routes.patch
  + Add cloud-init-handle-def-route-set.patch
  + tests: add Disco release [Joshua Powers]
  + net: render 'metric' values in per-subnet routes (LP: #1805871)
  + write_files: add support for appending to files. [James Baxter]
  + config: On ubuntu select cloud archive mirrors for armel, armhf, arm64.
    (LP: #1805854)
  + dhclient-hook: cleanups, tests and fix a bug on 'down' event.
  + NoCloud: Allow top level 'network' key in network-config. (LP: #1798117)
  + ovf: Fix ovf network config generation gateway/routes (LP: #1806103)
  + azure: detect vnet migration via netlink media change event
    [Tamilmani Manoharan]
  + Azure: fix copy/paste error in error handling when reading azure ovf.
  + [Adam DePue]
  + tests: fix incorrect order of mocks in test_handle_zfs_root.
  + doc: Change dns_nameserver property to dns_nameservers. [Tomer Cohen]
  + OVF: identify label iso9660 filesystems with label 'OVF ENV'.
  + logs: collect-logs ignore instance-data-sensitive.json on non-root user
    (LP: #1805201)
  + net: Ephemeral*Network: add connectivity check via URL
  + azure: _poll_imds only retry on 404. Fail on Timeout (LP: #1803598)

OBS-URL: https://build.opensuse.org/request/show/668094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=55
2019-01-24 13:15:09 +00:00
c53e82e288 - Fix it again, duh
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=132
2019-01-23 13:40:34 +00:00
99ef69f82c - Fix patch, duh
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=131
2019-01-23 13:32:41 +00:00
cf38f0cf58 - ADd lp bug number as reference
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=130
2019-01-22 13:13:14 +00:00
343fb12d7e - Add cloud-init-no-empty-resolv.patch (bsc#1119397)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=129
2019-01-22 13:07:42 +00:00
3664ce1659 - Write dashes to ifroute-* files
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=128
2019-01-21 13:28:00 +00:00
8d961f3718 + Add cloud-init-handle-def-route-set.patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=127
2019-01-19 22:32:31 +00:00
23997f352e - Duh, actually remove the patches
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=126
2019-01-18 10:00:43 +00:00
1064b17095 - Update to version 18.5 (bsc#1121878, boo#1116767)
+ 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
    included upstream
  + Forward port cloud-init-sysconf-ethsetup.patch
  + Add cloud-init-write-routes.patch
  + tests: add Disco release [Joshua Powers]
  + net: render 'metric' values in per-subnet routes (LP: #1805871)
  + write_files: add support for appending to files. [James Baxter]
  + config: On ubuntu select cloud archive mirrors for armel, armhf, arm64.
    (LP: #1805854)
  + dhclient-hook: cleanups, tests and fix a bug on 'down' event.
  + NoCloud: Allow top level 'network' key in network-config. (LP: #1798117)
  + ovf: Fix ovf network config generation gateway/routes (LP: #1806103)
  + azure: detect vnet migration via netlink media change event
    [Tamilmani Manoharan]
  + Azure: fix copy/paste error in error handling when reading azure ovf.
  + [Adam DePue]
  + tests: fix incorrect order of mocks in test_handle_zfs_root.
  + doc: Change dns_nameserver property to dns_nameservers. [Tomer Cohen]
  + OVF: identify label iso9660 filesystems with label 'OVF ENV'.
  + logs: collect-logs ignore instance-data-sensitive.json on non-root user
    (LP: #1805201)
  + net: Ephemeral*Network: add connectivity check via URL
  + azure: _poll_imds only retry on 404. Fail on Timeout (LP: #1803598)
  + resizefs: Prefix discovered devpath with '/dev/' when path does not
    exist [Igor Galić]
  + azure: retry imds polling on requests.Timeout (LP: #1800223)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=125
2019-01-18 09:50:54 +00:00
d8c0fcb2ba Accepting request 646077 from Cloud:Tools
- Add cloud-init-ostack-metadat-dencode.patch (bsc#1101894)

- Add cloud-init-static-net.patch (boo#1114160)

OBS-URL: https://build.opensuse.org/request/show/646077
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=54
2018-11-05 21:54:45 +00:00
a76ae619ee - Add cloud-init-ostack-metadat-dencode.patch (bsc#1101894)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=124
2018-11-02 14:21:08 +00:00
37fdad8a72 - Add cloud-init-static-net.patch (boo#1114160)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=123
2018-10-31 14:41:17 +00:00
c952884add Accepting request 644740 from Cloud:Tools
- Update to version 18.4 (bsc#1087331, bsc#1097388, boo#1111427, bsc#1095627)
  + Remove cloud-init-no-user-lock-if-already-locked.patch
    cloud-init 18.4 is not supported on SLE 11 code base
  + Remove 0001-Support-chrony-configuration-lp-1731619.patch
    Included upstream
  + Remove 0003-Distro-dependent-chrony-config-file.patch
    Included upstream
  + Remove 0001-switch-to-using-iproute2-tools.patch
    Included upstream
  + Remove cloud-init-no-python-linux-dist.patch
    Included upstream
  + Remove cloud-init-no-trace-empt-sect.patch
    Included upstream
  + Remove cloud-init-setpath-dsitentify.patch
    Included upstream
  + Modify fix-default-systemd-unit-dir.patch
    Use pkg-config, only modify the generator
  + Remove cloud-init-sysconfig-netpathfix.patch
    Fixed upstream
  + Removed cloud-init-skip-ovf-tests.patch
    Fixed upstream
  + Removed cloud-init-translate-netconf-ipv4-keep-gw.patch
    Fixed upstream
  + Add cloud-init-template-py2.patch avoid Python 3 dependency when we build
    for distros with Python 2 support
  + Add 0001-Follow-the-ever-bouncing-ball-for-openSUSE-distribut.patch
  + Add 0002-Add-tests-for-additional-openSUSE-distro-condition-m.patch
  + Add cloud-init-sysconf-path.patch
  + Add cloud-init-sysconf-ethsetup.patch
  + Add 0001-Fix-the-service-order-for-SUSE-distributions.patch

OBS-URL: https://build.opensuse.org/request/show/644740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=53
2018-10-29 13:21:17 +00:00
918a07b99b - Remove unused weiward patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=122
2018-10-25 21:33:32 +00:00
3ed6919cb4 - Update to version 18.4 (bsc#1087331, bsc#1097388, boo#1111427, bsc#1095627)
+ Remove cloud-init-no-user-lock-if-already-locked.patch
    cloud-init 18.4 is not supported on SLE 11 code base
  + Remove 0001-Support-chrony-configuration-lp-1731619.patch
    Included upstream
  + Remove 0003-Distro-dependent-chrony-config-file.patch
    Included upstream
  + Remove 0001-switch-to-using-iproute2-tools.patch
    Included upstream
  + Remove cloud-init-no-python-linux-dist.patch
    Included upstream
  + Remove cloud-init-no-trace-empt-sect.patch
    Included upstream
  + Remove cloud-init-setpath-dsitentify.patch
    Included upstream
  + Modify fix-default-systemd-unit-dir.patch
    Use pkg-config, only modify the generator
  + Remove cloud-init-sysconfig-netpathfix.patch
    Fixed upstream
  + Removed cloud-init-skip-ovf-tests.patch
    Fixed upstream
  + Removed cloud-init-translate-netconf-ipv4-keep-gw.patch
    Fixed upstream
  + Add cloud-init-template-py2.patch avoid Python 3 dependency when we build
    for distros with Python 2 support
  + Add 0001-Follow-the-ever-bouncing-ball-for-openSUSE-distribut.patch
  + Add 0002-Add-tests-for-additional-openSUSE-distro-condition-m.patch
  + Add cloud-init-sysconf-path.patch
  + Add cloud-init-sysconf-ethsetup.patch
  + Add 0001-Fix-the-service-order-for-SUSE-distributions.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=121
2018-10-25 18:58:19 +00:00
6c4efe240a - Add a modified version of fix-default-systemd-unit-dir.patch
+ Removed pre-maturely, still needs 1 part of the patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=120
2018-08-24 21:43:32 +00:00
7010c372a1 - Remove fix-default-systemd-unit-dir.patch
+ No longer needed, proper systemd config dir is queried from pckg-config

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=119
2018-08-24 19:30:11 +00:00
7e9523e8e3 - Remove trailing endif
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=118
2018-07-05 18:29:02 +00:00
8d7f0cbbcb - The distribution inidcator is set to suse during template expansion,
we do not replace anything set to ubuntu
- Do not run cloud-init after network-online, this breaks functionality in
  cloud-init. Certain parts of the code running in this phase expect to run
  before the network is on-line. This "re-introduces" boo#1097388. But the
  changes made are not generic enough.
- Root should not be enabled by default. For image builders/users that want
  root access by default they should provide an appropriate configuration
  file during image build or image setup

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=117
2018-07-05 18:00:50 +00:00
2c6cb5534d Run metadata detection after network-online (boo#1097388)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=116
2018-06-28 13:45:43 +00:00
6802141718 - do not disable root user to make it easier to work with
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=115
2018-06-28 13:35:10 +00:00
009866fc9d Let distribution default to opensuse/sles (boo#1099340)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=114
2018-06-27 15:45:17 +00:00
a3bf6024e3 Accepting request 611409 from Cloud:Tools
- Re-add generator (bsc#1089824, boo#1093501)
  + Add cloud-init-setpath-dsitentify.patch, upstream solution to
    hanle PATH issue
  + Re-enable th egenerator to reduce effort in cloud-init configuration

OBS-URL: https://build.opensuse.org/request/show/611409
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=52
2018-05-23 14:09:30 +00:00
0edc4d2a0e - Re-add generator (bsc#1089824, boo#1093501)
+ Add cloud-init-setpath-dsitentify.patch, upstream solution to
    hanle PATH issue
  + Re-enable th egenerator to reduce effort in cloud-init configuration

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=113
2018-05-22 19:44:33 +00:00
cb26e87bdc Accepting request 609843 from Cloud:Tools
- Drop the generator (bsc#1089824, boo#1093501)
  + The generator spawns a script called ds-identify which in turn calls
    blkid. When the generator executes the environment may or may not be
    ready. The generator speeds up the boot process in cases where
    cloud-init is enabled but we are not in an environment where cloud-init
    should run -> Don't do that.

- Update to version 18.2 (bsc#1092637, bsc#1084509)

OBS-URL: https://build.opensuse.org/request/show/609843
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=51
2018-05-16 16:46:53 +00:00
9ef5d09e98 - Drop the generator (bsc#1089824, boo#1093501)
+ The generator spawns a script called ds-identify which in turn calls
    blkid. When the generator executes the environment may or may not be
    ready. The generator speeds up the boot process in cases where
    cloud-init is enabled but we are not in an environment where cloud-init
    should run -> Don't do that.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=112
2018-05-16 15:27:17 +00:00
a60ee52798 Accepting request 607053 from Cloud:Tools
- Update to version 18.1 (bsc#1092637, bsc#1084509)
  + Forward port cloud-init-python2-sigpipe.patch
  + Forward port cloud-init-no-python-linux-dist.patch
  + Add cloud-init-no-trace-empt-sect.patch
  + Hetzner: Exit early if dmi system-manufacturer is not Hetzner.
  + Add missing dependency on isc-dhcp-client to trunk ubuntu packaging.
  + (LP: #1759307)
  + FreeBSD: resizefs module now able to handle zfs/zpool.
  + [Dominic Schlegel] (LP: #1721243)
  + cc_puppet: Revert regression of puppet creating ssl and ssl_cert dirs
  + Enable IBMCloud datasource in settings.py.
  + IBMCloud: Initial IBM Cloud datasource.
  + tests: remove jsonschema from xenial tox environment.
  + tests: Fix newly added schema unit tests to skip if no jsonschema.
  + ec2: Adjust ec2 datasource after exception_cb change.
  + Reduce AzurePreprovisioning HTTP timeouts.
  + [Douglas Jordan] (LP: #1752977)
  + Revert the logic of exception_cb in read_url.
  + [Kurt Garloff] (LP: #1702160, #1298921)
  + ubuntu-advantage: Add new config module to support
  + ubuntu-advantage-tools
  + Handle global dns entries in netplan (LP: #1750884)
  + Identify OpenTelekomCloud Xen as OpenStack DS.
  + [Kurt Garloff] (LP: #1756471)
  + datasources: fix DataSource subclass get_hostname method signature
  + (LP: #1757176)
  + OpenNebula: Update network to return v2 config rather than ENI.
  + [Akihiko Ota]
  + Add Hetzner Cloud DataSource
  + net: recognize iscsi root cases without ip= on kernel command line.

OBS-URL: https://build.opensuse.org/request/show/607053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=50
2018-05-15 08:15:58 +00:00
07647c7388 - Update to version 18.2 (bsc#1092637, bsc#1084509)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=111
2018-05-14 16:36:19 +00:00
c083c6be27 - Update to version 18.1 (bsc#1092637, bsc#1084509)
+ Forward port cloud-init-python2-sigpipe.patch
  + Forward port cloud-init-no-python-linux-dist.patch
  + Add cloud-init-no-trace-empt-sect.patch
  + Hetzner: Exit early if dmi system-manufacturer is not Hetzner.
  + Add missing dependency on isc-dhcp-client to trunk ubuntu packaging.
  + (LP: #1759307)
  + FreeBSD: resizefs module now able to handle zfs/zpool.
  + [Dominic Schlegel] (LP: #1721243)
  + cc_puppet: Revert regression of puppet creating ssl and ssl_cert dirs
  + Enable IBMCloud datasource in settings.py.
  + IBMCloud: Initial IBM Cloud datasource.
  + tests: remove jsonschema from xenial tox environment.
  + tests: Fix newly added schema unit tests to skip if no jsonschema.
  + ec2: Adjust ec2 datasource after exception_cb change.
  + Reduce AzurePreprovisioning HTTP timeouts.
  + [Douglas Jordan] (LP: #1752977)
  + Revert the logic of exception_cb in read_url.
  + [Kurt Garloff] (LP: #1702160, #1298921)
  + ubuntu-advantage: Add new config module to support
  + ubuntu-advantage-tools
  + Handle global dns entries in netplan (LP: #1750884)
  + Identify OpenTelekomCloud Xen as OpenStack DS.
  + [Kurt Garloff] (LP: #1756471)
  + datasources: fix DataSource subclass get_hostname method signature
  + (LP: #1757176)
  + OpenNebula: Update network to return v2 config rather than ENI.
  + [Akihiko Ota]
  + Add Hetzner Cloud DataSource
  + net: recognize iscsi root cases without ip= on kernel command line.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=110
2018-05-11 20:14:40 +00:00
64e80bc062 Accepting request 591769 from Cloud:Tools
- Update to version 18.1 (bsc#1085787, bsc#1084749)
  + Forward port cloud-init-python2-sigpipe.patch
  + Forward port 0003-Distro-dependent-chrony-config-file.patch
    partial integration into 0001-Support-chrony-configuration-lp-1731619.patch
  + Forward port cloud-init-no-python-linux-dist.patch
  + Remove 0002-Disable-method-deprecation-warning-for-pylint.patch
    use new cloud-init internal distro detection code
  + Remove cloud-init-resize-ro-btrfs.patch included upstream
  + Remove 0001-Set-syslog_fix_perms-for-SUSE-distro-addresses-bsc-1.patch
    included upstream
  + OVF: Fix VMware support for 64-bit platforms. [Sankar Tanguturi]
  + ds-identify: Fix searching for iso9660 OVF cdroms. (LP: #1749980)
  + SUSE: Fix groups used for ownership of cloud-init.log [Robert Schweikert]
  + ds-identify: check /writable/system-data/ for nocloud seed.
    (LP: #1747070)
  + tests: run nosetests in cloudinit/ directory, fix py26 fallout.
  + tools: run-centos: git clone rather than tar.
  + tests: add support for logs with lxd from snap and future lxd 3.
    (LP: #1745663)
  + EC2: Fix get_instance_id called against cached datasource pickle.
    (LP: #1748354)
  + cli: fix cloud-init status to report running when before result.json
    (LP: #1747965)
  + net: accept network-config in netplan format for renaming interfaces
    (LP: #1709715)
  + Fix ssh keys validation in ssh_util [Tatiana Kholkina]
  + docs: Update RTD content for cloud-init subcommands.
  + OVF: Extend well-known labels to include OVFENV. (LP: #1698669)
  + Fix potential cases of uninitialized variables. (LP: #1744796)
  + tests: Collect script output as binary, collect systemd journal, fix lxd.

OBS-URL: https://build.opensuse.org/request/show/591769
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=49
2018-03-28 08:34:25 +00:00
9eb10721c4 - Update to version 18.1 (bsc#1085787, bsc#1084749)
+ Forward port cloud-init-python2-sigpipe.patch
  + Forward port 0003-Distro-dependent-chrony-config-file.patch
    partial integration into 0001-Support-chrony-configuration-lp-1731619.patch
  + Forward port cloud-init-no-python-linux-dist.patch
  + Remove 0002-Disable-method-deprecation-warning-for-pylint.patch
    use new cloud-init internal distro detection code
  + Remove cloud-init-resize-ro-btrfs.patch included upstream
  + Remove 0001-Set-syslog_fix_perms-for-SUSE-distro-addresses-bsc-1.patch
    included upstream
  + OVF: Fix VMware support for 64-bit platforms. [Sankar Tanguturi]
  + ds-identify: Fix searching for iso9660 OVF cdroms. (LP: #1749980)
  + SUSE: Fix groups used for ownership of cloud-init.log [Robert Schweikert]
  + ds-identify: check /writable/system-data/ for nocloud seed.
    (LP: #1747070)
  + tests: run nosetests in cloudinit/ directory, fix py26 fallout.
  + tools: run-centos: git clone rather than tar.
  + tests: add support for logs with lxd from snap and future lxd 3.
    (LP: #1745663)
  + EC2: Fix get_instance_id called against cached datasource pickle.
    (LP: #1748354)
  + cli: fix cloud-init status to report running when before result.json
    (LP: #1747965)
  + net: accept network-config in netplan format for renaming interfaces
    (LP: #1709715)
  + Fix ssh keys validation in ssh_util [Tatiana Kholkina]
  + docs: Update RTD content for cloud-init subcommands.
  + OVF: Extend well-known labels to include OVFENV. (LP: #1698669)
  + Fix potential cases of uninitialized variables. (LP: #1744796)
  + tests: Collect script output as binary, collect systemd journal, fix lxd.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=109
2018-03-25 17:01:07 +00:00
6fc02fc32c Accepting request 577256 from Cloud:Tools
- update cloud-init-sysconfig-netpathfix.patch:
  * skip checking for files in /etc/sysconfig that never exist
  on a wickedd based system

OBS-URL: https://build.opensuse.org/request/show/577256
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=48
2018-02-16 20:46:26 +00:00
ed9aa9f0d8 - update cloud-init-sysconfig-netpathfix.patch:
* skip checking for files in /etc/sysconfig that never exist
  on a wickedd based system

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=108
2018-02-16 13:24:07 +00:00
99e541cc85 Accepting request 576385 from Cloud:Tools
- Fix logfile permission settings (bsc#1080595)
  + Add 0001-Set-syslog_fix_perms-for-SUSE-distro-addresses-bsc-1.patch

OBS-URL: https://build.opensuse.org/request/show/576385
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=47
2018-02-14 09:52:26 +00:00
00cc602280 - Fix logfile permission settings (bsc#1080595)
+ Add 0001-Set-syslog_fix_perms-for-SUSE-distro-addresses-bsc-1.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=107
2018-02-13 19:43:58 +00:00
697db804a2 Accepting request 571062 from Cloud:Tools
- drop dependency on boto (only used in examples, and
  should really be ported to botocore/boto3 instead)

- Update to version 17.2 (boo#1069635, bsc#1072811)
  + Add cloud-init-skip-ovf-tests.patch
  + Add cloud-init-no-python-linux-dist.patch
  + Add 0001-switch-to-using-iproute2-tools.patch
  + Add 0001-Support-chrony-configuration-lp-1731619.patch
  + Add 0002-Disable-method-deprecation-warning-for-pylint.patch
  + Add 0003-Distro-dependent-chrony-config-file.patch
  + removed cloud-init-add-variant-cloudcfg.patch replaced by
    cloud-init-no-python-linux-dist.patch
  + removed zypp_add_repos.diff included upstream
  + removed zypp_add_repo_test.patch included upstream
  + removed cloud-init-hosts-template.patch included upstream
  + removed cloud-init-more-tasks.patch included upstream
  + removed cloud-init-final-no-apt.patch included upstream
  + removed cloud-init-ntp-conf-suse.patch included upstream
  + removed cloud-init-break-cycle-local-service.patch included upstream
  + removed cloud-init-reproduce-build.patch included upstream
  + For the complete changelog see https://launchpad.net/cloud-init/trunk/17.2

OBS-URL: https://build.opensuse.org/request/show/571062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=46
2018-01-30 14:46:07 +00:00
7c005924d3 - drop dependency on boto (only used in examples, and
should really be ported to botocore/boto3 instead)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=106
2018-01-30 13:21:16 +00:00
fb31094f97 - Update to version 17.2 (boo#1069635, bsc#1072811)
+ Add cloud-init-skip-ovf-tests.patch
  + Add cloud-init-no-python-linux-dist.patch
  + Add 0001-switch-to-using-iproute2-tools.patch
  + Add 0001-Support-chrony-configuration-lp-1731619.patch
  + Add 0002-Disable-method-deprecation-warning-for-pylint.patch
  + Add 0003-Distro-dependent-chrony-config-file.patch
  + removed cloud-init-add-variant-cloudcfg.patch replaced by
    cloud-init-no-python-linux-dist.patch
  + removed zypp_add_repos.diff included upstream
  + removed zypp_add_repo_test.patch included upstream
  + removed cloud-init-hosts-template.patch included upstream
  + removed cloud-init-more-tasks.patch included upstream
  + removed cloud-init-final-no-apt.patch included upstream
  + removed cloud-init-ntp-conf-suse.patch included upstream
  + removed cloud-init-break-cycle-local-service.patch included upstream
  + removed cloud-init-reproduce-build.patch included upstream
  + For the complete changelog see https://launchpad.net/cloud-init/trunk/17.2

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=105
2018-01-29 21:11:23 +00:00
588515308f Accepting request 569384 from Cloud:Tools
- patch distribution detection until a fix is delivered to python3 (bsc#997614)
  add cloud-init-add-variant-cloudcfg.patch

OBS-URL: https://build.opensuse.org/request/show/569384
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=45
2018-01-25 11:40:57 +00:00
4ecd177c3e add cloud-init-add-variant-cloudcfg.patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=104
2018-01-24 20:31:20 +00:00
b8b0f503ea Accepting request 568727 from home:gmoro:branches:Cloud:Tools
- patch distribution detection until a fix is delivered to python3 (bsc#997614)

OBS-URL: https://build.opensuse.org/request/show/568727
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=103
2018-01-24 20:28:15 +00:00
d326454b18 Accepting request 566429 from Cloud:Tools
OBS-URL: https://build.opensuse.org/request/show/566429
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=44
2018-01-17 20:57:58 +00:00
6ee1dc660c Accepting request 566321 from home:dimstar:Factory
- Fix usage of fdupes macro: there is no '-n' parameter to the
  macro (there would be to fdupes, the command, though).

Removing -n here results in the same package we had before; RPM prior to 4.14 reported this as warning in the buildlog, RPM 4.14 now marks it as error.

OBS-URL: https://build.opensuse.org/request/show/566321
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=102
2018-01-16 13:57:10 +00:00
a2137d41ee Accepting request 556684 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/556684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=43
2017-12-14 10:03:05 +00:00
529dfe1b71 - Add cloud-init-reproduce-build.patch (boo#1069635)
+ Make builds reproducible

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=101
2017-12-06 13:10:41 +00:00
2041458081 Accepting request 546125 from Cloud:Tools
- Add cloud-init-resize-ro-btrfs.patch
  + cc_resizefs fails if the current root is a read-only btrfs
    subvolume, use an always writeable subvolume instead [bsc#1042913]

OBS-URL: https://build.opensuse.org/request/show/546125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=42
2017-11-29 09:53:57 +00:00
cd1e7e121f - Apply patch 36 for building
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=100
2017-11-28 00:17:10 +00:00
4f395199c1 Accepting request 545985 from home:kukuk:branches:Cloud:Tools
- Add cloud-init-resize-ro-btrfs.patch
  + cc_resizefs fails if the current root is a read-only btrfs
    subvolume, use an always writeable subvolume instead [bsc#1042913]

OBS-URL: https://build.opensuse.org/request/show/545985
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=99
2017-11-27 23:54:11 +00:00
db79f76cde Accepting request 543937 from Cloud:Tools
- Add cloud-init-break-cycle-local-service.patch
  + Let systemd pull in the default targets. This breaks a cycle

- Fix variable name in cloud-init-translate-netconf-ipv4-keep-gw.patch

- Add cloud-init-translate-netconf-ipv4-keep-gw.patch (boo#1064854)
  + Properly insert the gateway information for v1 json network config data

- Add cloud-init-ntp-conf-suse.patch
  + ntp configuration was broken on sles and opensuse lp#1726572

- Add cloud-init-hosts-template.patch (bsc#1064594)
  + Properly expand the /etc/hosst file when manage_etc_hosts is set

OBS-URL: https://build.opensuse.org/request/show/543937
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=41
2017-11-21 14:33:52 +00:00
cc9a47a4b7 - Add cloud-init-translate-netconf-ipv4-keep-gw.patch (boo#1064854)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=98
2017-11-19 21:10:16 +00:00
100e3dffbf - Add cloud-init-break-cycle-local-service.patch
+ Let systemd pull in the default targets. This breaks a cycle

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=97
2017-11-19 20:45:04 +00:00
7a8b456518 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=96 2017-11-17 18:55:19 +00:00
fa9ea3d43e - Fix variable name in cloud-init-translate-netconf-ipv4-keep-gw.patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=95
2017-11-17 17:10:35 +00:00
56e2c9145a - Add cloud-init-translate-netconf-ipv4-keep-gw.patch (bsc#1064854)
+ Properly insert the gateway information for v1 json network config data

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=94
2017-11-16 22:51:16 +00:00
e03ed2d736 - Add cloud-init-ntp-conf-suse.patch
+ ntp configuration was broken on sles and opensuse lp#1726572

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=93
2017-11-11 12:33:43 +00:00
6927c014db - Add cloud-init-hosts-template.patch (bsc#1064594)
+ Properly expand the /etc/hosst file when manage_etc_hosts is set

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=92
2017-11-08 21:31:54 +00:00
45a3cf07eb Accepting request 538365 from Cloud:Tools
- Fix sed expression to set distro properly (boo#1063716)

- Update to version 17.1 (bsc#1035106)
  + Version numbering scheme change now YY.NUMBER_OF_RELESE_THAT_YEAR
  + Remove cloud.cfg.suse, use generated default config file
  + Remove addopenSUSEBase.patch, included upstream
  + Remove suseIntegratedHandler.patch, included upstream
  + Remove openSUSEhostsTemplate.diff, included upstream
  + Remove cloud-init-handle-no-carrier.patch, included upstream
  + Remove cloud-init-digital-ocean-datasource.patch,
    use upstream implementation
  + Remove cloud-init-digital-ocean-datasource-enable-by-default.patch,
    use upstream implementation
  + Remove cloud-init-fix-unicode-handling-binarydecode.patch,
    included upstream
  + Remove cloud-init-no-dmidecode-on-ppc64.patch, included upstream
  + 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-handle-not-implemented-query.patch, query option removed
  + Remove cloud-init-spceandtabs-clean.patch, indentation fixed upstream
  + Remove dynamicInitCmd.diff, different solution from upstream
  + Added cloud-init-more-tasks.patch, (bsc#1047363)
    replace cloud-init-finalbeforelogin.patch
  + Forward port cloud-init-python2-sigpipe.patch
  + Remove cloud-init-net-eni.patch, included upstream
  + Remove cloud-init-service.patch, included upstream
  + Forward port cloud-init-sysconfig-netpathfix.patch
  + Remove cloud-init-net-sysconfig-lp1665441.patch, included upstream

OBS-URL: https://build.opensuse.org/request/show/538365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=40
2017-11-03 15:28:01 +00:00
f65f28891b - Fix sed expression to set distro properly (boo#1063716)
+ Remove suseSysVInit.diff, included upstream

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=91
2017-11-02 13:34:18 +00:00
b710a65ad2 + Remove skip-argparse-on-python3.patch
+ Add zypp_add_repo_test.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=90
2017-10-05 05:21:11 +00:00
df5785e52d - Update to version 17.1 (bsc#1035106)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=89
2017-10-05 03:37:38 +00:00
738f268769 - Update to version 17.1
+ Version numbering scheme change now YY.NUMBER_OF_RELESE_THAT_YEAR
  + Remove cloud.cfg.suse, use generated default config file
  + Remove addopenSUSEBase.patch, included upstream
  + Remove suseIntegratedHandler.patch, included upstream
  + Remove openSUSEhostsTemplate.diff, included upstream
  + Remove cloud-init-handle-no-carrier.patch, included upstream
  + Remove cloud-init-digital-ocean-datasource.patch,
    use upstream implementation
  + Remove cloud-init-digital-ocean-datasource-enable-by-default.patch,
    use upstream implementation
  + Remove cloud-init-fix-unicode-handling-binarydecode.patch,
    included upstream
  + Remove cloud-init-no-dmidecode-on-ppc64.patch, included upstream
  + 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-handle-not-implemented-query.patch, query option removed
  + Remove cloud-init-spceandtabs-clean.patch, indentation fixed upstream
  + Remove dynamicInitCmd.diff, different solution from upstream
  + Added cloud-init-more-tasks.patch, (bsc#1047363)
    replace cloud-init-finalbeforelogin.patch
  + Forward port cloud-init-python2-sigpipe.patch
  + Remove cloud-init-net-eni.patch, included upstream
  + Remove cloud-init-service.patch, included upstream
  + Forward port cloud-init-sysconfig-netpathfix.patch
  + Remove cloud-init-net-sysconfig-lp1665441.patch, included upstream
  + Remove cloud-init-python26.patch, included upstream
  + Add cloud-init-tests-set-exec.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=88
2017-10-04 15:50:46 +00:00
f6b14a20b8 Accepting request 527526 from Cloud:Tools
- add skip-argparse-on-python3.patch: don't depend on argparse
  for python3, it is builtin there (as of python 3.2, so the
  patch should be good enough)

OBS-URL: https://build.opensuse.org/request/show/527526
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=39
2017-09-20 15:14:12 +00:00
40312f95d8 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=87 2017-09-20 12:14:39 +00:00
606be11fa1 - add skip-argparse-on-python3.patch: don't depend on argparse
for python3, it is builtin there (as of python 3.2, so the
  patch should be good enough)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=86
2017-09-20 10:15:01 +00:00
250140c9eb Accepting request 527050 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/527050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=38
2017-09-19 15:35:23 +00:00
c46fc7308d Accepting request 526948 from home:kukuk:branches:Cloud:Tools
- python_sitelib does not seem to exist for non single-spec
  python modules, use python2_sitelib and python3_sitelib instead.

OBS-URL: https://build.opensuse.org/request/show/526948
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=85
2017-09-18 14:45:35 +00:00
e6b386982d Accepting request 523370 from Cloud:Tools
- Drop python-cheetah as requirement
  + Cheetah is no maintained and cloud-init switches to Jinja2 as
    templating engine if Cheetah is not available
- Drop argparse as dependency for Py3 build
  + argparse is built into Python

- Modify cloud-init-finalbeforelogin.patch (bsc#1047363)
  + Support user processes running in coud-init-final to consume a
    large number of threads.
- Modify cloud-init-service.patch (bsc#1055649)
  + Start after dbus.service, needed by hotnamectl
- Modify cloud-init-handle-not-implemented-query.patch
  + print needs () for Python3
- Add cloud-init-spceandtabs-clean.patch
  + Fix inconsistent use of spaces and tabs in various files
- Modify suseIntegratedHandler.patch
  + Fix mode setting passed to function for file writing
- Set packag up to build with Python 3 for distros later than SLE 12

OBS-URL: https://build.opensuse.org/request/show/523370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=37
2017-09-12 17:56:07 +00:00
dc611ddc9e - Drop argparse as dependency for Py3 build
+ argparse is built into Python

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=84
2017-09-11 18:25:17 +00:00
520d9897a2 - Drop python-cheetah as requirement
+ Cheetah is no maintained and cloud-init switches to Jinja2 as
    templating engine if Cheetah is not available

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=83
2017-09-11 18:23:14 +00:00
315f729f37 - Modify cloud-init-finalbeforelogin.patch (bsc#1047363)
+ Support user processes running in coud-init-final to consume a
    large number of threads.
- Modify cloud-init-service.patch (bsc#1055649)
  + Start after dbus.service, needed by hotnamectl
- Modify cloud-init-handle-not-implemented-query.patch
  + print needs () for Python3
- Add cloud-init-spceandtabs-clean.patch
  + Fix inconsistent use of spaces and tabs in various files
- Modify suseIntegratedHandler.patch
  + Fix mode setting passed to function for file writing
- Set packag up to build with Python 3 for distros later than SLE 12

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=82
2017-08-31 20:02:18 +00:00
9e9fc2359a Accepting request 479042 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/479042
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=36
2017-03-16 08:41:47 +00:00
05e6d5eec2 Accepting request 478652 from home:kukuk:branches:Cloud:Tools
- On Tumbleweed we need net-tools-deprecated to setup the network

OBS-URL: https://build.opensuse.org/request/show/478652
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=81
2017-03-13 13:21:58 +00:00
f783a08ce7 Accepting request 477254 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/477254
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=35
2017-03-12 19:01:49 +00:00
95c27c2348 Accepting request 460303 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/460303
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=34
2017-03-02 18:30:12 +00:00
0875a89e89 - add cloud-init-net-sysconfig-lp1665441.patch (lp#1665441)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=80
2017-02-27 11:56:24 +00:00
12fd4cfe01 Accepting request 459170 from home:kukuk:branches:Cloud:Tools
- Don't call insserv if we use systemd

OBS-URL: https://build.opensuse.org/request/show/459170
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=79
2017-02-24 20:32:54 +00:00
901117ec0e - Fix tab issue in patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=78
2017-02-17 12:41:14 +00:00
d77b515e86 - Do not set mount options for ephemeral drive, use the defaults
that are built into the code (bsc#930524)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=77
2017-02-16 20:57:30 +00:00
5c5fa1bc9c - Update fix-default-systemd-unit-dir.patch (bsc#1024709)
+ based on work by Thomas Abraham
- Add cloud-init-handle-not-implemented-query.patch (boo#1017832)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=76
2017-02-16 19:42:20 +00:00
1d7f0a7f70 Accepting request 452043 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/452043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=33
2017-01-24 09:42:58 +00:00
c332cc9b7b Accepting request 452032 from home:kukuk:branches:Cloud:Tools
- Require net-tools for network setup

net-tools are no longer installed by default on Tumbleweed,
so network setup will not work otherwise.

OBS-URL: https://build.opensuse.org/request/show/452032
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=75
2017-01-23 21:09:34 +00:00
81acd45fdf Accepting request 445795 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/445795
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=32
2017-01-21 23:26:12 +00:00
bfaae07655 - Configuration split (bsc#1016160)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=74
2016-12-17 13:16:41 +00:00
b820e2a987 Accepting request 445580 from home:kukuk:branches:Cloud:Tools
- fix syntax error in datasource LocalDisk (fix got somehow lost)

OBS-URL: https://build.opensuse.org/request/show/445580
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=73
2016-12-14 14:17:17 +00:00
ccc9212914 - adjust license (as of 0.7.8 AGPL-3.0 was added)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=72
2016-12-12 12:50:46 +00:00
1b1a43da03 - fix unintentional edit in last change again
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=71
2016-12-12 11:25:18 +00:00
ab14e844b6 Accepting request 445076 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/445076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=31
2016-12-10 17:29:58 +00:00
ef7ff0197f Accepting request 445052 from home:jgleissner:branches:Cloud:Tools
fix handling of user maintained hostname

OBS-URL: https://build.opensuse.org/request/show/445052
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=70
2016-12-09 12:50:46 +00:00
0548ac26cd - fix the cloud.cfg split, cyclic non-versioned dependencies are
bad. also fix changelog entries
- add datasourceLocalDisk.patch:
  * Fix datasourceLocalDisk module in case directory exists but is

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=69
2016-12-08 12:36:16 +00:00
60ccce8b3e - Add LocalDisk datasource datasourceLocalDisk.patch [FATE#321107]
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=68
2016-12-06 13:47:20 +00:00
1609354cf9 Accepting request 443055 from home:kukuk:branches:Cloud:Tools
- Fix datasourceLocalDisk module in case directory exists but is
  empty.
- Add Conflicts for otherproviders of cloud-init-config.
- Add require for python-six (used by several modules)
- Add LocalDisk datasource [FATE#321107]
- Reworked zypp_add_repos.diff to behave similar to zypper ar
- Move cloud.cfg into an own sub-package, so that we can have
  a product specific version. [FATE#322039]

OBS-URL: https://build.opensuse.org/request/show/443055
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=67
2016-12-06 13:17:52 +00:00
0f04f406b8 Accepting request 440711 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/440711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=30
2016-11-18 21:01:48 +00:00
a8ad7745b2 Accepting request 440148 from home:kukuk:branches:Cloud:Tools
- Add zypp_add_repos.diff to support repos for zypper [FATE#322038]

OBS-URL: https://build.opensuse.org/request/show/440148
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=66
2016-11-17 14:38:59 +00:00
64856189e6 Accepting request 439242 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/439242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=29
2016-11-12 12:02:31 +00:00
1bf8793650 - Modify suseIntegratedHandler.patch (bsc#1007529)
+ Fall back to the previous method of writing network information
    We have to work out upstream how to have distro specific renderer
    for sysconfig

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=65
2016-11-01 15:58:23 +00:00
4eeb8d512a - Add cloud-init-sysconfig-netpathfix.patch (bsc#1007529)
+ Fix the default path for network scripts
- Cosmetic changes to suseIntegratedHandler.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=64
2016-10-31 12:45:48 +00:00
886d58922f - Another cycle buster
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=63
2016-10-29 19:01:32 +00:00
7d9dabda6a - ALso fix the test in the patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=62
2016-10-29 15:30:42 +00:00
56f8466848 - Update cloud-init-no-dmidecode-on-ppc64.patch (bsc#1005616)
+ aarch64 does support dmidecode

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=61
2016-10-29 13:26:03 +00:00
69c1ec4bb4 - Update cloud-init-service.patch
+ Break another cycle this one in -final

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=60
2016-10-29 12:41:33 +00:00
19c29b64a4 - Update cloud-init-service.patch
+ Better match upstream intend Ubuntu networking.service is equivalent
    to SUSE wicked, thus we cannot translate networking to network, but need
    to translate it to wicked

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=59
2016-10-28 20:16:14 +00:00
ad94d4c4c4 - Update cloud-init-service.patch
+ We need the following order:
    - something brings networking fully up (in our case wicked)
    - cloud-init.service runs
    - network-online.target is reached

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=58
2016-10-28 19:38:58 +00:00
9c42ade550 - Update cloud-init-service.patch
+ The network must be up an running in order to get ssh key injected

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=57
2016-10-28 19:21:24 +00:00
10e8058495 - Update cloud-init-service.patch
+ Had self reference and thus cloud-init.service was never executed
    which caused ssh key loading failure

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=56
2016-10-28 15:24:08 +00:00
163817aa63 Do not own /lib/udev to not conflict with udev rpm
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=55
2016-10-28 04:56:57 +00:00
02e7568f6d - Forward port suseIntegratedHandler.patch
+ Implement new abstract interfaces
  + Some minor implementation fixes

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=54
2016-10-27 19:42:52 +00:00
b0d7643923 - Appease the build service, differences between OBS and IBS,
and own the directories

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=53
2016-10-26 14:28:47 +00:00
d7c17296a2 - Fix package, udev rules should be in /usr for distros after
SLES 11

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=52
2016-10-26 11:32:32 +00:00
3807ecda71 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=51 2016-10-19 14:16:16 +00:00
b273cfa277 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=50 2016-10-19 13:35:58 +00:00
8b2fc9d626 - add cloud-init-digital-ocean-datasource-enable-by-default.patch,
cloud-init-digital-ocean-datasource.patch: add DigitalOcean support
- run tests on build

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=49
2016-10-19 13:24:14 +00:00
1d35d9d69b - Add cloud-init-handle-no-carrier.patch (boo#1003977)
- Handle the exception when attempting to detect if the network
    device is up when it is not

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=48
2016-10-11 15:44:56 +00:00
19290fa432 - Update cloud-init-service.patch (boo#999942)
- Backport upstream commits 3705bb5964a and 6e45ffb21e96

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=47
2016-10-10 20:30:30 +00:00
aca7aa8b6a Accepting request 429511 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/429511
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=28
2016-10-01 22:07:20 +00:00
daf356ec1b - Decoding error (boo#998843)
+ Added cloud-init-fix-unicode-handling-binarydecode.patch
- Fix dependencies, depends on oauthlib instead of oauth
- Fix dataSourceOpenNebula.patch, missing closing paren (boo#998836)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=46
2016-09-15 16:41:25 +00:00
58376ea864 - Fix dataSourceOpenNebula.patch, missing closing paren
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=45
2016-09-14 14:24:42 +00:00
2723c2efbb - Fix typo in cloud-init-service.patch
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=44
2016-09-14 12:25:33 +00:00
8e9fedcf49 - 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 
     translation to Ubuntu-style did not return gateway information to
     opensuse.py
 + added cloud-init-service.patch based on work by eblock
   - The service file cloud-init.service referenced networking.service
     which on SUSE is network.service
 + remove no_logic_change.patch included in updated upstream source
 + forward port suseIntegratedHandler.patch
 + forward port setupSUSEsysVInit.diff
 + forward port cloud-init-no-dmidecode-on-ppc64.patch
 + foward port dataSourceOpenNebula.patch
 + forward port fix-default-systemd-unit-dir.patch
 + forward port cloud-init-finalbeforelogin.patch
 + forward port cloud-init-python2-sigpipe.patch
 + SmartOS: more improvements for network configuration
 + add ntp config module [Ryan Harper]
 + ChangeLog: update changelog for previous commit.
 + Add distro tags on config modules that should have it.
 + NoCloud: fix bug providing network-interfaces via meta-data. (LP: 1577982)
 + ConfigDrive: recognize 'tap' as a link type. (LP: #1610784)
 + Upgrade to a configobj package new enough to work
 + MAAS: add vendor-data support (LP: #1612313)
 + DigitalOcean: use the v1.json endpoint [Ben Howard]
 + Get Azure endpoint server from DHCP client [Brent Baude]
 + Apt: add new apt configuration format [Christian Ehrhardt]
 + distros: fix get_primary_arch method use of os.uname [Andrew Jorgensen]
 + Fix Gentoo net config generation [Matthew Thode]
 + Minor cleanups to atomic_helper and add unit tests.

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=43
2016-09-13 16:56:10 +00:00
205b8307c2 Accepting request 401664 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/401664
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=27
2016-06-14 21:08:41 +00:00
59f2847b9b Accepting request 401599 from home:jgleissner:branches:Cloud:Tools
fixed potential broken pipe error message when executing user script (bsc#903449)

OBS-URL: https://build.opensuse.org/request/show/401599
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=42
2016-06-13 13:10:49 +00:00
60a6dbc83d Accepting request 394743 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/394743
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=26
2016-05-14 10:23:29 +00:00
b41e3c47b4 - Add cloud-init-finalbeforelogin.patch (bsc#978048)
+ Ordering issue, avoid login prompt before cloud-init is finished

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=41
2016-05-03 21:50:58 +00:00
cc978c570e Accepting request 378315 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/378315
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=25
2016-03-26 14:27:12 +00:00
f611116d34 - Update suseIntegratedHandler.patch (bsc#971275)
+ Properly handle the package_upgrade configuration option

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=40
2016-03-15 21:41:30 +00:00
ad1328957f Accepting request 338802 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/338802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=24
2015-10-19 20:51:16 +00:00
08c4979b77 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=39 2015-10-07 09:03:47 +00:00
3f6d27a4ee OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=38 2015-10-07 08:59:42 +00:00
ce8376bbe2 - Add dependency on jinja2 (bsc#948995,bsc#948996)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=37
2015-10-06 11:01:33 +00:00
Stephan Kulow
dc3424e990 Accepting request 315241 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/315241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=23
2015-07-14 15:43:06 +00:00
9a0a74bada - Add no_logic_change.patch to undo upstream logic changes introduced during
style clean up

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=36
2015-06-29 14:52:53 +00:00
4e2670406e Accepting request 308957 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/308957
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=22
2015-06-01 07:51:22 +00:00
41dea386e6 - Properly write the routes file for static networks (bnc#920190)
+ modify suseIntegratedHandler.patch
- Remove suseSetInitCmd.patch
  + is now integrated with suseIntegratedHandler.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=35
2015-05-20 21:54:02 +00:00
cdf9171a36 Accepting request 305308 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/305308
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=21
2015-05-06 05:49:01 +00:00
3ae558cd3d - pmtools only exist on Intel architecture (bnc#928552)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=34
2015-04-27 12:30:28 +00:00
aa1e646265 Accepting request 295726 from Cloud:Tools
New upstream release (forwarded request 295648 from tbechtold)

OBS-URL: https://build.opensuse.org/request/show/295726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=20
2015-04-13 18:31:47 +00:00
ca001a03ce Accepting request 295648 from home:tbechtold:branches:Cloud:Tools
New upstream release

OBS-URL: https://build.opensuse.org/request/show/295648
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=33
2015-04-13 15:57:34 +00:00
7cfbd29a31 Accepting request 287588 from Cloud:Tools
- Fix (bnc#919305 & bnc#918952)
  - Properly handle persistent network device names for OpenNebula 
    + add dataSourceOpenNebula.patch
  - Properly set up network mode if interface config file 
    + modified suseIntegratedHandler.patch

OBS-URL: https://build.opensuse.org/request/show/287588
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=19
2015-02-27 09:59:05 +00:00
bbd43b6038 - Fix (bnc#919305 & bnc#918952)
- Properly handle persistent network device names for OpenNebula 
    + add dataSourceOpenNebula.patch
  - Properly set up network mode if interface config file 
    + modified suseIntegratedHandler.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=32
2015-02-24 16:29:59 +00:00
ba2f40691d - Properly handle persistent network device names for OpenNebula (bnc#918952)
+ add dataSourceOpenNebula.patch
- Properly set up network mode if interface config file (bnc#918952)
  + modified suseIntegratedHandler.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=31
2015-02-24 15:55:16 +00:00
5693821dbb Accepting request 285781 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/285781
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=18
2015-02-13 07:35:22 +00:00
Thomas Bechtold
1096eb56d9 - Require e2fsprogs for filesystem resizing
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=30
2015-02-05 10:18:48 +00:00
cf86188f72 - fixed syntax error in dmidecode on ppc64 patch (bnc#914920)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=29
2015-02-04 19:26:15 +00:00
68acaf254d Accepting request 283920 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/283920
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=17
2015-02-04 08:32:09 +00:00
c8bcb2595c Accepting request 283917 from home:tbechtold:branches:Cloud:Tools
Fix invalid requirement for python-yaml

OBS-URL: https://build.opensuse.org/request/show/283917
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=28
2015-02-03 15:56:58 +00:00
84a6d9d4cc Accepting request 263690 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/263690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=16
2014-12-03 21:47:59 +00:00
0f3663beb5 - fixed syntax error in dmidecode on ppc64 patch
cloud-init-no-user-lock-if-already-locked.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=27
2014-11-24 22:20:16 +00:00
Thomas Boerger
4253bc155c Accepting request 262579 from home:keutterling:branches:Cloud:Tools
fixed syntax error in dmidecode on ppc64 patch

OBS-URL: https://build.opensuse.org/request/show/262579
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=26
2014-11-21 22:06:19 +00:00
Marcus Schaefer
c69b90d607 - users-groups module checks if the account is locked by
calling 'passwd -l' which is ok but it should not raise
  if the account is already locked. This patch will cause
  lock_passwd to raise only if the account locking failed

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=25
2014-09-17 07:17:45 +00:00
Stephan Kulow
fbb9e17899 Accepting request 245117 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/245117
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=14
2014-08-27 14:53:10 +00:00
0b8569a353 Accepting request 244242 from Cloud:Tools
1

OBS-URL: https://build.opensuse.org/request/show/244242
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=13
2014-08-13 06:49:08 +00:00
fa531c83bb on architectures where dmidecode is not available.
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=24
2014-08-11 16:54:22 +00:00
9f75c2a543 Accepting request 244060 from home:k0da:ppc
- Make package Arch dependent otherwise package is not installable
  on arcoitectures where dmidecode is not available.
- Avoid to run dmidecode on PowerPC as well
  cloud-init-no-dmidecode-on-ppc64.patch

OBS-URL: https://build.opensuse.org/request/show/244060
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=23
2014-08-11 15:58:55 +00:00
3c9a48bda0 - declare rsyslog.d only for distros where it is created
fixes build error on SLE 11

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=22
2014-07-28 15:55:33 +00:00
402e1e5ccc - add dmidecode (pmtools SLE 11) as dependency (bnc #888345)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=21
2014-07-28 15:40:40 +00:00
b883b7106a - add cloudinit-datasources.patch: Fixes datasource list
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=20
2014-07-23 05:40:07 +00:00
c2c6b4a99b - fix typo in cloud.cfg (gowpart -> growpart)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=19
2014-07-22 22:31:44 +00:00
Stephan Kulow
0e265ccf0d Accepting request 239820 from Cloud:Tools
- fix "typo" the rhel_util module is imported as rhutil, use the
  proper name when accessing (modifies suseIntegratedHandler.patch)

- add rsyslog filter rule to send cloud-init messages to
  /var/log/cloud-init.log

- initialize variable in method setting the instance hostname (BNC #884392)
  modifies: suseIntegratedHandler.patch

- add the python magic for package build on SLE 11

- add more dependencies to ensure commands used by the scripts are present
- add dynamicInitCmd.diff
  + support diffirent init systems across distribution versions for
    service restart
- add suseSetInitCmd.patch
  + properly setup the init command to support proper service restart

- integrate openSUSE and SLE handler code
  + remove openSUSEHandler.diff
  + add suseIntegratedHandler.patch

OBS-URL: https://build.opensuse.org/request/show/239820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=12
2014-07-10 12:55:23 +00:00
499159319d - fix "typo" the rhel_util module is imported as rhutil, use the
proper name when accessing (modifies suseIntegratedHandler.patch)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=18
2014-07-07 17:23:27 +00:00
1eec3d9f4b - add rsyslog filter rule to send cloud-init messages to
/var/log/cloud-init.log

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=17
2014-06-26 18:54:36 +00:00
2a35a3624a - initialize variable in method setting the instance hostname (BNC #884392)
modifies: suseIntegratedHandler.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=16
2014-06-25 22:26:03 +00:00
fff2928063 - add the python magic for package build on SLE 11
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=15
2014-06-24 19:50:04 +00:00
7e9476e0dc - add more dependencies to ensure commands used by the scripts are present
- add dynamicInitCmd.diff
  + support diffirent init systems across distribution versions for
    service restart
- add suseSetInitCmd.patch
  + properly setup the init command to support proper service restart

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=14
2014-06-24 19:29:50 +00:00
eacce78d5d - integrate openSUSE and SLE handler code
+ remove openSUSEHandler.diff
  + add suseIntegratedHandler.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=13
2014-06-20 23:13:07 +00:00
Stephan Kulow
c4fe0e3c05 Accepting request 230970 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/230970
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=11
2014-06-04 16:39:02 +00:00
afb6663c50 - update to version 0.7.5
- open 0.7.5
  - Add a debug log message around import failures
  - add a 'debug' module for easily printing out some information about
    datasource and cloud-init [Shraddha Pandhe]
  - support running apt with 'eatmydata' via configuration token
    apt_get_wrapper (LP: #1236531).
  - convert paths provided in config-drive 'files' to string before writing
    (LP: #1260072).
  - Azure: minor changes in logging output. ensure filenames are strings (not
    unicode).
  - config/cloud.cfg.d/05_logging.cfg: provide a default 'output' setting, to
    redirect cloud-init stderr and stdout /var/log/cloud-init-output.log.
  - drop support for resizing partitions with parted entirely (LP: #1212492).
    This was broken as it was anyway.
  - add support for vendordata in SmartOS and NoCloud datasources.
  - drop dependency on boto for crawling ec2 metadata service.
  - add 'Requires' on sudo (for OpenNebula datasource) in rpm specs, and
    'Recommends' in the debian/control.in [Vlastimil Holer]
  - if mount_info reports /dev/root is a device path for /, then convert
    that to a device via help of kernel cmdline.
  - configdrive: consider partitions as possible datasources if they have
    theh correct filesystem label. [Paul Querna]
  - initial freebsd support [Harm Weites]
  - fix in is_ipv4 to accept IP addresses with a '0' in them.
  - Azure: fix issue when stale data in /var/lib/waagent (LP: #1269626)
  - skip config_modules that declare themselves only verified on a set of
    distros.  Add them to 'unverified_modules' list to run anyway.
  - Add CloudSigma datasource [Kiril Vladimiroff]
  - Add initial support for Gentoo and Arch distributions [Nate House]

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=12
2014-04-14 19:15:14 +00:00
Stephan Kulow
6554f0e50b Accepting request 228217 from Cloud:Tools
- fix implementation of the openSUSE handler, properly read the configuration
  from sysconfig

- do not package any none SUSE/openSUSE templates bnc#839707
- add patch openSUSEhostsTemplate.diff to add an openSUSE hosts template

- enable growing of root partition by default bnc#861473

- include the LICENSE

- include in SLE 12 (FATE #315990, #315991, and 316167)
- add patch azure_1269626.diff, fix for upstream bug 1269626
  + Azure instance do not boot properly after a capture operation

- add dependency on growpart to support root partition expansion

OBS-URL: https://build.opensuse.org/request/show/228217
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=10
2014-04-08 11:01:38 +00:00
613771aca9 - fix implementation of the openSUSE handler, properly read the configuration
from sysconfig

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=11
2014-03-29 21:40:50 +00:00
56a9174e6f - do not package any none SUSE/openSUSE templates bnc#839707
- add patch openSUSEhostsTemplate.diff to add an openSUSE hosts template

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=10
2014-03-19 21:38:02 +00:00
9066aef710 - enable growing of root partition by default bnc#861473
- add dependency on growpart to support root partition expansion

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=9
2014-03-19 21:08:48 +00:00
7582cf4365 - include the LICENSE
- add dependency on growpart to aupport root partition expansion

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=8
2014-03-18 19:43:58 +00:00
b363ee2095 - include in SLE 12 (FATE #315990, #315991, and 316167)
- add patch azure_1269626.diff, fix for upstream bug 1269626
  + Azure instance do not boot properly after a capture operation

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=7
2014-03-17 18:40:51 +00:00
2f5d8a6a77 - add dependency n growpart to aupport root partition expansion
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=6
2014-03-17 17:58:53 +00:00
Stephan Kulow
f91df56437 Accepting request 215317 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/215317
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=9
2014-01-30 13:54:04 +00:00
06810e76db - add python-jsonpatch, python-pyserial, python-PyYAML requires,
otherwise it immediately traces on startup

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=5
2014-01-20 17:51:58 +00:00
Stephan Kulow
193aae788d Accepting request 213608 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/213608
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=8
2014-01-13 12:49:30 +00:00
c6ec6841cd - update to version 0.7.4
+ fix issue mounting 'ephemeral0' if ephemeral0 was an alias for a
    partitioned block device with target filesystem on ephemeral0.1.
    (LP: #1236594)
  + fix DataSourceAzure incompatibility with 2.6 (LP: #1232175)
  + fix power_state_change config module so that example works.  Improve
    its documentation and add reference to 'timeout'
  + support apt-add-archive with 'cloud-archive:' format.  (LP: #1244355)
  + Change SmartOS verb for availability zone (LP: #1249124)
  + documentation fix for boothooks to use 'cloud-init-per'
  + fix resizefs module by supporting kernels that do not have
    /proc/PID/mountinfo.  (LP: #1248625) [Tim Daly Jr.]
  + fix 'make rpm' by removing 0.6.4 entry from ChangeLog (LP: #1241834)
  + fix omnibus chef installer (LP: #1182265) [Chris Wing]
  + small fix for OVF datasource for iso transport on non-iso9660 filesystem
  + determine if upstart version is suitable for
    'initctl reload-configuration' (LP: #1124384).  If so, then invoke it.
    supports setting up instance-store disk with partition table and filesystem.
  + add Azure datasource.
  + add support for SuSE / SLES [Juerg Haefliger]
  + add a trailing carriage return to chpasswd input, which reportedly
    caused a problem on rhel5 if missing.
  + support individual MIME segments to be gzip compressed (LP: #1203203)
  + always finalize handlers even if processing failed (LP: #1203368)
  + support merging into cloud-config via jsonp. (LP: #1200476)
  + add datasource 'SmartOS' for Joyent Cloud.  Adds a dependency on serial.
  + add 'log_time' helper to util for timing how long things take
    which also reads from uptime. uptime is useful as clock may change during
    boot due to ntp.
  + prefer growpart resizer to 'parted resizepart' (LP: #1212492)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=4
2014-01-04 17:43:26 +00:00
Stephan Kulow
a3dddb319c Accepting request 185659 from Cloud:Tools
- remove the "nofail" option for the ephemeral storage
  + when using nofail an attempt is made to mount the filesystem twice
    once via udev and once through localfs, this results in a hanging
    system if fsck needs to run on the device

OBS-URL: https://build.opensuse.org/request/show/185659
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=6
2013-08-04 14:48:15 +00:00
ddcfa56afe - remove the "nofail" option for the ephemeral storage
+ when using nofail an attempt is made to mount the filesystem twice
    once via udev and once through localfs, this results in a hanging
    system if fsck needs to run on the device

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=3
2013-08-02 06:59:54 +00:00
Stephan Kulow
3e26e9102c Accepting request 183655 from Cloud:Tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/183655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=5
2013-07-19 14:51:15 +00:00
Stephan Kulow
977266dbf5 Accepting request 179625 from Base:System
- integrate changes from HP
  + update the sles handler, do not modify the util code integrate
    routines directky into the sles handler
    ~ add patch slesHandler.patch
    ~ remove patch openSUSEHandler.diff
  + add python dependencies
    ~ python-argparse
    ~ python-configobj
    ~ python-oauth
  + update the cloud-init config file (forwarded request 179612 from rjschwei)

OBS-URL: https://build.opensuse.org/request/show/179625
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=4
2013-06-19 12:42:19 +00:00
Stephan Kulow
5ee9623a83 Accepting request 179244 from Base:System
- add the distro specific handler for openSUSE
  + patch openSUSEHandler.diff
- fix syntax in SLE handler
  + dict access uses [] not {}, duh (forwarded request 179074 from rjschwei)

OBS-URL: https://build.opensuse.org/request/show/179244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=3
2013-06-18 08:29:23 +00:00
Stephan Kulow
04e3dd1a0d Accepting request 174647 from Base:System
support relative path for authorized_keys file, backport fix from upstream version 0.7.1 (bnc#818306)

OBS-URL: https://build.opensuse.org/request/show/174647
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=2
2013-05-07 13:10:36 +00:00
Stephan Kulow
83245c4ac8 Accepting request 172828 from Base:System
initial package

OBS-URL: https://build.opensuse.org/request/show/172828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cloud-init?expand=0&rev=1
2013-04-26 05:12:13 +00:00
15 changed files with 0 additions and 1402 deletions

BIN
cloud-init-23.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
cloud-init-25.1.1.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,24 +0,0 @@
--- 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",

View File

@@ -1,100 +0,0 @@
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/"

View File

@@ -1,54 +0,0 @@
--- 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
}

View File

@@ -1,22 +0,0 @@
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:

View File

@@ -1,11 +0,0 @@
--- tools/run-lint.orig
+++ tools/run-lint
@@ -11,7 +11,7 @@ else
files=( "$@" )
fi
-cmd=( "python3" -m "ruff" "${files[@]}" )
+cmd=( "python3" -m "flake8" "${files[@]}" )
echo "Running: " "${cmd[@]}" 1>&2
exec "${cmd[@]}"

View File

@@ -1,412 +0,0 @@
--- cloudinit/cmd/main.py.orig
+++ cloudinit/cmd/main.py
@@ -28,26 +28,27 @@ from cloudinit.config.modules import Mod
patcher.patch_logging()
-from cloudinit.config.schema import validate_cloudconfig_schema
-from cloudinit import log as logging
-from cloudinit import netinfo
-from cloudinit import signal_handler
-from cloudinit import sources
-from cloudinit import stages
-from cloudinit import url_helper
-from cloudinit import util
-from cloudinit import version
-from cloudinit import warnings
-
-from cloudinit import reporting
-from cloudinit.reporting import events
+from cloudinit.config.schema import validate_cloudconfig_schema # noqa: E402
+from cloudinit import log as logging # noqa: E402
+from cloudinit import netinfo # noqa: E402
+from cloudinit import signal_handler # noqa: E402
+from cloudinit import sources # noqa: E402
+from cloudinit import stages # noqa: E402
+from cloudinit import url_helper # noqa: E402
+from cloudinit import util # noqa: E402
+from cloudinit import version # noqa: E402
+from cloudinit import warnings # noqa: E402
+
+from cloudinit import reporting # noqa: E402
+from cloudinit.reporting import events # noqa: E402
-from cloudinit.settings import PER_INSTANCE, PER_ALWAYS, PER_ONCE, CLOUD_CONFIG
+from cloudinit.settings import ( # noqa: E402
+ PER_INSTANCE, PER_ALWAYS, PER_ONCE, CLOUD_CONFIG) # noqa: E402
-from cloudinit import atomic_helper
+from cloudinit import atomic_helper # noqa: E402
-from cloudinit.config import cc_set_hostname
-from cloudinit.cmd.devel import read_cfg_paths
+from cloudinit.config import cc_set_hostname # noqa: E402
+from cloudinit.cmd.devel import read_cfg_paths # noqa: E402
# Welcome message template
@@ -538,7 +539,7 @@ def di_report_warn(datasource, cfg):
# where Name is the thing that shows up in datasource_list.
modname = datasource.__module__.rpartition(".")[2]
if modname.startswith(sources.DS_PREFIX):
- modname = modname[len(sources.DS_PREFIX) :]
+ modname = modname[len(sources.DS_PREFIX):]
else:
LOG.warning(
"Datasource '%s' came from unexpected module '%s'.",
--- cloudinit/config/cc_apt_configure.py.orig
+++ cloudinit/config/cc_apt_configure.py
@@ -354,7 +354,7 @@ def mirrorurl_to_apt_fileprefix(mirror):
string = string[0:-1]
pos = string.find("://")
if pos >= 0:
- string = string[pos + 3 :]
+ string = string[pos + 3:]
string = string.replace("/", "_")
return string
--- cloudinit/config/cc_ssh_authkey_fingerprints.py.orig
+++ cloudinit/config/cc_ssh_authkey_fingerprints.py
@@ -44,7 +44,7 @@ LOG = logging.getLogger(__name__)
def _split_hash(bin_hash):
split_up = []
for i in range(0, len(bin_hash), 2):
- split_up.append(bin_hash[i : i + 2])
+ split_up.append(bin_hash[i: i + 2])
return split_up
--- cloudinit/config/modules.py.orig
+++ cloudinit/config/modules.py
@@ -39,7 +39,7 @@ class ModuleDetails(NamedTuple):
def form_module_name(name):
canon_name = name.replace("-", "_")
if canon_name.lower().endswith(".py"):
- canon_name = canon_name[0 : (len(canon_name) - 3)]
+ canon_name = canon_name[0: (len(canon_name) - 3)]
canon_name = canon_name.strip()
if not canon_name:
return None
--- cloudinit/distros/parsers/ifconfig.py.orig
+++ cloudinit/distros/parsers/ifconfig.py
@@ -140,7 +140,7 @@ class Ifconfig:
dev.index = int(toks[1])
if toks[0] == "description:":
- dev.description = line[line.index(":") + 2 :]
+ dev.description = line[line.index(":") + 2:]
if (
toks[0].startswith("options=")
@@ -165,7 +165,7 @@ class Ifconfig:
dev.groups += toks[1:]
if toks[0] == "media:":
- dev.media = line[line.index(": ") + 2 :]
+ dev.media = line[line.index(": ") + 2:]
if toks[0] == "nd6":
nd6_opts = re.split(r"<|>", toks[0])
--- cloudinit/net/dhcp.py.orig
+++ cloudinit/net/dhcp.py
@@ -415,24 +415,24 @@ class IscDhclient(DhcpClient):
if len(tokens[idx:]) < req_toks:
_trunc_error(net_length, req_toks, len(tokens[idx:]))
return static_routes
- net_address = ".".join(tokens[idx + 1 : idx + 5])
- gateway = ".".join(tokens[idx + 5 : idx + req_toks])
+ net_address = ".".join(tokens[idx + 1: idx + 5])
+ gateway = ".".join(tokens[idx + 5: idx + req_toks])
current_idx = idx + req_toks
elif net_length in range(17, 25):
req_toks = 8
if len(tokens[idx:]) < req_toks:
_trunc_error(net_length, req_toks, len(tokens[idx:]))
return static_routes
- net_address = ".".join(tokens[idx + 1 : idx + 4] + ["0"])
- gateway = ".".join(tokens[idx + 4 : idx + req_toks])
+ net_address = ".".join(tokens[idx + 1: idx + 4] + ["0"])
+ gateway = ".".join(tokens[idx + 4: idx + req_toks])
current_idx = idx + req_toks
elif net_length in range(9, 17):
req_toks = 7
if len(tokens[idx:]) < req_toks:
_trunc_error(net_length, req_toks, len(tokens[idx:]))
return static_routes
- net_address = ".".join(tokens[idx + 1 : idx + 3] + ["0", "0"])
- gateway = ".".join(tokens[idx + 3 : idx + req_toks])
+ net_address = ".".join(tokens[idx + 1: idx + 3] + ["0", "0"])
+ gateway = ".".join(tokens[idx + 3: idx + req_toks])
current_idx = idx + req_toks
elif net_length in range(1, 9):
req_toks = 6
@@ -440,9 +440,9 @@ class IscDhclient(DhcpClient):
_trunc_error(net_length, req_toks, len(tokens[idx:]))
return static_routes
net_address = ".".join(
- tokens[idx + 1 : idx + 2] + ["0", "0", "0"]
+ tokens[idx + 1: idx + 2] + ["0", "0", "0"]
)
- gateway = ".".join(tokens[idx + 2 : idx + req_toks])
+ gateway = ".".join(tokens[idx + 2: idx + req_toks])
current_idx = idx + req_toks
elif net_length == 0:
req_toks = 5
@@ -450,7 +450,7 @@ class IscDhclient(DhcpClient):
_trunc_error(net_length, req_toks, len(tokens[idx:]))
return static_routes
net_address = "0.0.0.0"
- gateway = ".".join(tokens[idx + 1 : idx + req_toks])
+ gateway = ".".join(tokens[idx + 1: idx + req_toks])
current_idx = idx + req_toks
else:
LOG.error(
--- cloudinit/net/network_state.py.orig
+++ cloudinit/net/network_state.py
@@ -135,7 +135,7 @@ class CommandHandlerMeta(type):
command_handlers = {}
for attr_name, attr in dct.items():
if callable(attr) and attr_name.startswith("handle_"):
- handles_what = attr_name[len("handle_") :]
+ handles_what = attr_name[len("handle_"):]
if handles_what:
command_handlers[handles_what] = attr
dct["command_handlers"] = command_handlers
--- cloudinit/reporting/handlers.py.orig
+++ cloudinit/reporting/handlers.py
@@ -295,13 +295,13 @@ class HyperVKvpReportingHandler(Reportin
)
)
k = (
- record_data[0 : self.HV_KVP_EXCHANGE_MAX_KEY_SIZE]
+ record_data[0: self.HV_KVP_EXCHANGE_MAX_KEY_SIZE]
.decode("utf-8")
.strip("\x00")
)
v = (
record_data[
- self.HV_KVP_EXCHANGE_MAX_KEY_SIZE : self.HV_KVP_RECORD_SIZE
+ self.HV_KVP_EXCHANGE_MAX_KEY_SIZE: self.HV_KVP_RECORD_SIZE
]
.decode("utf-8")
.strip("\x00")
@@ -320,7 +320,7 @@ class HyperVKvpReportingHandler(Reportin
def _break_down(self, key, meta_data, description):
del meta_data[self.MSG_KEY]
des_in_json = json.dumps(description)
- des_in_json = des_in_json[1 : (len(des_in_json) - 1)]
+ des_in_json = des_in_json[1: (len(des_in_json) - 1)]
i = 0
result_array = []
message_place_holder = '"' + self.MSG_KEY + '":""'
@@ -353,7 +353,7 @@ class HyperVKvpReportingHandler(Reportin
Values will be truncated as needed.
"""
if len(value) >= self.HV_KVP_AZURE_MAX_VALUE_SIZE:
- value = value[0 : self.HV_KVP_AZURE_MAX_VALUE_SIZE - 1]
+ value = value[0: self.HV_KVP_AZURE_MAX_VALUE_SIZE - 1]
data = [self._encode_kvp_item(key, value)]
--- cloudinit/sources/__init__.py.orig
+++ cloudinit/sources/__init__.py
@@ -747,7 +747,7 @@ class DataSource(CloudInitPickleMixin, m
if not short_name.startswith(nfrom):
continue
for nto in tlist:
- cand = "/dev/%s%s" % (nto, short_name[len(nfrom) :])
+ cand = "/dev/%s%s" % (nto, short_name[len(nfrom):])
if os.path.exists(cand):
return cand
return None
--- cloudinit/sources/helpers/azure.py.orig
+++ cloudinit/sources/helpers/azure.py
@@ -566,7 +566,7 @@ class OpenSSLManager:
"""
raw_fp = self._run_x509_action("-fingerprint", certificate)
eq = raw_fp.find("=")
- octets = raw_fp[eq + 1 : -1].split(":")
+ octets = raw_fp[eq + 1: -1].split(":")
return "".join(octets)
@azure_ds_telemetry_reporter
--- cloudinit/sources/helpers/netlink.py.orig
+++ cloudinit/sources/helpers/netlink.py
@@ -150,7 +150,7 @@ def unpack_rta_attr(data, offset):
return None # Should mean our offset is >= remaining data
# Unpack just the attribute's data. Offset by 4 to skip length/type header
- attr_data = data[offset + RTA_DATA_START_OFFSET : offset + length]
+ attr_data = data[offset + RTA_DATA_START_OFFSET: offset + length]
return RTAAttr(length, rta_type, attr_data)
--- cloudinit/ssh_util.py.orig
+++ cloudinit/ssh_util.py
@@ -659,7 +659,7 @@ def get_opensshd_version():
prefix = "OpenSSH_"
for line in err.split("\n"):
if line.startswith(prefix):
- return line[len(prefix) : line.find(",")]
+ return line[len(prefix): line.find(",")]
return None
--- cloudinit/url_helper.py.orig
+++ cloudinit/url_helper.py
@@ -73,7 +73,7 @@ def read_file_or_url(url, **kwargs) -> U
if url.lower().startswith("file://"):
if kwargs.get("data"):
LOG.warning("Unable to post data to file resource %s", url)
- file_path = url[len("file://") :]
+ file_path = url[len("file://"):]
try:
with open(file_path, "rb") as fp:
contents = fp.read()
--- cloudinit/user_data.py.orig
+++ cloudinit/user_data.py
@@ -211,13 +211,13 @@ class UserDataProcessor:
for line in content.splitlines():
lc_line = line.lower()
if lc_line.startswith("#include-once"):
- line = line[len("#include-once") :].lstrip()
+ line = line[len("#include-once"):].lstrip()
# Every following include will now
# not be refetched.... but will be
# re-read from a local urlcache (if it worked)
include_once_on = True
elif lc_line.startswith("#include"):
- line = line[len("#include") :].lstrip()
+ line = line[len("#include"):].lstrip()
# Disable the include once if it was on
# if it wasn't, then this has no effect.
include_once_on = False
--- cloudinit/util.py.orig
+++ cloudinit/util.py
@@ -1177,7 +1177,7 @@ def read_cc_from_cmdline(cmdline=None):
if end < 0:
end = clen
tokens.append(
- parse.unquote(cmdline[begin + begin_l : end].lstrip()).replace(
+ parse.unquote(cmdline[begin + begin_l: end].lstrip()).replace(
"\\n", "\n"
)
)
@@ -1724,7 +1724,7 @@ def get_output_cfg(cfg, mode):
found = False
for s in swlist:
if val.startswith(s):
- val = "%s %s" % (s, val[len(s) :].strip())
+ val = "%s %s" % (s, val[len(s):].strip())
found = True
break
if not found:
@@ -2362,7 +2362,7 @@ def shellify(cmdlist, add_header=True):
def strip_prefix_suffix(line, prefix=None, suffix=None):
if prefix and line.startswith(prefix):
- line = line[len(prefix) :]
+ line = line[len(prefix):]
if suffix and line.endswith(suffix):
line = line[: -len(suffix)]
return line
@@ -2942,7 +2942,7 @@ def human2bytes(size):
for m in mpliers:
if size.endswith(m):
mplier = m
- num = size[0 : -len(m)]
+ num = size[0: -len(m)]
try:
num = float(num)
@@ -3022,12 +3022,12 @@ def rootdev_from_cmdline(cmdline):
if found.startswith("/dev/"):
return found
if found.startswith("LABEL="):
- return "/dev/disk/by-label/" + found[len("LABEL=") :]
+ return "/dev/disk/by-label/" + found[len("LABEL="):]
if found.startswith("UUID="):
- return "/dev/disk/by-uuid/" + found[len("UUID=") :].lower()
+ return "/dev/disk/by-uuid/" + found[len("UUID="):].lower()
if found.startswith("PARTUUID="):
disks_path = (
- "/dev/disk/by-partuuid/" + found[len("PARTUUID=") :].lower()
+ "/dev/disk/by-partuuid/" + found[len("PARTUUID="):].lower()
)
if os.path.exists(disks_path):
return disks_path
--- setup.py.orig
+++ setup.py
@@ -187,7 +187,7 @@ elif os.path.isfile("/etc/system-release
else:
# String formatted CPE
inc = 1
- (cpe_vendor, cpe_product, cpe_version) = cpe_data[2 + inc : 5 + inc]
+ (cpe_vendor, cpe_product, cpe_version) = cpe_data[2 + inc: 5 + inc]
if cpe_vendor == "amazon":
USR_LIB_EXEC = "usr/libexec"
--- tests/unittests/helpers.py.orig
+++ tests/unittests/helpers.py
@@ -265,7 +265,7 @@ class FilesystemMockingTestCase(Resource
real_root = os.path.join(real_root, "roots", example_root)
for (dir_path, _dirnames, filenames) in os.walk(real_root):
real_path = dir_path
- make_path = rebase_path(real_path[len(real_root) :], target_root)
+ make_path = rebase_path(real_path[len(real_root):], target_root)
util.ensure_dir(make_path)
for f in filenames:
real_path = util.abs_join(real_path, f)
@@ -469,7 +469,7 @@ def dir2dict(startdir, prefix=None):
for root, _dirs, files in os.walk(startdir):
for fname in files:
fpath = os.path.join(root, fname)
- key = fpath[len(prefix) :]
+ key = fpath[len(prefix):]
flist[key] = util.load_file(fpath)
return flist
--- tests/unittests/reporting/test_reporting_hyperv.py.orig
+++ tests/unittests/reporting/test_reporting_hyperv.py
@@ -293,7 +293,7 @@ class TextKvpReporter(CiTestCase):
reporter,
2,
[
- log_content[-azure.MAX_LOG_TO_KVP_LENGTH :].encode(),
+ log_content[-azure.MAX_LOG_TO_KVP_LENGTH:].encode(),
extra_content.encode(),
],
)
--- tests/unittests/sources/test_configdrive.py.orig
+++ tests/unittests/sources/test_configdrive.py
@@ -412,7 +412,7 @@ class TestConfigDriveDataSource(CiTestCa
}
for name, dev_name in name_tests.items():
with ExitStack() as mocks:
- provided_name = dev_name[len("/dev/") :]
+ provided_name = dev_name[len("/dev/"):]
provided_name = "s" + provided_name[1:]
find_mock = mocks.enter_context(
mock.patch.object(
--- tests/unittests/sources/test_maas.py.orig
+++ tests/unittests/sources/test_maas.py
@@ -131,7 +131,7 @@ class TestMAASDataSource(CiTestCase):
if not url.startswith(prefix):
raise ValueError("unexpected call %s" % url)
- short = url[len(prefix) :]
+ short = url[len(prefix):]
if short not in data:
raise url_helper.UrlError("not found", code=404, url=url)
return url_helper.StringResponse(data[short])
--- tests/unittests/sources/test_smartos.py.orig
+++ tests/unittests/sources/test_smartos.py
@@ -766,7 +766,7 @@ class ShortReader:
rsize = next_null - self.index + 1
i = self.index
self.index += rsize
- ret = self.data[i : i + rsize]
+ ret = self.data[i: i + rsize]
if len(ret) and ret[-1:] == self.endbyte:
ret = ret[:-1]
return ret

View File

@@ -1,27 +0,0 @@
--- cloudinit/net/network_manager.py.orig
+++ cloudinit/net/network_manager.py
@@ -9,7 +9,6 @@
import configparser
import io
import itertools
-import os
import uuid
from typing import Optional
@@ -401,7 +400,6 @@ def available(target=None):
# It is imported here to avoid circular import
from cloudinit.distros import uses_systemd
- config_present = os.path.isfile(subp.target_path(target, path=NM_CFG_FILE))
nmcli_present = subp.which("nmcli", target=target)
service_active = True
if uses_systemd():
@@ -410,7 +408,7 @@ def available(target=None):
except subp.ProcessExecutionError:
service_active = False
- return config_present and bool(nmcli_present) and service_active
+ return bool(nmcli_present) and service_active
# vi: ts=4 expandtab

View File

@@ -1,28 +0,0 @@
--- cloudinit/config/cc_package_update_upgrade_install.py.orig
+++ cloudinit/config/cc_package_update_upgrade_install.py
@@ -18,7 +18,7 @@ from cloudinit.config.schema import Meta
from cloudinit.distros import ALL_DISTROS
from cloudinit.settings import PER_INSTANCE
-REBOOT_FILE = "/var/run/reboot-required"
+REBOOT_FILES = ("/var/run/reboot-required", "/run/reboot-needed")
REBOOT_CMD = ["/sbin/reboot"]
MODULE_DESCRIPTION = """\
@@ -120,11 +120,14 @@ def handle(name: str, cfg: Config, cloud
# kernel and openssl (possibly some other packages)
# write a file /var/run/reboot-required after upgrading.
# if that file exists and configured, then just stop right now and reboot
- reboot_fn_exists = os.path.isfile(REBOOT_FILE)
+ for reboot_marker in REBOOT_FILES:
+ reboot_fn_exists = os.path.isfile(reboot_marker)
+ if reboot_fn_exists:
+ break
if (upgrade or pkglist) and reboot_if_required and reboot_fn_exists:
try:
LOG.warning(
- "Rebooting after upgrade or install per %s", REBOOT_FILE
+ "Rebooting after upgrade or install per %s", reboot_marker
)
# Flush the above warning + anything else out...
logging.flushLoggers(LOG)

View File

@@ -1,374 +0,0 @@
--- tests/unittests/config/test_cc_yum_add_repo.py.orig
+++ tests/unittests/config/test_cc_yum_add_repo.py
@@ -2,7 +2,7 @@
import configparser
import logging
-import re
+# import re
import shutil
import tempfile
@@ -137,10 +137,10 @@ class TestAddYumRepoSchema:
{"yum_repo_dir": True},
"yum_repo_dir: True is not of type 'string'",
),
- (
- {"yum_repos": {}},
- re.escape("yum_repos: {} does not have enough properties"),
- ),
+ # (
+ # {"yum_repos": {}},
+ # re.escape("yum_repos: {} does not have enough properties"),
+ # ),
# baseurl required
(
{"yum_repos": {"My-Repo": {}}},
--- tests/unittests/config/test_cc_apk_configure.py.orig
+++ tests/unittests/config/test_cc_apk_configure.py
@@ -352,11 +352,11 @@ class TestApkConfigureSchema:
" allowed ('bogus' was unexpected)"
),
),
- (
- {"apk_repos": {"alpine_repo": {}}},
- "apk_repos.alpine_repo: 'version' is a required property,"
- " apk_repos.alpine_repo: {} does not have enough properties",
- ),
+ # (
+ # {"apk_repos": {"alpine_repo": {}}},
+ # "apk_repos.alpine_repo: 'version' is a required property,"
+ # " apk_repos.alpine_repo: {} does not have enough properties",
+ # ),
(
{"apk_repos": {"alpine_repo": True}},
"apk_repos.alpine_repo: True is not of type 'object', 'null'",
@@ -366,10 +366,10 @@ class TestApkConfigureSchema:
"apk_repos.preserve_repositories: 'wrongtype' is not of type"
" 'boolean'",
),
- (
- {"apk_repos": {}},
- "apk_repos: {} does not have enough properties",
- ),
+ # (
+ # {"apk_repos": {}},
+ # "apk_repos: {} does not have enough properties",
+ # ),
(
{"apk_repos": {"local_repo_base_url": None}},
"apk_repos.local_repo_base_url: None is not of type 'string'",
--- tests/unittests/config/test_cc_apt_configure.py.orig
+++ tests/unittests/config/test_cc_apt_configure.py
@@ -32,7 +32,7 @@ class TestAPTConfigureSchema:
" ('boguskey' was unexpected)"
),
),
- ({"apt": {}}, "apt: {} does not have enough properties"),
+ # ({"apt": {}}, "apt: {} does not have enough properties"),
(
{"apt": {"preserve_sources_list": 1}},
"apt.preserve_sources_list: 1 is not of type 'boolean'",
@@ -41,10 +41,10 @@ class TestAPTConfigureSchema:
{"apt": {"disable_suites": 1}},
"apt.disable_suites: 1 is not of type 'array'",
),
- (
- {"apt": {"disable_suites": []}},
- re.escape("apt.disable_suites: [] is too short"),
- ),
+ # (
+ # {"apt": {"disable_suites": []}},
+ # re.escape("apt.disable_suites: [] is too short"),
+ # ),
(
{"apt": {"disable_suites": [1]}},
"apt.disable_suites.0: 1 is not of type 'string'",
@@ -61,18 +61,18 @@ class TestAPTConfigureSchema:
{"apt": {"primary": "nonlist"}},
"apt.primary: 'nonlist' is not of type 'array'",
),
- (
- {"apt": {"primary": []}},
- re.escape("apt.primary: [] is too short"),
- ),
+ # (
+ # {"apt": {"primary": []}},
+ # re.escape("apt.primary: [] is too short"),
+ # ),
(
{"apt": {"primary": ["nonobj"]}},
"apt.primary.0: 'nonobj' is not of type 'object'",
),
- (
- {"apt": {"primary": [{}]}},
- "apt.primary.0: 'arches' is a required property",
- ),
+ # (
+ # {"apt": {"primary": [{}]}},
+ # "apt.primary.0: 'arches' is a required property",
+ # ),
(
{"apt": {"primary": [{"boguskey": True}]}},
re.escape(
@@ -98,10 +98,10 @@ class TestAPTConfigureSchema:
},
"apt.primary.0.search: 'non-array' is not of type 'array'",
),
- (
- {"apt": {"primary": [{"arches": ["amd64"], "search": []}]}},
- re.escape("apt.primary.0.search: [] is too short"),
- ),
+ # (
+ # {"apt": {"primary": [{"arches": ["amd64"], "search": []}]}},
+ # re.escape("apt.primary.0.search: [] is too short"),
+ # ),
(
{
"apt": {
@@ -130,10 +130,10 @@ class TestAPTConfigureSchema:
{"apt": {"debconf_selections": True}},
"apt.debconf_selections: True is not of type 'object'",
),
- (
- {"apt": {"debconf_selections": {}}},
- "apt.debconf_selections: {} does not have enough properties",
- ),
+ # (
+ # {"apt": {"debconf_selections": {}}},
+ # "apt.debconf_selections: {} does not have enough properties",
+ # ),
(
{"apt": {"sources_list": True}},
"apt.sources_list: True is not of type 'string'",
@@ -166,10 +166,10 @@ class TestAPTConfigureSchema:
{"apt": {"sources": {"opaquekey": True}}},
"apt.sources.opaquekey: True is not of type 'object'",
),
- (
- {"apt": {"sources": {"opaquekey": {}}}},
- "apt.sources.opaquekey: {} does not have enough properties",
- ),
+ # (
+ # {"apt": {"sources": {"opaquekey": {}}}},
+ # "apt.sources.opaquekey: {} does not have enough properties",
+ # ),
(
{"apt": {"sources": {"opaquekey": {"boguskey": True}}}},
re.escape(
--- tests/unittests/config/test_cc_bootcmd.py.orig
+++ tests/unittests/config/test_cc_bootcmd.py
@@ -1,5 +1,5 @@
# This file is part of cloud-init. See LICENSE file for license information.
-import re
+# import re
import tempfile
import pytest
@@ -128,13 +128,13 @@ class TestBootCMDSchema:
"Cloud config schema errors: bootcmd: 1 is not of type"
" 'array'",
),
- ({"bootcmd": []}, re.escape("bootcmd: [] is too short")),
- (
- {"bootcmd": []},
- re.escape(
- "Cloud config schema errors: bootcmd: [] is too short"
- ),
- ),
+ # ({"bootcmd": []}, re.escape("bootcmd: [] is too short")),
+ # (
+ # {"bootcmd": []},
+ # re.escape(
+ # "Cloud config schema errors: bootcmd: [] is too short"
+ # ),
+ # ),
(
{
"bootcmd": [
--- tests/unittests/config/test_cc_ca_certs.py.orig
+++ tests/unittests/config/test_cc_ca_certs.py
@@ -394,10 +394,10 @@ class TestCACertsSchema:
{"ca_certs": 1},
"ca_certs: 1 is not of type 'object'",
),
- (
- {"ca_certs": {}},
- re.escape("ca_certs: {} does not have enough properties"),
- ),
+ # (
+ # {"ca_certs": {}},
+ # re.escape("ca_certs: {} does not have enough properties"),
+ # ),
(
{"ca_certs": {"boguskey": 1}},
re.escape(
@@ -413,10 +413,10 @@ class TestCACertsSchema:
{"ca_certs": {"trusted": [1]}},
"ca_certs.trusted.0: 1 is not of type 'string'",
),
- (
- {"ca_certs": {"trusted": []}},
- re.escape("ca_certs.trusted: [] is too short"),
- ),
+ # (
+ # {"ca_certs": {"trusted": []}},
+ # re.escape("ca_certs.trusted: [] is too short"),
+ # ),
),
)
@skipUnlessJsonSchema()
--- tests/unittests/config/test_cc_chef.py.orig
+++ tests/unittests/config/test_cc_chef.py
@@ -304,10 +304,10 @@ class TestBootCMDSchema:
{"chef": 1},
"chef: 1 is not of type 'object'",
),
- (
- {"chef": {}},
- re.escape(" chef: {} does not have enough properties"),
- ),
+ # (
+ # {"chef": {}},
+ # re.escape(" chef: {} does not have enough properties"),
+ # ),
(
{"chef": {"boguskey": True}},
re.escape(
@@ -319,10 +319,10 @@ class TestBootCMDSchema:
{"chef": {"directories": 1}},
"chef.directories: 1 is not of type 'array'",
),
- (
- {"chef": {"directories": []}},
- re.escape("chef.directories: [] is too short"),
- ),
+ # (
+ # {"chef": {"directories": []}},
+ # re.escape("chef.directories: [] is too short"),
+ # ),
(
{"chef": {"directories": [1]}},
"chef.directories.0: 1 is not of type 'string'",
--- tests/unittests/config/test_cc_lxd.py.orig
+++ tests/unittests/config/test_cc_lxd.py
@@ -385,7 +385,7 @@ class TestLXDSchema:
# Require bridge.mode
({"lxd": {"bridge": {}}}, "bridge: 'mode' is a required property"),
# Require init or bridge keys
- ({"lxd": {}}, "lxd: {} does not have enough properties"),
+ # ({"lxd": {}}, "lxd: {} does not have enough properties"),
# Require some non-empty preseed config of type string
({"lxd": {"preseed": {}}}, "not of type 'string'"),
({"lxd": {"preseed": ""}}, None),
--- tests/unittests/config/test_cc_mounts.py.orig
+++ tests/unittests/config/test_cc_mounts.py
@@ -583,9 +583,9 @@ class TestMountsSchema:
"config, error_msg",
[
# We expect to see one mount if provided in user-data.
- ({"mounts": []}, re.escape("mounts: [] is too short")),
+ # ({"mounts": []}, re.escape("mounts: [] is too short")),
# Disallow less than 1 item per mount entry
- ({"mounts": [[]]}, re.escape("mounts.0: [] is too short")),
+ # ({"mounts": [[]]}, re.escape("mounts.0: [] is too short")),
# Disallow more than 6 items per mount entry
({"mounts": [["1"] * 7]}, "mounts.0:.* is too long"),
# Disallow mount_default_fields will anything other than 6 items
--- tests/unittests/config/test_cc_package_update_upgrade_install.py.orig
+++ tests/unittests/config/test_cc_package_update_upgrade_install.py
@@ -17,7 +17,7 @@ class TestPackageUpdateUpgradeSchema:
# packages list with three entries (2 required)
({"packages": ["p1", ["p2", "p3", "p4"]]}, ""),
# empty packages list
- ({"packages": []}, "is too short"),
+ # ({"packages": []}, "is too short"),
(
{"apt_update": False},
(
--- tests/unittests/config/test_cc_runcmd.py.orig
+++ tests/unittests/config/test_cc_runcmd.py
@@ -90,7 +90,7 @@ class TestRunCmdSchema:
({"runcmd": ["echo bye", "echo bye"]}, None),
# Invalid schemas
({"runcmd": 1}, "1 is not of type 'array'"),
- ({"runcmd": []}, r"runcmd: \[\] is too short"),
+ # ({"runcmd": []}, r"runcmd: \[\] is too short"),
(
{
"runcmd": [
--- tests/unittests/config/test_cc_set_passwords.py.orig
+++ tests/unittests/config/test_cc_set_passwords.py
@@ -715,12 +715,12 @@ class TestSetPasswordsSchema:
{"chpasswd": {"list": ["user"]}},
pytest.raises(SchemaValidationError),
),
- (
- {"chpasswd": {"list": []}},
- pytest.raises(
- SchemaValidationError, match=r"\[\] is too short"
- ),
- ),
+ # (
+ # {"chpasswd": {"list": []}},
+ # pytest.raises(
+ # SchemaValidationError, match=r"\[\] is too short"
+ # ),
+ # ),
],
)
@skipUnlessJsonSchema()
--- tests/unittests/config/test_cc_snap.py.orig
+++ tests/unittests/config/test_cc_snap.py
@@ -279,16 +279,17 @@ class TestSnapSchema:
{"snap": {"commands": ["ls"], "invalid-key": ""}},
"Additional properties are not allowed",
),
- ({"snap": {}}, "{} does not have enough properties"),
+ # ({"snap": {}}, "{} does not have enough properties"),
(
{"snap": {"commands": "broken"}},
"'broken' is not of type 'object', 'array'",
),
- ({"snap": {"commands": []}}, r"snap.commands: \[\] is too short"),
- (
- {"snap": {"commands": {}}},
- r"snap.commands: {} does not have enough properties",
- ),
+ # ({"snap": {
+ # "commands": []}}, r"snap.commands: \[\] is too short"),
+ # (
+ # {"snap": {"commands": {}}},
+ # r"snap.commands: {} does not have enough properties",
+ # ),
({"snap": {"commands": [123]}}, ""),
({"snap": {"commands": {"01": 123}}}, ""),
({"snap": {"commands": [["snap", "install", 123]]}}, ""),
@@ -302,11 +303,11 @@ class TestSnapSchema:
{"snap": {"assertions": "broken"}},
"'broken' is not of type 'object', 'array'",
),
- ({"snap": {"assertions": []}}, r"\[\] is too short"),
- (
- {"snap": {"assertions": {}}},
- r"\{} does not have enough properties",
- ),
+ # ({"snap": {"assertions": []}}, r"\[\] is too short"),
+ # (
+ # {"snap": {"assertions": {}}},
+ # r"\{} does not have enough properties",
+ # ),
],
)
@skipUnlessJsonSchema()
--- tests/unittests/config/test_cc_write_files.py.orig
+++ tests/unittests/config/test_cc_write_files.py
@@ -222,7 +222,7 @@ class TestWriteFilesSchema:
[
# Top-level write_files type validation
({"write_files": 1}, "write_files: 1 is not of type 'array'"),
- ({"write_files": []}, re.escape("write_files: [] is too short")),
+ # ({"write_files": []}, re.escape("write_files: [] is too short")),
(
{"write_files": [{}]},
"write_files.0: 'path' is a required property",

View File

@@ -1,68 +0,0 @@
--- cloudinit/distros/__init__.py.orig
+++ cloudinit/distros/__init__.py
@@ -880,9 +880,12 @@ class Distro(persistence.CloudInitPickle
# it actually exists as a directory
sudoers_contents = ""
base_exists = False
+ system_sudo_base = "/usr/etc/sudoers"
if os.path.exists(sudo_base):
sudoers_contents = util.load_file(sudo_base)
base_exists = True
+ elif os.path.exists(system_sudo_base):
+ sudoers_contents = util.load_file(system_sudo_base)
found_include = False
for line in sudoers_contents.splitlines():
line = line.strip()
@@ -907,7 +910,7 @@ class Distro(persistence.CloudInitPickle
"#includedir %s" % (path),
"",
]
- sudoers_contents = "\n".join(lines)
+ sudoers_contents += "\n".join(lines)
util.write_file(sudo_base, sudoers_contents, 0o440)
else:
lines = [
--- tests/unittests/distros/test__init__.py.orig
+++ tests/unittests/distros/test__init__.py
@@ -230,6 +230,41 @@ class TestGenericDistro(helpers.Filesyst
self.assertIn("josh", contents)
self.assertEqual(2, contents.count("josh"))
+ def test_sudoers_ensure_append_sudoer_file(self):
+ cls = distros.fetch("ubuntu")
+ d = cls("ubuntu", {}, None)
+ self.patchOS(self.tmp)
+ self.patchUtils(self.tmp)
+ util.write_file("/etc/sudoers", "josh, josh\n")
+ d.ensure_sudo_dir("/b", "/etc/sudoers")
+ contents = util.load_file("/etc/sudoers")
+ self.assertIn("includedir /b", contents)
+ self.assertTrue(os.path.isdir("/b"))
+ self.assertIn("josh", contents)
+ self.assertEqual(2, contents.count("josh"))
+
+ def test_usr_sudoers_ensure_new(self):
+ cls = distros.fetch("ubuntu")
+ d = cls("ubuntu", {}, None)
+ self.patchOS(self.tmp)
+ self.patchUtils(self.tmp)
+ util.write_file("/usr/etc/sudoers", "josh, josh\n")
+ d.ensure_sudo_dir("/b")
+ contents = util.load_file("/etc/sudoers")
+ self.assertIn("josh", contents)
+ self.assertEqual(2, contents.count("josh"))
+ self.assertIn("includedir /b", contents)
+ self.assertTrue(os.path.isdir("/b"))
+
+ def test_usr_sudoers_ensure_no_etc_creat(self):
+ cls = distros.fetch("ubuntu")
+ d = cls("ubuntu", {}, None)
+ self.patchOS(self.tmp)
+ self.patchUtils(self.tmp)
+ util.write_file("/usr/etc/sudoers", "#includedir /b")
+ d.ensure_sudo_dir("/b")
+ self.assertTrue(not os.path.exists("/etc/sudoers"))
+
def test_sudoers_ensure_only_one_includedir(self):
cls = distros.fetch("ubuntu")
d = cls("ubuntu", {}, None)

View File

@@ -1,36 +0,0 @@
--- 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(

View File

@@ -1,177 +0,0 @@
--- cloudinit/distros/__init__.py.orig
+++ cloudinit/distros/__init__.py
@@ -287,6 +287,15 @@ class Distro(persistence.CloudInitPickle
network_state = parse_net_config_data(netconfig, renderer=renderer)
self._write_network_state(network_state, renderer)
+ # The sysconfig renderer has no route writing implementation
+ # for SUSE yet use the old code for now that depends on the
+ # raw config.
+ try:
+ # Only exists for SUSE distro via this patch all other
+ # implementations throw which breaks testing
+ self._write_routes(netconfig)
+ except AttributeError:
+ pass
# Now try to bring them up
if bring_up:
--- cloudinit/distros/opensuse.py.orig
+++ cloudinit/distros/opensuse.py
@@ -10,7 +10,7 @@
import os
-from cloudinit import distros, helpers
+from cloudinit import distros, helpers, net
from cloudinit import log as logging
from cloudinit import subp, util
from cloudinit.distros import rhel_util as rhutil
@@ -238,6 +238,147 @@ class Distro(distros.Distro):
conf.set_hostname(hostname)
util.write_file(filename, str(conf), 0o644)
+ def _write_routes_v1(self, netconfig):
+ """Write route files, not part of the standard distro interface"""
+ # Due to the implementation of the sysconfig renderer default routes
+ # are setup in ifcfg-* files. But this does not work on SLES or
+ # openSUSE https://bugs.launchpad.net/cloud-init/+bug/1812117
+ # this is a very hacky way to get around the problem until a real
+ # solution is found in the sysconfig renderer
+ device_configs = netconfig.get('config', [])
+ default_nets = ('::', '0.0.0.0')
+ for config in device_configs:
+ if_name = config.get('name')
+ subnets = config.get('subnets', [])
+ config_routes = ''
+ has_default_route = False
+ seen_default_gateway = None
+ for subnet in subnets:
+ # Render the default gateway if it is present
+ gateway = subnet.get('gateway')
+ if gateway:
+ config_routes += ' '.join(
+ ['default', gateway, '-', '-\n']
+ )
+ has_default_route = True
+ if not seen_default_gateway:
+ seen_default_gateway = gateway
+ # Render subnet routes
+ routes = subnet.get('routes', [])
+ for route in routes:
+ dest = route.get('destination') or route.get('network')
+ if not dest or dest in default_nets:
+ dest = 'default'
+ if not has_default_route:
+ has_default_route = True
+ if dest != 'default':
+ netmask = route.get('netmask')
+ if netmask:
+ if net.is_ipv4_network(netmask):
+ prefix = net.ipv4_mask_to_net_prefix(netmask)
+ if net.is_ipv6_network(netmask):
+ prefix = net.ipv6_mask_to_net_prefix(netmask)
+ dest += '/' + str(prefix)
+ if '/' not in dest:
+ LOG.warning(
+ 'Skipping route; has no prefix "%s"', dest
+ )
+ continue
+ gateway = route.get('gateway')
+ if not gateway:
+ LOG.warning(
+ 'Missing gateway for "%s", skipping', dest
+ )
+ continue
+ if (
+ dest == 'default'
+ and has_default_route
+ and gateway == seen_default_gateway
+ ):
+ dest_info = dest
+ if gateway:
+ dest_info = ' '.join([dest, gateway, '-', '-'])
+ LOG.warning(
+ '%s already has default route, skipping "%s"',
+ if_name, dest_info
+ )
+ continue
+ config_routes += ' '.join(
+ [dest, gateway, '-', '-\n']
+ )
+ if config_routes:
+ route_file = '/etc/sysconfig/network/ifroute-%s' % if_name
+ util.write_file(route_file, config_routes)
+
+ def _render_route_string(self, netconfig_route):
+ route_to = netconfig_route.get('to', None)
+ route_via = netconfig_route.get('via', None)
+ route_metric = netconfig_route.get('metric', None)
+ route_string = ''
+
+ if route_to and route_via:
+ route_string = ' '.join([route_to, route_via, '-', '-'])
+ if route_metric:
+ route_string += ' metric {}\n'.format(route_metric)
+ else:
+ route_string += '\n'
+ else:
+ LOG.warning('invalid route definition, skipping route')
+
+ return route_string
+
+ def _write_routes_v2(self, netconfig):
+ for device_type in netconfig:
+ if device_type == 'version':
+ continue
+
+ if device_type == 'routes':
+ # global static routes
+ config_routes = ''
+ for route in netconfig['routes']:
+ config_routes += self._render_route_string(route)
+ if config_routes:
+ route_file = '/etc/sysconfig/network/routes'
+ util.write_file(route_file, config_routes)
+ else:
+ devices = netconfig[device_type]
+ for device_name in devices:
+ config_routes = ''
+ device_config = devices[device_name]
+ try:
+ gateways = [
+ v for k, v in device_config.items()
+ if 'gateway' in k
+ ]
+ for gateway in gateways:
+ config_routes += ' '.join(
+ ['default', gateway, '-', '-\n']
+ )
+ for route in device_config.get('routes', []):
+ config_routes += self._render_route_string(route)
+ if config_routes:
+ route_file = \
+ '/etc/sysconfig/network/ifroute-{}'.format(
+ device_name
+ )
+ util.write_file(route_file, config_routes)
+ except Exception:
+ # the parser above epxects another level of nesting
+ # which should be there in case it's properly
+ # formatted; if not we may get an exception on items()
+ pass
+
+ def _write_routes(self, netconfig):
+ netconfig_ver = netconfig.get('version')
+ if netconfig_ver == 1:
+ self._write_routes_v1(netconfig)
+ elif netconfig_ver == 2:
+ self._write_routes_v2(netconfig)
+ else:
+ LOG.warning(
+ 'unsupported or missing netconfig version, not writing routes'
+ )
+
@property
def preferred_ntp_clients(self):
"""The preferred ntp client is dependent on the version."""

View File

@@ -1,63 +0,0 @@
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())