Comment 7 for bug 1949893

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks Lukas! This is really helpful.

As suggested I started with #1 and added a Sleep(5) (just to be on the safe side for now). This works and is great (https://github.com/snapcore/snapd/pull/10752/commits/2bd029ef923ab66d0dc8e23f18f16a28d76e70ac)

Unfortunately I hit the next obstacle in #2 - as suggested in mattermost as a workaround I create the hints file with just "network:" in it when it doesn't exist (https://github.com/snapcore/snapd/pull/10752/commits/31d29615f425f832b1155cd4cd8e0a9829cfb0f2). This seems to be not enough - I still get a crash (from the spread run: https://paste.ubuntu.com/p/SRV9znVyQp/) that looks exactly the same as the crash in https://bugs.launchpad.net/netplan/+bug/1949884/comments/1 - if I inspect this origin file after the crash it's empty. I added debug code to log the content before the call and there is the "network:" line in there but not anymore after.