From nobody Sun Aug 04 16:14:42 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WcPm30Jvfz5SZfD for ; Sun, 04 Aug 2024 16:14:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WcPm25PbMz4rCy for ; Sun, 4 Aug 2024 16:14:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722788082; a=rsa-sha256; cv=none; b=Dfps/uxt/xDW+cp5fGr1L1IqHtoqFel5KtNisFGQVknOTPzwosQo4obqOyMVR0nzY8NqZ2 ILxi87Sqs4keR1NxYPgIwXeqIa1gsoR2wkP7yWnp6FaI4x8Y7f0brIZkS61K6B+bRpWT+P Mk2Mfiav9tOvHzQwArCwhl/ZR3ntZx3ovIwRtE2xBekcMpUlXLaLi/qyVSyI1lV5m56KHF F7vJhPh2KXgDE3nSmWWKSZq6KeO2G2LINN29VnOX0s/xA7o3FFb+lZMRALV1uLYyCRjsVn 2Fs3qBcuRRX/lcbxLx/iKdfhkxGImn+hL5rw9F3ezAVz5vXQ3gTF7/hPFgzywQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722788082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EmMojdVGHcFuPN5faIzeQYRfwJWAyy3bHrw+w9ohRpg=; b=p+jc5KUuJgpJlv3ecKObTBdyHOxalVg5fjdkd9QGohxdfpusyubOsEXLuN0n1iXPX/rDN8 3UZyUMBfJ5XshBbbApxfjynSKVgQvEkacjHX2IzfB2XlKTNURcDDASRLH7R1GmXsErA+qS 3QIkVoSimg1Z1VkiSW4UykYCehRpqK8ij31D26TyTyw4so10pGut1QIThuzSPSdltP6lze tYZE4uZypM2NdU12nuS9ixQ0gVv3IDDPFDu3IdX8THlt4GSmmtQqk09yDr5YuPe71iIrpr dOcKBEyGtg7yZ3tSsiy8ute3T0Qobk/B1gjBm2lGcPWcpmm7xj6IRCz13fmE5w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WcPm24by1z12dS for ; Sun, 4 Aug 2024 16:14:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 474GEgG6007724 for ; Sun, 4 Aug 2024 16:14:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 474GEgft007722 for ports-bugs@FreeBSD.org; Sun, 4 Aug 2024 16:14:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280615] emulators/qemu qemu-ga will not launch thaw operation after freeze on guests Date: Sun, 04 Aug 2024 16:14:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ozy@netpower.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bofh@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280615 Bug ID: 280615 Summary: emulators/qemu qemu-ga will not launch thaw operation after freeze on guests Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: bofh@freebsd.org Reporter: ozy@netpower.fr Flags: maintainer-feedback?(bofh@freebsd.org) Assignee: bofh@freebsd.org I have multiple FreeBSD VMs running on linux KVM hosts. I'm trying to make a fsfreeze-hook script on a FreeBSD VM to have quiescing when backing up on KVM hosts. I've noticed that guest's qemu-ga will launch the fsfreeze-hook with freeze argument, but won't run it again with thaw argument until a new snapshot is made, hence rendering the script useless. Steps to reproduce the behavior, on the FreeBSD guest: 1. Create the following file in /etc/qemu/fsfreeze-hook #!/bin/sh case "$1" in "freeze") echo "FREEZE" >> /tmp/fsfreze ;; "thaw") echo "THAW" >> /tmp/fsfreze ;; esac 2. Make the file executable 3. Run qemu-ga manually and specify the path to the script, eg run /usr/bin/qemu-ga -F/etc/qemu/fsfreeze-hook -d -v -l /var/log/qemu-ga.log 4. On the KVM host, run virsh snapshot-create --disk-only --atomic --quiesce 5. On guest, look into file /tmp/fsfreeze, it will contain FREEZE. So the freeze operation has run, but no thaw operation has been requested. 6. Run the snapshot command again on KVM host 7. libvirt will complain with error: internal error: unable to execute QEMU agent command 'guest-fsfreeze-freeze': filesystems have already frozen 8. On guest, look into file tmp/fsfreeze, it will contain FREEZE FREEZE THAW Expected behavior At the end of the snapshot process, qemu-ga should call fsfreeze-hook script with 'thaw' argument. But it runs it only on second (failed) attempt. Running the freeze/thaw hooks on other guests work. Environment: Host: Almalinux 9.4 on intel x64 with qemu-kvm 8.2.0-11 and libvirt-daemon-= kvm 10.0.0-6.6 Guest: FreeBSD 14.1-RELEASE-p2 with qemu-ga 9.0.1 --=20 You are receiving this mail because: You are the assignee for the bug.=