Bug 25166 - wrong backingStore after reboot
Summary: wrong backingStore after reboot
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-22 09:28 CEST by Dieter Schütze
Modified: 2021-09-07 14:11 CEST (History)
0 users

See Also:
Source RPM: lib64virt0-5.3.0-2.mga7
CVE:
Status comment:


Attachments

Description Dieter Schütze 2019-07-22 09:28:01 CEST
Description of problem:
after reboot the host, guest does not start anymore.

Version-Release number of selected component (if applicable):
lib64virt0-5.3.0-2.mga7

How reproducible:
every reboot of host with guests.

Steps to Reproduce:
1. virsh edit guestname
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/virtuell/guestname.qcow2'/>
      <backingStore type='file'>
        <format type='qcow2'/>
        <source file='/virtuell/guestname.snapshot.qcow2'/>
      </backingStore>
      <target dev='hda' bus='ide'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
2. reboot host, guest does not start (autostart is on)
   backingStore source is now the normal image not the snapshot.
   Normal source is now snapshot, but snapshot doesn't exists it can't start.
3. virsh edit guestname
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/virtuell/guestname.snapshot.qcow2'/>
      <backingStore type='file'>
        <format type='qcow2'/>
        <source file='/virtuell/guestname.qcow2'/>
      </backingStore>
      <target dev='hda' bus='ide'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
4. change this back and you can start the guest.
Comment 1 Lewis Smith 2019-07-23 22:13:55 CEST
Libvirt has no registered maintainer, but tv has dealt with it most in the past; so assigning to you (rather than globally) provisionally.

Assignee: bugsquad => thierry.vignaud

Comment 2 Dieter Schütze 2019-10-02 10:47:52 CEST
detailed description.

make backup of running machines descripted on libvirt.org

https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit

everything is fine so far.

edit the machine xml with virsh edit and it looks like this:
  <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/virtuell/guestname.qcow2'/>
      <target dev='hda' bus='ide'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

but if you make a reload or restart of libvirtd then:

    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/virtuell/guestname.snapshot.qcow2'/>
      <backingStore type='file'>
        <format type='qcow2'/>
        <source file='/virtuell/guestname.qcow2'/>
      </backingStore>
      <target dev='hda' bus='ide'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

 The machine could never start anymore because the guestname.snapshot.qcow2 is no longer active after virsh blockcommit guestname vda --active --verbose --pivot which is right.
The entry for the 1st source file is wrong. It must be the entry from the backingStore element guestname.qcow2
Comment 3 Dieter Schütze 2019-10-11 11:01:49 CEST
additional info
in Mageia 6 everything works fine.
Only Mageia 7 has this trouble and it is of course important.
If you have many virtuell Machines you couldn't repair any of them via virsh edit machinename after restart. This could not be a solution for this problem.
I can't upgrade to Mageia 7 at this time.
Comment 4 Aurelien Oudelet 2021-07-06 13:15:15 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 5 Marja Van Waes 2021-09-07 14:11:27 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.