Bug 1381371

Summary: Webui shows EUS satellite-tools 6.2 repos, but they do not have packages to sync
Product: Red Hat Satellite Reporter: Kathryn Dixon <kdixon>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.2.2CC: alexander, andrew.schofield, bbuckingham, bkearney, jsherril, kabbott, kdixon, tmlcoch, vdhande
Target Milestone: UnspecifiedKeywords: PrioBumpGSS
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-13 20:52:21 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:

Description Kathryn Dixon 2016-10-03 21:28:50 UTC
Description of problem:

Trying to enable the following repositories

Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.4
Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.5

Fails with the following error:

{"basearch"=>"x86_64", "releasever"=>"6.4"} are not valid substitutions for /content/eus/rhel/server/6/$releasever/$basearch/sat-tools/6.2/os. No valid metadata files found for /content/eus/rhel/server/6/6.4/x86_64/sat-tools/6.2/os

And

{"basearch"=>"x86_64", "releasever"=>"6.5"} are not valid substitutions for /content/eus/rhel/server/6/$releasever/$basearch/sat-tools/6.2/os. No valid metadata files found for /content/eus/rhel/server/6/6.5/x86_64/sat-tools/6.2/os

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


How reproducible: 100%


Steps to Reproduce:
1. content > red hat repos
2. click rhel with EUS 
3. click to enable the satellite tools 6.5 or below

Actual results: you get an error, since they don't "exist"


Expected results: If these aren't going to be used, we should not have them in the webui.


Additional info:

Comment 1 Andrew Schofield 2016-10-03 21:51:53 UTC
Via API:

GET <satserver>/katello/api/v2//products/22/repository_sets/4795/available_repositories

{
  "total": 16,
  "subtotal": 16,
  "page": null,
  "per_page": null,
  "error": null,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "substitutions": {
        "releasever": "6.1",
        "basearch": "i386"
      },
      "path": "/content/eus/rhel/server/6/6.1/i386/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs i386 6.1",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_i386_6_1",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.1",
        "basearch": "x86_64"
      },
      "path": "/content/eus/rhel/server/6/6.1/x86_64/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.1",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_x86_64_6_1",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.2",
        "basearch": "i386"
      },
      "path": "/content/eus/rhel/server/6/6.2/i386/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs i386 6.2",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_i386_6_2",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.2",
        "basearch": "x86_64"
      },
      "path": "/content/eus/rhel/server/6/6.2/x86_64/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.2",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_x86_64_6_2",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.3",
        "basearch": "i386"
      },
      "path": "/content/eus/rhel/server/6/6.3/i386/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs i386 6.3",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_i386_6_3",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.3",
        "basearch": "x86_64"
      },
      "path": "/content/eus/rhel/server/6/6.3/x86_64/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.3",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_x86_64_6_3",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.4",
        "basearch": "i386"
      },
      "path": "/content/eus/rhel/server/6/6.4/i386/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs i386 6.4",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_i386_6_4",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.4",
        "basearch": "x86_64"
      },
      "path": "/content/eus/rhel/server/6/6.4/x86_64/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.4",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_x86_64_6_4",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.5",
        "basearch": "i386"
      },
      "path": "/content/eus/rhel/server/6/6.5/i386/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs i386 6.5",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_i386_6_5",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.5",
        "basearch": "x86_64"
      },
      "path": "/content/eus/rhel/server/6/6.5/x86_64/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.5",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_x86_64_6_5",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.6",
        "basearch": "i386"
      },
      "path": "/content/eus/rhel/server/6/6.6/i386/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs i386 6.6",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_i386_6_6",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.6",
        "basearch": "x86_64"
      },
      "path": "/content/eus/rhel/server/6/6.6/x86_64/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.6",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_x86_64_6_6",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.7",
        "basearch": "i386"
      },
      "path": "/content/eus/rhel/server/6/6.7/i386/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs i386 6.7",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_i386_6_7",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6.7",
        "basearch": "x86_64"
      },
      "path": "/content/eus/rhel/server/6/6.7/x86_64/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6.7",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_x86_64_6_7",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6Server",
        "basearch": "i386"
      },
      "path": "/content/eus/rhel/server/6/6Server/i386/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs i386 6Server",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_i386_6Server",
      "enabled": false,
      "promoted": false
    },
    {
      "substitutions": {
        "releasever": "6Server",
        "basearch": "x86_64"
      },
      "path": "/content/eus/rhel/server/6/6Server/x86_64/sat-tools/6.2/os",
      "repo_name": "Red Hat Satellite Tools 6.2 for RHEL 6 Server - EUS RPMs x86_64 6Server",
      "name": "Red Hat Satellite Tools 6.2 (for RHEL 6 Server - EUS) (RPMs)",
      "pulp_id": "Credit_Suisse-Red_Hat_Enterprise_Linux_Server_-_Extended_Update_Support-Red_Hat_Satellite_Tools_6_2_for_RHEL_6_Server_-_EUS_RPMs_x86_64_6Server",
      "enabled": true,
      "promoted": true
    }
  ]
}

POST: <server>/katello/api/v2//products/22/repository_sets/4795/enable

(with body: {"basearch" : "x86_64", "releasever" : "6.4"})

{
  "displayMessage": "{\"basearch\"=>\"x86_64\", \"releasever\"=>\"6.4\"} are not valid substitutions for /content/eus/rhel/server/6/$releasever/$basearch/sat-tools/6.2/os. No valid metadata files found for /content/eus/rhel/server/6/6.4/x86_64/sat-tools/6.2/os",
  "errors": [
    "{\"basearch\"=>\"x86_64\", \"releasever\"=>\"6.4\"} are not valid substitutions for /content/eus/rhel/server/6/$releasever/$basearch/sat-tools/6.2/os. No valid metadata files found for /content/eus/rhel/server/6/6.4/x86_64/sat-tools/6.2/os"
  ]
}

Comment 3 Kathryn Dixon 2016-10-03 23:13:47 UTC
Also, If we don't ship 6.2 EUS tools, why can I sync 6.6 and 6.7 ? Just looking for some constancy here. So I can inform our customers of the correct answer.

Comment 6 Kathryn Dixon 2016-10-05 14:53:29 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1266358

yes this comes back to this bug above, however this is more so focused on needed a solution to 6.4 eus tools to match the 6.4 rhel rpms.

Comment 7 Tomas Mlcoch 2016-10-05 15:03:00 UTC
This is expected, because when Satellite 6.2 was released, the RHEL-6.4 EUS and RHEL-6.5.EUS weren't supported anymore, thus no content was pushed for these two RHELs (and thus no repositories exist).

Only AUS versions of these two RHELs are currently supported.

Comment 9 Alexander Schories 2016-10-31 14:48:23 UTC
I assume we face the same bug/issue:

Enabling 

Red Hat Enterprise Linux 6 Server - Extended Update Support - RH Common RPMs x86_64 6.7

on Satellite 6.2.2 leads to:

{"basearch"=>"x86_64", "releasever"=>"6.7"} are not valid substitutions for /content/eus/rhel/server/6/$releasever/$basearch/rh-common/os. No valid metadata files found for /content/eus/rhel/server/6/6.7/x86_64/rh-common/os

Comment 10 Tomas Mlcoch 2016-11-02 12:11:18 UTC
I just reconfigured "Initial RHEL version" field for the Sat Tool 6.2 EUS repositories.

Kathryn, could you please test if that change resolved the issue with Sat Tools repositories? (You may need to refresh your sat certificate I guess)

Comment 11 Justin Sherrill 2016-11-17 20:39:14 UTC
Tomas, I'm still seeing these show up even with the latest manifest.  I was thinking via https://bugzilla.redhat.com/show_bug.cgi?id=1266358 there was no way for these not to show up.  Thoughts?

Thansk!

Comment 14 Bryan Kearney 2016-12-13 20:52:21 UTC
Given the above, we released an improved error message in 6.2.5 (BZ#1266358). I am closing this out as a Duplicate of that bug.

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