Commit Graph

178 Commits

Author SHA1 Message Date
Miro Hrončok
bfe9c0243e Rebuilt for Python 3.9 2020-05-25 20:26:32 +02:00
Eduardo Otubo
34fecf9a1f Backport for CVE-2020-8631 and CVE-2020-8632
This commit backports the upstream commits for the CVEs:

- CVE-2020-8632 cloud-init: Too short random password length in
  cc_set_password in config/cc_set_passwords.py
  <https://bugzilla.redhat.com/show_bug.cgi?id=1798729>
  ./cloud-init-19.4-cc_set_password-increase-random-pwlength-from-9-to-2.patch

- CVE-2020-8631 cloud-init: Use of random.choice when generating random
  password
  <https://bugzilla.redhat.com/show_bug.cgi?id=1798732>
  ./cloud-init-19.4-utils-use-SystemRandom-when-generating-random-passwo.patch

Signed-off-by: Eduardo Otubo <otubo@redhat.com>
2020-04-14 15:57:28 +02:00
Dusty Mabe
b562c4e451
Add missing files to package
The following two files are now being delivered by cloud-init in
19.4. I looked at them and they look harmless enough so might as
well include them.

- /usr/bin/cloud-id
- /usr/share/bash-completion/completions/cloud-init
2020-02-23 10:14:57 -05:00
Dusty Mabe
cbaaeee097
Fix failing unittests by including BuildRequires: passwd
The unittests started failing because of upstream commit
7c07af2 where cloud-init can now support using `usermod` to
lock an account if `passwd` isn't installed. Since `passwd`
wasn't installed in our mock buildroot it was choosing to
use `usermod` and the unittests were failing.

See: https://github.com/canonical/cloud-init/commit/7c07af2
2020-02-23 10:14:04 -05:00
Dusty Mabe
0c8287c279
Fix sed substitutions for unittest2 and assertItemsEqual 2020-02-23 10:13:18 -05:00
Eduardo Otubo
e7d90aa880 Update to 19.4 2020-02-21 11:44:03 +01:00
Fedora Release Engineering
848302ec78 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 14:15:13 +00:00
Miro Hrončok
2a445b4a0b Drop unneeded build dependency on python3-unittest2 2019-11-08 21:02:19 +01:00
Miro Hrončok
60f5d25c9e Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 13:51:40 +02:00
Miro Hrončok
21c581de22 Rebuilt for Python 3.8 2019-08-19 00:41:43 +02:00
Fedora Release Engineering
96de525561 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 20:26:59 +00:00
Björn Esser
480fbc65fa
Add (Build)Requires: python3-distro 2019-04-23 21:18:26 +02:00
Björn Esser
414e6c4d01
Add patch to replace platform.dist() [RH:1695953] 2019-04-23 21:17:35 +02:00
Björn Esser
8bc2e5eb74
Add patch to fix failing test for EPOCHREALTIME bash env [RH:1695953] 2019-04-23 21:16:34 +02:00
Björn Esser
07a6b08f44
Fix %%systemd_postun macro [RH:1695953] 2019-04-23 20:36:52 +02:00
Fedora Release Engineering
be1468ab0c - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 15:46:38 +00:00
Fedora Release Engineering
c11cd77cef - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 21:54:17 +00:00
Miro Hrončok
81695b7a32 Rebuilt for Python 3.7 2018-06-18 17:56:17 +02:00
Lars Kellogg-Stedman
d41feb88d2 Enable dhcp on ec2 interfaces with only local ipv4 addresses [RH:1569321]
Cherry pick upstream commit eb292c1.

https://bugzilla.redhat.com/show_bug.cgi?id=1569321

Signed-off-by: Lars Kellogg-Stedman <lars@redhat.com>
2018-04-22 22:55:03 -04:00
Patrick Uiterwijk
8bc9d61636 Make sure the patch does not add infinitely many entries
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-03-27 00:38:32 +02:00
Patrick Uiterwijk
6164e0aea9 Add patch to retain old values of /etc/sysconfig/network
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-03-26 22:11:14 +02:00
Fedora Release Engineering
b32f621899 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 05:09:16 +00:00
Garrett Holmstrom
536667c88b Update to 17.1 2017-10-06 10:11:24 -07:00
Dusty Mabe
371f80e504
add in hook-dhclient script to enable azure
https://bugzilla.redhat.com/show_bug.cgi?id=1477333
2017-09-15 13:39:37 -04:00
Dusty Mabe
604f560b00
Add in upstream patch to fix call to xfs_growfs
https://bugzilla.redhat.com/show_bug.cgi?id=1490505
2017-09-15 11:56:45 -04:00
Fedora Release Engineering
eb25daa1c9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 05:00:05 +00:00
Garrett Holmstrom
75af4c1acd Fix broken sysconfig file writing on DigitalOcean
https://bugzilla.redhat.com/show_bug.cgi?id=1465440
2017-06-27 15:45:45 -07:00
Garrett Holmstrom
02e0391010 Fix broken fs_setup cmd option handling
https://bugs.launchpad.net/cloud-init/+bug/1687712
https://git.launchpad.net/cloud-init/commit/?id=4f0f171c29bb9abb5cbb6f9adbe68015089aeed9
https://git.launchpad.net/cloud-init/commit/?id=951863c211ab0f8c43a9443d080dbbe0f6b454a6
2017-06-21 15:56:52 -07:00
Garrett Holmstrom
7d14faf3fc Resolve a conflict between cloud-init and NetworkManager writing resolv.conf
https://bugzilla.redhat.com/show_bug.cgi?id=1454491
https://bugzilla.redhat.com/show_bug.cgi?id=1461959
https://bugs.launchpad.net/cloud-init/+bug/1693251
https://git.launchpad.net/cloud-init/commit/?id=67bab5bb804e2346673430868935f6bbcdb88f13
2017-06-21 15:17:36 -07:00
Garrett Holmstrom
7fd3480596 Fix NameError in package module
https://git.launchpad.net/cloud-init/commit/?id=a3daf184fd47dede8d91588281437453bd38fc1c
https://bugzilla.redhat.com/show_bug.cgi?id=1447708
2017-06-21 15:00:48 -07:00
Garrett Holmstrom
724a45640a Use %py3_build, %py3_install macros 2017-04-17 16:15:46 -07:00
Garrett Holmstrom
e3d962ecb4 Use if index to assign DigitalOcean IPv4 LL addrs
Systemd's interface naming makes assigning link-local addresses to the
interface that a DigitalOcean guest may use to obtain metadata
unreliables, so instead, we select which one to assign the address to
based on its index instead.

https://bugzilla.redhat.com/show_bug.cgi?id=1442463
https://git.launchpad.net/cloud-init/commit/?id=dad97585be0f30202a5a351800f20d4432b94694
2017-04-17 15:56:41 -07:00
Garrett Holmstrom
8939822a56 Configure all NICs presented in DigitalOcean metadata
https://bugzilla.redhat.com/show_bug.cgi?id=1442463
https://git.launchpad.net/cloud-init/commit/?id=ff44056771416cb811879b13b97f88d8f2057071
2017-04-17 15:56:41 -07:00
Garrett Holmstrom
78a0f3861c Make DigitalOcean data sources handle DNS servers similar to OpenStack
https://bugzilla.redhat.com/show_bug.cgi?id=1442463
https://bugs.launchpad.net/cloud-init/+bug/1675571
https://git.launchpad.net/cloud-init/commit/?id=493f6c3e923902d5d4f3d87e1cc4c726ea90ada4
2017-04-17 15:56:40 -07:00
Garrett Holmstrom
4c7b74f907 Merge branch 'f25'
Conflicts:
	cloud-init.spec
2017-03-14 16:14:20 -07:00
Garrett Holmstrom
7174dafa09 Bump Release 2017-03-14 16:13:46 -07:00
Garrett Holmstrom
ccc7d866c1 Remove cruft 2017-03-14 16:11:59 -07:00
Garrett Holmstrom
cb80d7a5f6 Merge branch 'f25'
Conflicts:
	cloud-init-0.7.8-before-nm.patch
	cloud-init.spec
2017-03-14 16:02:40 -07:00
Garrett Holmstrom
115ce31543 Do not cache IAM instance profile credentials on disk
https://bugs.launchpad.net/cloud-init/+bug/1638312
https://git.launchpad.net/cloud-init/commit/?id=b71592ce0e0a9f9f9f225315015ca57b312ad30d
2017-03-14 15:55:18 -07:00
Garrett Holmstrom
7c131a37b4 Order cloud-init.service after network.service and NetworkManager.service
cloud-init.service is meant to run when networking is up, but before
network-online.target unleashes other services in case people want to
set up networking customizations that run before those services do.

https://bugzilla.redhat.com/show_bug.cgi?id=1400249
2017-03-14 15:55:18 -07:00
Garrett Holmstrom
301b9c5515 Order cloud-init.service after network.service and NetworkManager.service
cloud-init.service is meant to run when networking is up, but before
network-online.target unleashes other services in case people want to
set up networking customizations that run before those services do.

https://bugzilla.redhat.com/show_bug.cgi?id=1400249
2017-03-14 15:16:37 -07:00
Garrett Holmstrom
31e1cd1a40 Re-enable all tests
Fixed in python-httpretty-0.8.14-2.20161011git70af1f8
https://bugzilla.redhat.com/show_bug.cgi?id=1417029
2017-03-14 14:58:18 -07:00
Garrett Holmstrom
7388b5291b Fix IPv6 gateways in network sysconfig
https://bugs.launchpad.net/cloud-init/+bug/1669504
https://git.launchpad.net/cloud-init/commit/?id=1d751a6f46f044e3c3827f3cef0e4a2e71d50fe7
2017-03-14 14:53:46 -07:00
Garrett Holmstrom
7c43c8ea82 Make > 3 name servers a warning, not a fatal error
This is useful when both IPv4 and IPv6 name servers are present.

https://bugs.launchpad.net/cloud-init/+bug/1670052
https://git.launchpad.net/cloud-init/commit/?id=657fd40f9ee692a817ec4614cd0d6cb0539ffabf
2017-03-14 14:48:59 -07:00
Garrett Holmstrom
c416b9ac65 Fix errors in network sysconfig handling
https://bugzilla.redhat.com/show_bug.cgi?id=1389530
https://bugs.launchpad.net/cloud-init/+bug/1665441
https://git.launchpad.net/cloud-init/commit/?id=f81d6c7bde2af206d449de593b35773068270c84
2017-03-14 14:48:59 -07:00
Garrett Holmstrom
27b10acec6 Fix systemd dependency cycle with cloud-init and multi-user.target
https://bugzilla.redhat.com/show_bug.cgi?id=1428492
https://bugzilla.redhat.com/show_bug.cgi?id=1430511
2017-03-14 14:48:52 -07:00
Garrett Holmstrom
0ee6a1e21f Fix systemd dependency cycle with cloud-final and os-collect-config
https://bugzilla.redhat.com/show_bug.cgi?id=1420946
https://bugzilla.redhat.com/show_bug.cgi?id=1428492
2017-03-14 14:29:24 -07:00
Fedora Release Engineering
d8203eaece - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 07:36:16 +00:00
Garrett Holmstrom
65d7e7be3d Fix calls to hostnamectl occuring before dbus is up
https://bugzilla.redhat.com/show_bug.cgi?id=1417025
2017-01-26 18:43:20 -08:00
Garrett Holmstrom
a366807dc3 Remove old cruft 2017-01-26 18:22:27 -08:00