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 1589646

Summary: foreman-rake katello:regenerate_repo_metadata failed with "NoMethodError: undefined method `in_default_view' for #<Array:0x000000000ce126f0>"
Product: Red Hat Satellite Reporter: matt jia <mjia>
Component: RepositoriesAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: inecas, jcallaha, jhutar, kbidarka, mmccune, pcreech, pmoravec
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.4.5.75-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1596350 (view as bug list) Environment:
Last Closed: 2018-08-22 20:07:12 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
Full stacktrace
none
task status successful none

Description matt jia 2018-06-11 05:04:11 UTC
Description of problem:

Can't run foreman-rake katello:regenerate_repo_metadata  as it failed with

"NoMethodError: undefined method `in_default_view' for #<Array:0x000000000ce126f0>"

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

6.3.1

How reproducible:

Easy

Steps to Reproduce:

foreman-rake katello:regenerate_repo_metadata

Actual results:

"NoMethodError: undefined method `in_default_view' for #<Array:0x000000000ce126f0>"


Expected results:

No error.

Comment 2 Brad Buckingham 2018-06-13 20:20:35 UTC
Created attachment 1451027 [details]
Full stacktrace

Comment 4 Stephen Benjamin 2018-06-14 15:25:38 UTC
Created redmine issue http://projects.theforeman.org/issues/23943 from this bug

Comment 5 Satellite Program 2018-06-14 16:19:33 UTC
Upstream bug assigned to stbenjam

Comment 6 Satellite Program 2018-06-14 16:19:37 UTC
Upstream bug assigned to stbenjam

Comment 7 Satellite Program 2018-06-15 00:18:57 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23943 has been resolved.

Comment 11 Kedar Bidarkar 2018-08-03 10:01:08 UTC
[root@sat63-rhel7 ~]# foreman-rake katello:regenerate_repo_metadata
Regenerating 50 repositories.  You can monitor these on task id 2315ebbc-1cec-45ef-b5fc-3eebe40fb342

There was no error upon running the command and  no error in the /v/l/foreman/production.log

VERIFIED with the Sat6.3.3 snap2 build.

Will also attach a screenshot of the task success status shortly.

Comment 12 Kedar Bidarkar 2018-08-03 10:02:47 UTC
Created attachment 1472935 [details]
task status successful

Comment 14 errata-xmlrpc 2018-08-22 20:07:12 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/RHBA-2018:2550