Bug 1469564 - Error importing manifest.PG::Error: ERROR: null value in column "virt_who" violates not-null constraint
Error importing manifest.PG::Error: ERROR: null value in column "virt_who" vi...
Status: VERIFIED
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Candlepin (Show other bugs)
6.3.0
Unspecified Unspecified
unspecified Severity high (vote)
: Beta
: --
Assigned To: Michael Stead
jcallaha
: FieldEngineering, Regression, Triaged
Depends On: 1469575
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-11 09:52 EDT by Barnaby Court
Modified: 2017-11-02 12 EDT (History)
9 users (show)

See Also:
Fixed In Version: candlepin-2.1.5-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1465781
: 1469575 (view as bug list)
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
bad import (121.18 KB, image/png)
2017-11-02 12:07 EDT, jcallaha
no flags Details
good import (89.51 KB, image/png)
2017-11-02 12:07 EDT, jcallaha
no flags Details
before.txt (7.44 KB, text/plain)
2017-11-02 12:08 EDT, jcallaha
no flags Details
after.txt (1.26 KB, text/plain)
2017-11-02 12:08 EDT, jcallaha
no flags Details
upgrade log (2.89 MB, text/plain)
2017-11-02 12:09 EDT, jcallaha
no flags Details

  None (edit)
Comment 7 jcallaha 2017-11-02 12:06:43 EDT
Verified in Satellite 6.3 Snap 22.

With mstead's help, we created a 6.2.8 satellite and restored the reproducer db on it. 
Then ran the script mentioned in comment 6 and captured the output in before.txt (attached). 
After that, I verified that we were in the correct state by attempting to import a manifest, which failed with the desired error (see attached screenshot).
Next was an upgrade straight from 6.2.8 to the latest 6.3 snap, which went smoothly (see attached upgrade log).
After cleaning up an old default capsule, and incorrect repositories, I was then able to successfully import my manifest (see attached screenshot).
Finally, I re-ran the script from comment #6 and captured the output in after.txt (attached). Everything looks great.
Comment 8 jcallaha 2017-11-02 12:07 EDT
Created attachment 1347061 [details]
bad import
Comment 9 jcallaha 2017-11-02 12:07 EDT
Created attachment 1347062 [details]
good import
Comment 10 jcallaha 2017-11-02 12:08 EDT
Created attachment 1347063 [details]
before.txt
Comment 11 jcallaha 2017-11-02 12:08 EDT
Created attachment 1347064 [details]
after.txt
Comment 12 jcallaha 2017-11-02 12:09 EDT
Created attachment 1347065 [details]
upgrade log

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