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 1257054 - Kickstart repo import "Title has already been taken"
Summary: Kickstart repo import "Title has already been taken"
Keywords:
Status: CLOSED DUPLICATE of bug 1208618
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2015-08-26 07:39 UTC by Peter Vreman
Modified: 2015-10-16 11:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-16 11:20:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
production.log of repositories sync process (294.66 KB, text/plain)
2015-08-26 07:39 UTC, Peter Vreman
no flags Details
Duplicate OS items (1.98 KB, text/plain)
2015-08-26 08:10 UTC, Peter Vreman
no flags Details

Description Peter Vreman 2015-08-26 07:39:50 UTC
Created attachment 1067167 [details]
production.log of repositories sync process

Description of problem:
With a fresh and empty Sat6.1.1 installation doing a first bulk import of multiple redhat release repositories the kickstart repositories fail with ActiveRecord::RecordInvalid: Validation failed: Title has already been taken from Actions::Katello::Repository::UpdateMedia.



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


How reproducible:


Steps to Reproduce:
1. Fresh and clean Sat6.1.1 installation
2. Enable the following redhat repositories:
Red Hat Enterprise Linux 6 Server - Extended Update Support - Optional RPMs x86_64 6.5
Red Hat Enterprise Linux 6 Server - Extended Update Support - Optional RPMs x86_64 6.6
Red Hat Enterprise Linux 6 Server - Extended Update Support - Oracle Java RPMs x86_64 6.5
Red Hat Enterprise Linux 6 Server - Extended Update Support - Oracle Java RPMs x86_64 6.6
Red Hat Enterprise Linux 6 Server - Extended Update Support RPMs x86_64 6.5
Red Hat Enterprise Linux 6 Server - Extended Update Support RPMs x86_64 6.6
Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6.5
Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6.6
Red Hat Enterprise Linux 6 Server - Optional RPMs x86_64 6Server
Red Hat Enterprise Linux 6 Server - Oracle Java RPMs x86_64 6.5
Red Hat Enterprise Linux 6 Server - Oracle Java RPMs x86_64 6.6
Red Hat Enterprise Linux 6 Server - Oracle Java RPMs x86_64 6Server
Red Hat Enterprise Linux 6 Server - RH Common RPMs x86_64 6.5
Red Hat Enterprise Linux 6 Server - RH Common RPMs x86_64 6.6
Red Hat Enterprise Linux 6 Server - RH Common RPMs x86_64 6Server
Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.5
Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.6
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.5
Red Hat Enterprise Linux 6 Server RPMs x86_64 6.6
Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server
Red Hat Enterprise Linux 7 Server - Extended Update Support - Optional RPMs x86_64 7.1
Red Hat Enterprise Linux 7 Server - Extended Update Support - Oracle Java RPMs x86_64 7.1
Red Hat Enterprise Linux 7 Server - Extended Update Support RPMs x86_64 7.1
Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7.1
Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7Server
Red Hat Enterprise Linux 7 Server - Oracle Java RPMs x86_64 7.1
Red Hat Enterprise Linux 7 Server - Oracle Java RPMs x86_64 7Server
Red Hat Enterprise Linux 7 Server - RH Common RPMs x86_64 7.1
Red Hat Enterprise Linux 7 Server - RH Common RPMs x86_64 7Server
Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.1
Red Hat Enterprise Linux 7 Server RPMs x86_64 7.1
Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
Red Hat Enterprise Linux Load Balancer for RHEL 6 Server - Extended Update Support RPMs x86_64 6.5
Red Hat Enterprise Linux Load Balancer for RHEL 6 Server - Extended Update Support RPMs x86_64 6.6
Red Hat Enterprise Linux Load Balancer for RHEL 6 Server RPMs x86_64 6.5
Red Hat Enterprise Linux Load Balancer for RHEL 6 Server RPMs x86_64 6.6
Red Hat Enterprise Linux Load Balancer for RHEL 6 Server RPMs x86_64 6Server
Red Hat Satellite 6.0 - Optional for RHEL 6 Server RPMs x86_64 6.5
Red Hat Satellite 6.0 - Optional for RHEL 6 Server RPMs x86_64 6.6
Red Hat Satellite 6.0 - Optional for RHEL 6 Server RPMs x86_64 6Server
Red Hat Satellite 6.0 - Optional for RHEL 7 Server RPMs x86_64 7.1
Red Hat Satellite 6.0 - Optional for RHEL 7 Server RPMs x86_64 7Server
Red Hat Satellite 6.0 for RHEL 6 Server RPMs x86_64 6.5
Red Hat Satellite 6.0 for RHEL 6 Server RPMs x86_64 6.6
Red Hat Satellite 6.0 for RHEL 6 Server RPMs x86_64 6Server
Red Hat Satellite 6.0 for RHEL 7 Server RPMs x86_64 7.1
Red Hat Satellite 6.0 for RHEL 7 Server RPMs x86_64 7Server
Red Hat Satellite 6.1 for RHEL 6 Server RPMs x86_64
Red Hat Satellite 6.1 for RHEL 7 Server RPMs x86_64
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 6 RHEL 6 Server EUS x86_64 6.5
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 6 RHEL 6 Server EUS x86_64 6.6
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 6 Server x86_64 6.5
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 6 Server x86_64 6.6
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 6 Server x86_64 6Server
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 RHEL 7 Server EUS x86_64 7.1
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server x86_64 7.1
Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server x86_64 7Server
3. goto Sync management
4. Select All repositories
5. Click Sync


Actual results:
Kickstart repositories fail

Expected results:
All repositories successful synced and OS media for 6.5,6.6,7.1 correctly associated and made available for provisioning (Foreman)

Additional info:

Comment 1 Peter Vreman 2015-08-26 08:10:06 UTC
Created attachment 1067182 [details]
Duplicate OS items

At the same time are also duplicate OS items created

Comment 2 Peter Vreman 2015-08-26 08:30:19 UTC
Quick analysis of the OS and creation times
The Sat6.1.1 is installed on RHEL6.6

The "RHEL Server 6.6" entry (notice also the difference in title/description) is created by the fact importer:

  "results": [
    {
      "updated_at": "2015-08-25T17:28:30Z",
      "created_at": "2015-08-25T17:28:30Z",
      "password_hash": "MD5",
      "id": 1,
      "name": "RedHat",
      "title": "RHEL Server 6.6",
      "description": "RHEL Server 6.6",
      "major": "6",
      "minor": "6",
      "family": "Redhat",
      "release_name": null
    },

[crash] root@li-lc-1578:~# grep 'Import facts ' /var/log/foreman/production.log
2015-08-25 17:28:30 [I] Import facts for 'li-lc-1578.hag.hilti.com' completed. Added: 153, Updated: 0, Deleted 0 facts
2015-08-25 17:58:30 [I] Import facts for 'li-lc-1578.hag.hilti.com' completed. Added: 0, Updated: 5, Deleted 0 facts
2015-08-25 18:28:25 [I] Import facts for 'li-lc-1578.hag.hilti.com' completed. Added: 0, Updated: 7, Deleted 0 facts

This is a major difference compared to RHEL6.5 and RHEL7.1 that have to be created during the repository imports.

Comment 3 Justin Sherrill 2015-09-14 16:00:34 UTC
Probably related to:  https://bugzilla.redhat.com/show_bug.cgi?id=1208618

Comment 4 Brad Buckingham 2015-10-16 11:20:20 UTC
This bug appears to be a duplicate of bug 1208618, which is being delivered with 6.1.3.  If the issue persists after upgrading to 6.1.3, please feel free to re-open.  Thanks!

*** This bug has been marked as a duplicate of bug 1208618 ***


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