Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1393195

Summary: Publish a CV with a puppet module raising NoMethodError
Product: Red Hat Satellite Reporter: Swapnil Abnave <sabnave>
Component: Content ViewsAssignee: Swapnil Abnave <sabnave>
Status: CLOSED ERRATA QA Contact: Brad Buckingham <bbuckingham>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2.1CC: bbuckingham, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 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:
Attachments:
Description Flags
production.log(filename: errors.log) none

Description Swapnil Abnave 2016-11-09 05:05:09 UTC
Created attachment 1218799 [details]
production.log(filename: errors.log)

Description of problem:
Locations are disabled in satellite-answers.yaml(locations_enabled: false)
Not able to publish a Content-View with a puppet module. 

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

How reproducible:
Always

Steps to Reproduce:
1. Setup a satellite server with location disabled
2. Create and publish content-view.

Actual results:
Exception raised. Request completed with 500 error.
2016-10-26 07:57:06 [foreman-tasks/action] [E] undefined method `id' for nil:NilClass (NoMethodError)

Expected results:
Content-view should be published.

Additional Info:
From customer : Attached production.log(filename: errors.log)

Comment 2 Brad Buckingham 2016-11-15 16:18:27 UTC
Note: It is reasonable to update the software to improve the behavior (error messaging) in this configuration (Locations disabled); however, it should be noted that Satellite 6 does not officially support having locations disabled.  If that is desired, a separate RFE should be requested to ensure proper QE coverage.

Comment 3 Brad Buckingham 2016-11-15 16:19:00 UTC
Moving to assigned, since there is currently a PR associated with the upstream issue.

Comment 4 Bryan Kearney 2016-11-17 21:15:07 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17281 has been resolved.

Comment 5 Brad Buckingham 2017-08-16 16:31:16 UTC
Verified with Satellite 6.3 SNAP 11: satellite-6.3.0-16.0.beta.el7sat.noarch,  tfm-rubygem-katello-3.4.4-1.el7sat.noarch

Installed and configured a Satellite 6.3 with locations disabled (--foreman-locations-enabled=false).  Imported several puppet modules in to a repository, added them to a content view and successfully published the CV.  No errors were observed.

Comment 6 Bryan Kearney 2018-02-21 16:43:46 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 7 Satellite Program 2018-02-21 16:51:07 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336