Bug 1219650

Summary: Unable to sync capsule: "undefined method `fetch' for nil:NilClass"
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: Foreman ProxyAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: bkearney, mmccune, sghai, tkolhar
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10422
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 13:58:26 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 Corey Welton 2015-05-07 21:51:03 UTC
Description of problem:
Attempting to sync capsule in latest compose/respin fails.

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

GA Snap3 compose 2

How reproducible:


Steps to Reproduce:
1.  Register system and turn said system into a capsule.  perform all the usual steps (add environments etc.)
2.  Attempt to sync
3.

Actual results:

[root@cloud-qe-21 ~]# hammer --username admin --password changeme capsule content synchronize --async --id 2
Could not synchronize capsule content:
  undefined method `fetch' for nil:NilClass

Expected results:
Capsule can sync

Additional info:

Comment 1 Mike McCune 2015-05-07 21:52:38 UTC
It errors immediately as well. Fails right at the start of the Action.

Comment 5 Stephen Benjamin 2015-05-08 05:29:14 UTC
Created redmine issue http://projects.theforeman.org/issues/10422 from this bug

Comment 7 Bryan Kearney 2015-05-11 08:06:09 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10422 has been closed
-------------
Anonymous
Applied in changeset commit:katello|d575025fe14e2c2cf91f1878a518ad3a6e80189c.

Comment 10 Sachin Ghai 2015-05-14 09:25:53 UTC
Verified with sat6.1 GA snap4 c2

Capsule sync is working fine with it. I didn't see the reported issue.


[root@dhcp207]# hammer -u admin -p changeme capsule content synchronize --id=2
[............................................................................................................................................] [100%]

[root@dhcp207-97 pxelinux.cfg]# df -h
Filesystem                      Size  Used Avail Use% Mounted on
/dev/mapper/vg_dhcp201-lv_root   48G  5.1G   41G  12% /
devtmpfs                        5.8G     0  5.8G   0% /dev
tmpfs                           5.8G     0  5.8G   0% /dev/shm
tmpfs                           5.8G   25M  5.8G   1% /run
tmpfs                           5.8G     0  5.8G   0% /sys/fs/cgroup
/dev/vda1                       477M   98M  350M  22% /boot


[root@dhcp207-97 pxelinux.cfg]# df -h
Filesystem                      Size  Used Avail Use% Mounted on
/dev/mapper/vg_dhcp201-lv_root   48G   15G   32G  32% /
devtmpfs                        5.8G     0  5.8G   0% /dev
tmpfs                           5.8G     0  5.8G   0% /dev/shm
tmpfs                           5.8G   33M  5.8G   1% /run
tmpfs                           5.8G     0  5.8G   0% /sys/fs/cgroup
/dev/vda1                       477M   98M  350M  22% /boot

Comment 11 Bryan Kearney 2015-08-11 13:23:37 UTC
This bug is slated to be released with Satellite 6.1.

Comment 12 Bryan Kearney 2015-08-12 13:58:26 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.