#249 Keep upstream default shutdown timeout for some variants
Merged a year ago by kevin. Opened a year ago by siosm.
rpms/ siosm/fedora-release main-default-timeout  into  rawhide

@@ -0,0 +1,5 @@ 

+ # Reset the default timeout to systemd upstream defaults

+ # See: https://fedoraproject.org/wiki/Changes/Shorter_Shutdown_Timer

+ DefaultTimeoutStartSec=90s

+ DefaultTimeoutStopSec=90s

+ DefaultDeviceTimeoutSec=90s

file modified
+5
@@ -106,6 +106,7 @@ 

  Source25:       plasma-desktop.conf

  Source26:       80-kde.preset

  Source27:       81-desktop.preset

+ Source28:       default-timeout.conf

I think we probably need to name this something more specific: longer-default-shutdown-timeout.conf.

  

  BuildArch:      noarch

  
@@ -1190,6 +1191,8 @@ 

  sed -e "s#\$version#%{bug_version}#g" -e 's/$edition/CoreOS/;s/<!--.*-->//;/^$/d' %{SOURCE20} > %{buildroot}%{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.coreos

  sed -i -e "/^DEFAULT_HOSTNAME=/d" %{buildroot}%{_prefix}/lib/os-release.coreos

  install -Dm0644 %{SOURCE22} -t %{buildroot}%{_prefix}/lib/systemd/system-preset/

+ install -Dm0644 %{SOURCE28} -t %{buildroot}%{_prefix}/lib/systemd/system.conf.d/

+ install -Dm0644 %{SOURCE28} -t %{buildroot}%{_prefix}/lib/systemd/user.conf.d/

  %endif

  

  
@@ -1522,6 +1525,8 @@ 

  %files coreos

  %files identity-coreos

  %{_prefix}/lib/systemd/system-preset/80-coreos.preset

+ %{_prefix}/lib/systemd/system.conf.d/default-timeout.conf

+ %{_prefix}/lib/systemd/user.conf.d/default-timeout.conf

  %{_prefix}/lib/os-release.coreos

  %attr(0644,root,root) %{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.coreos

  %endif

Reset the default timeout to systemd upstream defaults for the following
Fedora editions/variants:
- Fedora CoreOS

See:
- Fedora Change: https://fedoraproject.org/wiki/Changes/Shorter_Shutdown_Timer
- Upstream systemd change: https://github.com/systemd/systemd/pull/26242
- Fedora systemd change: https://src.fedoraproject.org/rpms/systemd/c/ba02e904964116b848080ca72243174f4ef3eced?branch=rawhide
- Discussion for Fedora CoreOS: https://github.com/coreos/fedora-coreos-tracker/issues/1404

CC @pbrobinson for IoT if they want this too
CC @pboy for Server if they want this too
CC @dustymabe for Cloud if they want this too

For the model that Fedora Cloud handles, we actually might have preferred even shorter timeframes, since it saves money when shutting down instances.

I suspect you might want to reconsider your position of overriding the default for Fedora CoreOS based on that too.

Fedora CoreOS does not run only on Clouds and longer timeout are actually better for cloud instances as IOPS might be rate limited and thus storage operations might take longer than on bare metal for small instances. See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/K7YXBE35NJZIA5TGDC5OPNZHU6SWGE5N/.

If the Cloud SIG decides on smaller timeouts, we can make that happen here too (or in a separated PR).

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/3db32d780b334bf0bdef8416d528acf5

I think we probably need to name this something more specific: longer-default-shutdown-timeout.conf.

I think we probably need to name this something more specific: longer-default-shutdown-timeout.conf.

I can make this change in a followup PR since @siosm is AFK this week.

LGTM otherwise. Can we get this merged?

Pull-Request has been merged by kevin

a year ago
Metadata