BTW, one option is to simply remove the upgrade logic. The logic is needed when upgrading libvirt from < 1.3.0, where virtlogd did not exist. So for example the logic is executed when upgrading Leap 42.1 -> Leap42.2, or SLE12 SP1 -> SLE12 SP2. Upgrading an old libvirt < 1.3.0 with current 3.3.0 Factory package is unlikely, so it is probably safe to remove it.