Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1390254 - [z-stream clone - 4.0.5] Upgrade from 3.6 to 4.0 fails on 04_00_0140_convert_memory_snapshots_to_disks.sql
[z-stream clone - 4.0.5] Upgrade from 3.6 to 4.0 fails on 04_00_0140_convert_...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
4.0.3
Unspecified Unspecified
high Severity high
: ovirt-4.0.6
: ---
Assigned To: Arik
sefi litmanovich
: ZStream
Depends On: 1382746
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-31 10:56 EDT by rhev-integ
Modified: 2017-01-10 12:00 EST (History)
17 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1382746
Environment:
Last Closed: 2017-01-10 12:00:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Virt
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
log and DB dumps (1.07 MB, application/x-gzip)
2016-11-07 12:18 EST, sefi litmanovich
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 65440 None None None 2016-10-31 10:56 EDT
oVirt gerrit 66313 None None None 2016-11-10 04:35 EST
Red Hat Product Errata RHBA-2017:0043 normal SHIPPED_LIVE Red Hat Virtualization Manager 4.0.6 2017-01-10 16:52:43 EST

  None (edit)
Comment 1 sefi litmanovich 2016-11-07 12:17:10 EST
Hi, Are we sure that this is fixed for 4.0.5?
Failed to verify with rhevm-4.0.5.5-0.1.el7ev.noarch.
I did add some vms with different "states" to the test but basically the same:

1. Have rhevm-3.6.9.2-0.1.el6.noarch on rhel 6.8.
2. Created 5 pairs of vms, for each per one vm is left up and the other down before the upgrade (didn't think this should effect this scenario but tried it nonetheless):
pair a. snapshot with memory -> preview -> commit -> remove snapshot (snapshot points to 'Active')
pair b.  snapshot with memory -> preview -> commit (DID NOT remove snapshot)
pair c. live snapshot without memory -> preview -> commit -> remove snapshot (snapshot points to 'Active')
paird d. live snapshot without memory -> preview -> commit (DID NOT remove snapshot)
pair e. normal snapshot (vm is down).
3. backup the engine.
4. re provision engine slave with rhel-7.2
5. install ovirt-engine-setup-4.0.5.5-0.1.el7ev.noarch and all other dependencies.
6. restore engine DB with backup file from (3).
7. engine-setup.

Got same message as reporter, see attached log and DB dumps for all the information.
Comment 2 sefi litmanovich 2016-11-07 12:18 EST
Created attachment 1218158 [details]
log and DB dumps
Comment 3 Arik 2016-11-08 05:51:27 EST
(In reply to sefi litmanovich from comment #1)
> Hi, Are we sure that this is fixed for 4.0.5?

The fix is there but apparently there's a bug in it.
You created a nice test! is it possible for you to manually modify the script
/usr/share/ovirt-engine/dbscripts/upgrade/04_00_0140_convert_memory_snapshots_to_disks.sql
right before the run?
It would be great time-saver to test it with the following line after line 59 in that script:
AND length(memory_volume) > 0
Comment 4 Arik 2016-11-08 06:07:00 EST
(In reply to Arik from comment #3)
(I'm asking that after I validated that with this modification the reported issue is resolved on the attached db dump. I'm asking that in order to see that there are no other cases which are in the tested flow that the proposed fix won't cover)
Comment 5 sefi litmanovich 2016-11-08 07:49:09 EST
I changed line 59 as you asked in comment 3 and setup succeeded as you expected.
Env is back up with all the vms and their snapshots in the same state they were before the backup->upgrade flow.
Comment 6 sefi litmanovich 2016-11-21 11:00:35 EST
Verified with rhevm-4.0.6-0.1.el7ev.noarch according to the steps mentioned in comment#1
Comment 8 errata-xmlrpc 2017-01-10 12:00:27 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0043.html

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