Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to revert the revert: Failed to start Network Configuration #236

Open
darkbasic opened this issue Oct 11, 2022 · 2 comments
Open

Comments

@darkbasic
Copy link

Describe the bug
I've created a virtual machine to assess if zsys is still safe to use in Ubuntu 22.04 LTS and I've tried to revert to a previous snapshot. So far so good, but once I try to revert the revert it gets unbootable: systemd loops between Starting Network Time Synchronization and Failed to start Network Configuration.

To Reproduce
Steps to reproduce the behavior:

  1. Revert to a previous snapshot
  2. Revert the revert
  3. See error

Expected behavior
Should revert the revert.

For ubuntu users, please run and copy the following:

  1. ubuntu-bug zsys --save=/tmp/report
  2. Copy paste below /tmp/report content:
    http://dpaste.com/3HBA84X2T

Screenshots
ubuntu2204zfs

Installed versions:

  • OS:
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
  • Zsysd running version:
    zsysctl 0.5.9
    zsysd 0.5.9

Additional context
It's basically a fresh install of Ubuntu 22.04 LTS done following this guide: https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2022.04%20Root%20on%20ZFS.html#
The only additional step is adding the zfs ppa later on.
I've create a btrfs snapshot of the virtual machine image prior to attempting the revert, thus the issue is 100% reproducible on demand. I'll be able to keep the VM snapshot around for a couple of weeks before having to get rid of it to free up some space. In the meantime I'll be able to provide remote access to it if you desire so.

@darkbasic
Copy link
Author

I've create a new VM from scratch without the zfs ppa and I can still reproduce it.

@radu-marinescu
Copy link

radu-marinescu commented Mar 18, 2024

I am in the same situation. I used the emergency shell to mask the services:

systemctl mask systemd-resolved.service
systemctl mask systemd-timesyncd.service

In my case, when doing the revert from lets say ubuntu_c0ffee, an ubuntu_deadbe dataset gets created for that system state but no child datasets. So, I end up with rpool/ROOT/ubuntu_deadbe as / and rpool/ROOT/ubuntu_c0ffee/var/lib/apt and rpool/ROOT/ubuntu_c0ffee/var/lib/dpkg as /var/lib/apt and /var/lib/dpkg respectively.

This means that the revert is leaving the system in an inconsistent state. I am not certain if this is the reason why systemd-timesyncd and systemd-resolved cannot start, but it is a possibility. My snapshot was in a consistent state, and /var/lib/apt and /var/lib/dpkg are the only child datasets of my ubuntu_c0ffee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants