touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #61032
[Bug 1429938] [NEW] systemd changes behavior of apt-get remove openssh-server
Public bug reported:
On Trusty and Utopic, when you run `apt-get remove openssh-server` over
an SSH connection, your existing SSH connection remains open, so it's
possible to run additional commands afterward.
However, on Vivid now that the switch to systemd has been made, `apt-
get remove openssh-server` closes the existing SSH connection
immediately, causing your SSH client to exit with a non-zero status. I
have a hunch there's a lot of automation tooling out there that relies
on the old behavior.
For what it's worth, this change breaks the internal image mastering
tools that System76 uses. Prior to exporting an image tarball, I spin up
a golden VM with qemu, rysnc a script to it, and then execute this
script over SSH.
The important step is that I need to remove openssh-server prior to
shutting down the VM, so these scripts always end with something like
this:
apt-get -y purge openssh-server ssh-import-id
apt-get -y autoremove
shutdown -h now
As far as I can tell, this behavior change will likewise be a problem
when running `do-release-upgrade` on a remote server over SSH. Or more
generally, anytime you run "apt-get upgrade/dist-upgrade" via SSH, it
seems this would be a problem whenever the openssh-server package
happens to be updated.
** Affects: openssh (Ubuntu)
Importance: Undecided
Status: Confirmed
** Tags: systemd-boot vivid
** Tags added: systemd vivid
** Tags removed: systemd
** Tags added: systemd-boot
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1429938
Title:
systemd changes behavior of apt-get remove openssh-server
Status in openssh package in Ubuntu:
Confirmed
Bug description:
On Trusty and Utopic, when you run `apt-get remove openssh-server`
over an SSH connection, your existing SSH connection remains open, so
it's possible to run additional commands afterward.
However, on Vivid now that the switch to systemd has been made, `apt-
get remove openssh-server` closes the existing SSH connection
immediately, causing your SSH client to exit with a non-zero status. I
have a hunch there's a lot of automation tooling out there that relies
on the old behavior.
For what it's worth, this change breaks the internal image mastering
tools that System76 uses. Prior to exporting an image tarball, I spin
up a golden VM with qemu, rysnc a script to it, and then execute this
script over SSH.
The important step is that I need to remove openssh-server prior to
shutting down the VM, so these scripts always end with something like
this:
apt-get -y purge openssh-server ssh-import-id
apt-get -y autoremove
shutdown -h now
As far as I can tell, this behavior change will likewise be a problem
when running `do-release-upgrade` on a remote server over SSH. Or more
generally, anytime you run "apt-get upgrade/dist-upgrade" via SSH, it
seems this would be a problem whenever the openssh-server package
happens to be updated.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1429938/+subscriptions
Follow ups
-
[Bug 1429938] Re: reboot does not return under systemd
From: Egmont Koblinger, 2015-03-25
-
[Bug 1429938] Re: reboot does not return under systemd
From: Jason Gerard DeRose, 2015-03-25
-
[Bug 1429938] Re: reboot does not return under systemd
From: god, 2015-03-25
-
[Bug 1429938] Re: reboot does not return under systemd
From: Jason Gerard DeRose, 2015-03-19
-
[Bug 1429938] Re: reboot does not return under systemd
From: Jason Gerard DeRose, 2015-03-19
-
[Bug 1429938] Re: reboot does not return under systemd
From: Rolf Leggewie, 2015-03-19
-
[Bug 1429938] Re: reboot does not return under systemd
From: Egmont Koblinger, 2015-03-17
-
[Bug 1429938] Re: reboot does not return under systemd
From: Jason Gerard DeRose, 2015-03-11
-
[Bug 1429938] Re: reboot does not return under systemd
From: Martin Pitt, 2015-03-11
-
[Bug 1429938] Re: stopping ssh.service closes existing ssh connections
From: Jason Gerard DeRose, 2015-03-11
-
[Bug 1429938] Re: stopping ssh.service closes existing ssh connections
From: Jason Gerard DeRose, 2015-03-11
-
[Bug 1429938] Re: stopping ssh.service closes existing ssh connections
From: Jason Gerard DeRose, 2015-03-11
-
[Bug 1429938] Re: stopping ssh.service closes existing ssh connections
From: Jason Gerard DeRose, 2015-03-11
-
[Bug 1429938] Re: stopping ssh.service closes existing ssh connections
From: Jason Gerard DeRose, 2015-03-11
-
[Bug 1429938] Re: systemd changes behavior of apt-get remove openssh-server
From: Martin Pitt, 2015-03-11
-
[Bug 1429938] Re: systemd changes behavior of apt-get remove openssh-server
From: Martin Pitt, 2015-03-11
-
[Bug 1429938] Re: systemd changes behavior of apt-get remove openssh-server
From: Alberto Salvia Novella, 2015-03-10
-
[Bug 1429938] Re: systemd changes behavior of apt-get remove openssh-server
From: Martin Pitt, 2015-03-10
-
[Bug 1429938] Re: systemd changes behavior of apt-get remove openssh-server
From: Launchpad Bug Tracker, 2015-03-10
-
[Bug 1429938] Re: systemd changes behavior of apt-get remove openssh-server
From: Ricardo Salveti, 2015-03-09
-
[Bug 1429938] Re: systemd changes behavior of apt-get remove openssh-server
From: Jason Gerard DeRose, 2015-03-09
-
[Bug 1429938] Re: systemd changes behavior of apt-get remove openssh-server
From: Launchpad Bug Tracker, 2015-03-09
-
[Bug 1429938] [NEW] systemd changes behavior of apt-get remove openssh-server
From: Jason Gerard DeRose, 2015-03-09
References