~lmd-jazzededtech/cloud-init/+git/cloud-init-1:main

Last commit made on 2022-08-26
Get this branch:
git clone -b main https://git.launchpad.net/~lmd-jazzededtech/cloud-init/+git/cloud-init-1
Only violethaze74@jazzededtech.com can upload to this branch. If you are violethaze74@jazzededtech.com please log in for upload directions.

Branch merges

Branch information

Recent commits

8c12ddd... by Brett Holman <email address hidden>

test: make ansible test work across older versions (#1691)

- python http.server: drop --directory arg
- systemd: use absolute paths with ExecStart=

Additionally make git repo setup more robust and improve output
during error condition.

08edff8... by Teodor Garzdin <email address hidden>

Networkd multi-address support/fix (#1685)

Fix that given a cloud-init network config with multiple addresses for
an interface the networkd backend outputs an invalid networkd service
config. According to the `man` page of `systemd-networkd` only one
`Address=` field per `[Address]` section is allowed.

6d208e8... by Brett Holman <email address hidden>

make: drop broken targets (#1688)

f1d901c... by Alberto Contreras

net: Passthough v2 netconfigs in netplan systems (#1650)

Adhere to Netplan Passthrough documented behavior,
not limiting v2 netplan configs to the subset of
props that cloud-init supports.

LP: #1978543

5d12b43... by Emanuele Giuseppe Esposito <email address hidden>

NM ipv6 connection does not work on Azure and Openstack (#1616)

This problem is found after below bug fix, ipv6 is not workable after launching a new instance.

[Bug 2056964](https://bugzilla.redhat.com/show_bug.cgi?id=2056964) - [RHEL-9]Rebase cloud-init from Fedora so it can configure networking using NM keyfiles

we can see log "Not bringing up newly configured network interfaces" in /var/log/cloud-init.log

2022-06-17 02:15:22,191 - __init__.py[DEBUG]: Selected renderer 'network-manager' from priority list: ['netplan', 'network-manager', 'networkd', 'sysconfig', 'eni']
2022-06-17 02:15:22,192 - util.py[DEBUG]: Writing to /etc/NetworkManager/system-connections/cloud-init-eth0.nmconnection - wb: [600] 376 bytes
2022-06-17 02:15:22,193 - util.py[DEBUG]: Restoring selinux mode for /etc/NetworkManager/system-connections/cloud-init-eth0.nmconnection (recursive=False)
2022-06-17 02:15:22,194 - util.py[DEBUG]: Restoring selinux mode for /etc/NetworkManager/system-connections/cloud-init-eth0.nmconnection (recursive=False)
2022-06-17 02:15:22,194 - __init__.py[DEBUG]: Not bringing up newly configured network interfaces

On Azure, ping6 gets Network is unreachable.

$ ping6 ace:cab:deca::fe -c 1
ping6: connect: Network is unreachable

# ip -6 route
::1 dev lo proto kernel metric 256 pref medium
ace:cab:deca::4 dev eth0 proto kernel metric 100 pref medium
fe80::/64 dev eth0 proto kernel metric 1024 pref medium

cat /etc/NetworkManager/system-connections/cloud-init-eth0.nmconnection
# Generated by cloud-init. Changes will be lost.

[connection]
id=cloud-init eth0
uuid=1dd9a779-d327-56e1-8454-c65e2556c12c
type=ethernet

[user]
org.freedesktop.NetworkManager.origin=cloud-init

[ethernet]
mac-address=00:0D:3A:58:0F:B3

[ipv4]
method=auto
may-fail=false

[ipv6]
method=dhcp
may-fail=false
addr-gen-mode=stable-privacy

On Openstack, ping6 error is a little bit different, but unreachable either.

# ping6 2620:52:0:88:f816:3eff:fe23:e623 -c 1
PING 2620:52:0:88:f816:3eff:fe23:e623(2620:52:0:88:f816:3eff:fe23:e623) 56 data bytes
From 2620:52:0:88:ef7e:b597:1cc8:32df icmp_seq=1 Destination unreachable: Address unreachable

--- 2620:52:0:88:f816:3eff:fe23:e623 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

$ ip -6 route
::1 dev lo proto kernel metric 256 pref medium
2620:52:0:88::/64 dev eth0 proto ra metric 100 pref medium
fe80::/64 dev eth0 proto kernel metric 1024 pref medium
default proto static metric 100 pref medium
 nexthop via 2620:52:0:88::3fe dev eth0 weight 1
 nexthop via fe80::4e16:fc01:d8c:98ed dev eth0 weight 1
 nexthop via fe80::4e16:fc01:d83:88aa dev eth0 weight 1

cat /etc/NetworkManager/system-connections/cloud-init-eth0.nmconnection
# Generated by cloud-init. Changes will be lost.

[connection]
id=cloud-init eth0
uuid=1dd9a779-d327-56e1-8454-c65e2556c12c
type=ethernet

[user]
org.freedesktop.NetworkManager.origin=cloud-init

[ethernet]
mtu=1500
mac-address=FA:16:3E:CE:97:C9

[ipv4]
method=auto
may-fail=false

[ipv6]
method=auto
may-fail=false
addr-gen-mode=stable-privacy
route1=::/0,2620:52:0:88::3fe

dhcp6 mode should be "auto" and addr-gen-mode=stable-privacy should be removed.

Signed-off-by: Emanuele Giuseppe Esposito <email address hidden>

RHBZ: 2098501

d14a32a... by Alberto Contreras

Fix check_format_tip (#1679)

9f0efc4... by Andrew Kutz <email address hidden>

DataSourceVMware: fix var use before init (#1674)

This patch fixes an issue in the DataSourceVMware code where the
variable ipv6_ready was used in a logging statement before it was
initialized. Now the variable is initialized, avoiding the panic.

LP: #1987005

7b5ab33... by Chad Smith

rpm/copr: ensure RPM represents new clean.d dir artifacts (#1680)

RPM build errors:
    Installed (but unpackaged) file(s) found:
   /etc/cloud/clean.d/README

3116471... by Chad Smith

test: avoid centos leaked check of /etc/yum.repos.d/epel-testing.repo (#1676)

da4d72d... by Brett Holman <email address hidden>

Release 22.3 (#1662)

Bump the version in cloudinit/version.py to 22.3 and
update ChangeLog.

LP: #1986703