Uploaded image for project: 'CoreOS OCP'
  1. CoreOS OCP
  2. COS-3167

[coreos/fedora-coreos-tracker] Zincati fails to query interactive sessions

XMLWordPrintable

    • Upstream
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Integration & Delivery - 267
    • 0
    • 0.000

      [2471239436] Upstream Reporter: Raman Gupta
      Upstream issue status: Open
      Upstream description:

          1. Describe the bug

      I'm experimenting with Fedora CoreOS in a VM. I'm finding my VM just randomly reboots, even while I'm in the middle of working on it.

      Inspecting the logs via `journalctl` I see this:

      ```
      Aug 16 09:02:46 myhost zincati[4777]: [ERROR zincati::update_agent] failed to check for interactive sessions: failed to deserialize output of `loginctl`
      Aug 16 09:02:46 myhost zincati[4777]: [WARN zincati::update_agent] assuming no active sessions and proceeding anyway
      Aug 16 09:02:46 myhost zincati[4777]: [INFO zincati::update_agent::actor] staged deployment '40.20240728.3.0' available, proceeding to finalize it
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Loaded sysroot
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Locked sysroot
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Initiated txn FinalizeDeployment for client(dbus:1.5829 unit:zincati.service uid:981): /org/projectatomic/rpmostree1/fedora_coreos
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Process [pid: 1718634 uid: 981 unit: zincati.service] connected to transaction progress
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Finalized deployment; rebooting into 2098f40910d5d7c0171a8f7173d81cb070f4047e1e81d9d5228d5d62e24fe722
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Txn FinalizeDeployment on /org/projectatomic/rpmostree1/fedora_coreos successful
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Unlocked sysroot
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Initiating reboot requested from transaction
      Aug 16 09:02:46 myhost systemd-logind[1165]: The system will reboot now!
      Aug 16 09:02:46 myhost systemd-logind[1165]: System is rebooting.
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: Process [pid: 1718634 uid: 981 unit: zincati.service] disconnected from transaction progress
      Aug 16 09:02:46 myhost rpm-ostree[1716434]: In idle state; will auto-exit in 60 seconds
      Aug 16 09:02:46 myhost zincati[4777]: [INFO zincati::update_agent::actor] update finalized: 40.20240728.3.0
      Aug 16 09:02:46 myhost zincati[4777]: [INFO zincati::update_agent::actor] update applied, waiting for reboot: 40.20240728.3.0
      ```

      From these logs it seems like zincati is checking if there are any active sessions, failing to do so ("failed to check for interactive sessions: failed to deserialize output of `loginctl`"), and then proceeding to assume there are none and rebooting anyway ("assuming no active sessions and proceeding anyway").

      This is annoying to say the least.

          1. Reproduction steps

      1. Install Fedora CoreOS
      2. Wait

          1. Expected behavior

      System should not reboot automatically while it is being used!

          1. Actual behavior

      System rebooted automatically while being used.

          1. System details

      QEMU

      ```
      NAME="Fedora Linux"
      VERSION="40.20240728.3.0 (CoreOS)"
      ID=fedora
      VERSION_ID=40
      VERSION_CODENAME=""
      PLATFORM_ID="platform:f40"
      PRETTY_NAME="Fedora CoreOS 40.20240728.3.0"
      ANSI_COLOR="0;38;2;60;110;180"
      LOGO=fedora-logo-icon
      CPE_NAME="cpe:/o:fedoraproject:fedora:40"
      HOME_URL="https://getfedora.org/coreos/"
      DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-coreos/"
      SUPPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
      BUG_REPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
      REDHAT_BUGZILLA_PRODUCT="Fedora"
      REDHAT_BUGZILLA_PRODUCT_VERSION=40
      REDHAT_SUPPORT_PRODUCT="Fedora"
      REDHAT_SUPPORT_PRODUCT_VERSION=40
      SUPPORT_END=2025-05-13
      VARIANT="CoreOS"
      VARIANT_ID=coreos
      OSTREE_VERSION='40.20240728.3.0'
      ```

          1. Butane or Ignition config

      ```yaml
      variant: fcos
      version: 1.4.0
      passwd:
      users:

      • name: core
        ssh_authorized_keys:
      • ssh-ed25519 xxx
        ```
          1. Additional information

      The output of `loginctl` is:

      ```
      $ loginctl
      SESSION UID USER SEAT TTY STATE IDLE SINCE
      2 1000 core - - active no -

      1 sessions listed.
      ```

              rhn-gps-dmabe Dusty Mabe
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: