Fix fallocate issue on cloud-init 19.4 for Fedora 33 cloud images
by Federico Ressi
Hello all,
I am writing to this list because I found out F33 cloud image cloud init
support for creating swap files looks to be broken probably because of a
known Linux 5.7+ kernel issue [1].
The problem is cloud-init is trying to create a new swap file by using
fallocate command that is not working well (kernel is complaining the file
has holes when executing swapon command just later). The easy workaround
for this issue is to use dd command instead of fallocate command in
cloud-init.
Because I don't know the whole procedure required for submitting a patch I
am writing to you in the hope you can help me in having the F33 cloud image
fixed.
Please find attached to this e-mail the simple fix for cloud init 19.4 I
just wrote. The patch should apply the procedure documented in Fedora docs
[2]
Thank you in advance.
Federico
[1] https://marcelhauri.ch/blog/swapon-swapfile-has-holes/
[2]
https://docs.fedoraproject.org/en-US/Fedora/14/html/Storage_Administratio...
2 years, 1 month
Fedora Cloud Meeting Minutes 2021-04-27
by Dusty Mabe
Minutes: https://meetbot.fedoraproject.org/fedora-meeting-1/2021-04-27/fedora_clou...
Minutes (text): https://meetbot.fedoraproject.org/fedora-meeting-1/2021-04-27/fedora_clou...
Log: https://meetbot.fedoraproject.org/fedora-meeting-1/2021-04-27/fedora_clou...
=======================================
#fedora-meeting-1: fedora_cloud_meeting
=======================================
Meeting started by dustymabe at 15:59:56 UTC. The full logs are
available at
https://meetbot.fedoraproject.org/fedora-meeting-1/2021-04-27/fedora_clou...
.
Meeting summary
---------------
* roll call (dustymabe, 16:00:01)
* fedora cloud test day (dustymabe, 16:02:20)
* LINK:
https://communityblog.fedoraproject.org/fedora-linux-34-cloud-test-day/
(dustymabe, 16:02:57)
* test day results are at
http://testdays.fedorainfracloud.org/events/112 (dustymabe,
16:03:15)
* ACTION: nb to hand out Fedora Badges to everyone who participated in
the test day (dustymabe, 16:05:02)
* packaging cloud agents for GCP (dustymabe, 16:05:37)
* LINK: https://pagure.io/cloud-sig/issue/313 (dustymabe, 16:05:43)
* GCP packaging reviews from ericedens has been approved. pending
import and build in rawhide (dustymabe, 16:07:32)
* cloud-init doesn't properly forward nameservers to systemd-resolved
(dustymabe, 16:08:56)
* LINK: https://bugzilla.redhat.com/show_bug.cgi?id=1950770
(dustymabe, 16:09:01)
* triage cloud-init bugs (dustymabe, 16:17:16)
* LINK:
https://bugzilla.redhat.com/buglist.cgi?bug_status=__open__&component=clo...
(dustymabe, 16:17:28)
* open floor (dustymabe, 16:21:50)
Meeting ended at 16:25:58 UTC.
Action Items
------------
* nb to hand out Fedora Badges to everyone who participated in the test
day
Action Items, by person
-----------------------
* nb
* nb to hand out Fedora Badges to everyone who participated in the
test day
* **UNASSIGNED**
* (none)
People Present (lines said)
---------------------------
* dustymabe (47)
* otubo (15)
* zodbot (14)
* mcatanzaro (7)
* Eighth_Doctor (4)
* nb (3)
* cyberpear (1)
* michaelgugino (1)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
2 years, 1 month
systemd update breaks DNS resolution on Fedora 33 cloud instances
by Tadej Janež
Hi all!
I was recently hit by this and it took me some time to figure out what
was going on.
I provisioned a fresh Fedora 33 cloud instance on DigitalOcean.
After completing the initial upgrade via 'dnf update' and rebooting the
system, DNS resolution stopped working.
I did a little debugging and saw that no DNS servers were configured:
$ resolvectl dns
Global:
Link 2 (eth0):
Link 3 (eth1):
$ resolvectl status
Global
Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (eth0)
Current Scopes: LLMNR/IPv4 LLMNR/IPv6
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS
DNSSEC=no/unsupported
Link 3 (eth1)
I was confused how could that happen since running 'dnf update' on the
first boot clearly required DNS resolution to work.
It turns out a recent systemd update, namely systemd-246.7-2.fc33
(https://bodhi.fedoraproject.org/updates/FEDORA-2020-3616681a70),
includes this commit:
https://src.fedoraproject.org/rpms/systemd/c/ed795fb1fc9a2c20ebcac34bdf7e...
which removes the fallback DNS server list (i.e. Cloudflare's and/or
Google's DNS servers) due to concerns over DNS requests being
personally identifying information (PII) in the sense of GDPR?
In combination with NetworkManager's DNS server handling being disabled
via cloud-init:
$ cat /etc/NetworkManager/conf.d/99-cloud-init.conf
# Created by cloud-init on instance boot automatically, do not edit.
#
[main]
dns = none
this results in no DNS servers being configured on the system.
The consequence is that Fedora 33 cloud instances are broken after
updating the systemd package to version 246.7-2.fc33.
(I haven't checked but if Fedora 34 cloud images include this version
of systemd, then DNS resolution won't work even on first boot.)
Please advise on the best steps to fix this issue.
Regards,
Tadej
2 years, 1 month