Instance may lose network connectivity after resuming the 2nd time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ec2-hibinit-agent (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Some hibernated, then started instances don't restore network connectivity keeping the instance unreachable.
* The fix is restarting systemd-networkd on resume.
[Test Case]
0. Start an m5.large instance from an encrypted EBS-backed AMI, with hibernation enabled.
1. Install ec2-hibinit-agent
2. Start a long running process on the instance, like top in screen.
3. Hibernate, then after it finished start the instance on EC2 console
4. Log in to the instance and observe top still running in screen (to prove that the instance resumed and had not been restarted).
5. Hibernate, then after it finished start the instance on EC2 console
6. Log in to the instance and observe top still running in screen.
(This second cycle ensures that hibernation works more than once.)
[Regression Potential]
* Restarting systemd-networkd may cause disturbances in complex networking setups, but since the system was hibernated networking was down anyway.
* The hook in /lib/systemd/
$ apt-file search /lib/systemd/
atop: /lib/systemd/
battery-stats: /lib/systemd/
ec2-hibinit-agent: /lib/systemd/
hdparm: /lib/systemd/
lizardfs-
tuxonice-userui: /lib/systemd/
unattended-
Only lizardfs-
summary: |
- Instance may loosw network connectivity after resuming the 2nd time + Instance may loose network connectivity after resuming the 2nd time |
description: | updated |
tags: | added: id-5c000da0aa62bc2994611bd2 |
description: | updated |
summary: |
- Instance may loose network connectivity after resuming the 2nd time + Instance may lose network connectivity after resuming the 2nd time |
This bug was fixed in the package ec2-hibinit-agent - 1.0.0-0ubuntu5
---------------
ec2-hibinit-agent (1.0.0-0ubuntu5) eoan; urgency=medium
* debian/gbp.conf: Fix packaging branch name
* Restart systemd-networkd on resuming from hibernation.
On resume the system sometimes does not restore network connections
and this is a way of reliably triggering the restoration. (LP: #1830427)
-- Balint Reczey <email address hidden> Fri, 24 May 2019 21:48:20 +0200