Bug 1176758

Summary: running "atomic db version" gives GLib-WARNING
Product: [Retired] Atomic Reporter: Dusty Mabe <dustymabe>
Component: rpm-ostreeAssignee: Colin Walters <walters>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1219700 (view as bug list) Environment:
Last Closed: 2017-06-07 14:15:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dusty Mabe 2014-12-23 04:41:15 UTC
Description of problem:

running "atomic db version" gives GLib-WARNING. See the below output:

-bash-4.3# atomic db version ba7ee9475c

(atomic db version:994): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: No such file or directory: /var/lib
.......................................
...... repeated many times ............
.......................................
ostree commit: ba7ee9475c (ba7ee9475c462c9265517ab1e5fb548524c01a71709539bbe744e5fdccf6288b)
  rpmdbv is:                         309:c42413b93a6ca3b780105dc0ae4d9fc6fc633000




Version-Release number of selected component (if applicable):

-bash-4.3# rpm -q rpm-ostree
rpm-ostree-2014.114-2.fc21.x86_64
-bash-4.3# rpm-ostree status
  TIMESTAMP (UTC)         ID             OSNAME            REFSPEC                                                
* 2014-12-22 01:30:45     5e04960269     fedora-atomic     fedora-atomic:fedora-atomic/f21/x86_64/docker-host     
  2014-12-03 01:30:09     ba7ee9475c     fedora-atomic     fedora-atomic:fedora-atomic/f21/x86_64/docker-host

How reproducible:

Always


Steps to Reproduce:
1. Run the F21 atomic image.
2. Do an atomic upgrade to 5e04960269 or some version with rpm-ostree-2014.114-2.fc21.x86_64
3. run atomic db version <hash>
4. observe error. 

Actual results:
see description


Expected results:
no glib errors

Comment 1 Colin Walters 2014-12-23 17:20:42 UTC
Should be fixed by https://github.com/projectatomic/rpm-ostree/pull/72

Comment 2 Dusty Mabe 2015-05-08 15:04:51 UTC
Should not have made 1219700 a clone of this one. Removing "Blocks" list.

Comment 3 Mike McCune 2016-03-28 23:45:25 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions