~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager:snap-wait-more-for-pppd

Last commit made on 2020-07-14
Get this branch:
git clone -b snap-wait-more-for-pppd https://git.launchpad.net/~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager
Only Alfonso Sanchez-Beato can upload to this branch. If you are Alfonso Sanchez-Beato please log in for upload directions.

Branch merges

Branch information

Name:
snap-wait-more-for-pppd
Repository:
lp:~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager

Recent commits

d319bdb... by Alfonso Sanchez-Beato

snapcraft.yaml: build wait-more-for-pppd branch

60c3886... by System Enablement CI Bot <email address hidden>

Merge remote tracking branch update-docs

Merge-Proposal: https://code.launchpad.net/~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager/+merge/387195

Author: Alfonso Sanchez-Beato <email address hidden>

* core/pppd-plugin: wait to recover port settings before notifying death
  See code branch MP:
  https://code.launchpad.net/~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager/+merge/387041
* docs: update to reflect current state

3c8c772... by Alfonso Sanchez-Beato

core/pppd-plugin: wait to recover port settings before notifying death

pppd restores the previous settings for the serial port it uses right
before exiting. It is especially important to do so because otherwise
ModemManager is not able to recover the port as it can receive a hangup
event from the port due to CLOCAL not being restored. However, there is
currently a race condition that produces this issue. This is because
when PHASE_DEAD is notified, pppd still has not restored the port
settings - it does that a bit later, in the die() function.

This patch delays notifying PHASE_DEAD until when the exitnotify() hook
is called by pppd: when this happens the port settings have already been
restored.

There were previously efforts to fix this in commit fe090c3, so
PHASE_DEAD was used instead of PHASE_DISCONNECT to notify MM that the
port was disconnected, but that still early to ensure that the port
settings are restored.

The MM traces seen when the bug is triggered are:

ModemManager[2158]: <warn> (ttyACM1): could not re-acquire serial port lock: (5) Input/output error
ModemManager[2158]: <warn> Couldn't load Operator Code: 'Cannot run sequence: 'Could not open serial device
ttyACM1: it has been forced close'

https://mail.gnome.org/archives/networkmanager-list/2019-June/msg00014.html

See code branch MP:
https://code.launchpad.net/~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager/+merge/387041

bfdc2f0... by Alfonso Sanchez-Beato

docs: update to reflect current state

Note the even though the master branch does not contain the recipe for
the core18 or core20 snaps, we prefer it to update the documentation.
The reason is that the master branch is the one pulled from the repo
configuration in
https://github.com/canonical-web-and-design/ubuntu-core-docs

9dd5912... by Alfonso Sanchez-Beato

Update run-tests.sh with latest template

88f7823... by System Enablement CI Bot <email address hidden>

Open development for 1.2.2-27-dev

a7f2b17... by System Enablement CI Bot <email address hidden>

Bump version to 1.2.2-26

b0d17d3... by System Enablement CI Bot <email address hidden>

Update manifests to 1.2.2-26

e3c7031... by System Enablement CI Bot <email address hidden>

Update ChangeLog for 1.2.2-26

0dce529... by System Enablement CI Bot <email address hidden>

Merge remote tracking branch fix-tests

Merge-Proposal: https://code.launchpad.net/~alfonsosanchezbeato/snappy-hwe-snaps/+git/network-manager/+merge/386952

Author: Alfonso Sanchez-Beato <email address hidden>

tests/utilities: install from latest track
tests/suspend-resume: wait a bit after waking up