Bug 1219650 - Unable to sync capsule: "undefined method `fetch' for nil:NilClass"
Summary: Unable to sync capsule: "undefined method `fetch' for nil:NilClass"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Stephen Benjamin
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-07 21:51 UTC by Corey Welton
Modified: 2017-02-23 20:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:58:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10422 0 None None None 2016-04-22 16:56:03 UTC

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.


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