Github user rhtyd commented on the issue:

    https://github.com/apache/cloudstack/pull/1656
  
    There are no upgrade tests to confirm the fix as all the changes are in an 
older 4.1.0->4.2.0 upgrade path. After this fix, here are manual test results 
to show that db upgrade finished cleanly without breaking with foreign key 
constraint issue:
    
    > 2016-08-23 13:55:06,886 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Migrating secondary storage to image store 
    > 2016-08-23 13:55:06,896 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Checking if we need to migrate NFS secondary storage to image store or 
staging store 
    > 2016-08-23 13:55:06,896 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Migrating NFS secondary storage to Image store 
    > 2016-08-23 13:55:06,921 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Marking NFS secondary storage in host table as removed
    > 2016-08-23 13:55:06,934 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Completed migrating secondary storage to image store 
    > 2016-08-23 13:55:06,934 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Updating volume_store_ref table from volume_host_ref table 
    > 2016-08-23 13:55:06,957 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Insert modified 22 rows
    > 2016-08-23 13:55:06,958 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Update modified 0 rows
    > 2016-08-23 13:55:06,958 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Completed updating volume_store_ref table from volume_host_ref table 
    > 2016-08-23 13:55:06,958 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Updating template_store_ref table from template_host_ref table 
    > 2016-08-23 13:55:07,445 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Insert modified 6622 rows
    > 2016-08-23 13:55:07,479 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Update modified 3666 rows
    > 2016-08-23 13:55:07,479 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Completed updating template_store_ref table from template_host_ref 
table 
    > 2016-08-23 13:55:07,479 DEBUG [c.c.u.d.Upgrade410to420] (main:null) 
(logid:) Updating snapshot_store_ref table from snapshots table 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to