Bug 1393195 - Publish a CV with a puppet module raising NoMethodError
Summary: Publish a CV with a puppet module raising NoMethodError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.2.1
Hardware: All
OS: All
unspecified
low
Target Milestone: Unspecified
Assignee: Swapnil Abnave
QA Contact: Brad Buckingham
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-09 05:05 UTC by Swapnil Abnave
Modified: 2019-12-16 07:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
production.log(filename: errors.log) (95.67 KB, text/plain)
2016-11-09 05:05 UTC, Swapnil Abnave
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17281 0 None None None 2016-11-09 06:51:12 UTC

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


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