Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-153

Official Redhat yum repo (and mirrors) missing required repomd.xml

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The yum repo at http://pkg.jenkins-ci.org/redhat is missing the yum metadata, which IIRC should be located in repodata/repomd.xml relative to the base of the repo.

      Without this file, many yum operations, including installs, fail. In our case, we use Red Hat Satellite to replicate repos for intranet use, as individual nodes cannot install software directly over the internet. Replication via the reposync utility fails because this metadata file is not present.

      A yum repo is more than a directory of package files. It also serves an index containing package metadata so that client systems can check for updates and resolve dependencies without downloading the packages themselves.

      Please generate the repodata/ directory and its constituent files.. and regenerate the files whenever new RPMs are released. This is usually done with the createrepo utility either directly or as part of the publish process.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          This has been resolved, more recent requests are not about the Redhat repo.

          OJ LaBoeuf

          Old stuff takes ~40 min.

          That's because our mirror providers asked us to limit the disk space we're using (IIRC), so obsolete releases nobody should be running for any reason are on a machine with very limited bandwidth to not explode our credit cards (well, Tyler's).

          Works as designed.

          Show
          danielbeck Daniel Beck added a comment - This has been resolved, more recent requests are not about the Redhat repo. OJ LaBoeuf Old stuff takes ~40 min. That's because our mirror providers asked us to limit the disk space we're using (IIRC), so obsolete releases nobody should be running for any reason are on a machine with very limited bandwidth to not explode our credit cards (well, Tyler's). Works as designed.
          Hide
          aneagoe Andrei Neagoe added a comment -

          This is still an issue for mirroring the content to satellite. The fact that repodata folder returns a Forbidden is the most likely issue. The error in Satellite is the following:

               "Traceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File 
               \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 473, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", 
               line 103, in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n    return self.run(*args, **kwargs)\n  
               File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 762, in sync\n    sync_report = sync_repo(transfer_repo, conduit, call_config)\n  File 
               \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 658, in wrap_f\n    return f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/importer.py\", 
               line 81, in sync_repo\n    report = self._current_sync.run()\n  File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py\", line 321, in run\n    reason=self.repomd_not_found_reason)\nPulpCodedException:
               Error retrieving metadata: Service Unavailable\n",
          
          
          ~#curl http://pkg.jenkins-ci.org/redhat/repodata/
          <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
          <html><head>
          <title>403 Forbidden</title>
          </head><body>
          <h1>Forbidden</h1>
          <p>You don't have permission to access /redhat/repodata/
          on this server.</p>
          </body></html>
          
          Show
          aneagoe Andrei Neagoe added a comment - This is still an issue for mirroring the content to satellite. The fact that repodata folder returns a Forbidden is the most likely issue. The error in Satellite is the following:      "Traceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File      \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 473, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",      line 103, in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n    return self.run(*args, **kwargs)\n        File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 762, in sync\n    sync_report = sync_repo(transfer_repo, conduit, call_config)\n  File      \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 658, in wrap_f\n    return f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/importer.py\",      line 81, in sync_repo\n    report = self._current_sync.run()\n  File \"/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py\", line 321, in run\n    reason=self.repomd_not_found_reason)\nPulpCodedException:      Error retrieving metadata: Service Unavailable\n", ~#curl http://pkg.jenkins-ci.org/redhat/repodata/ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /redhat/repodata/ on this server.</p> </body></html>
          Hide
          danielbeck Daniel Beck added a comment -

          Andrei Neagoe Could you please be more specific about what you're doing and what you expect here? Note how your error message has nothing to do with the issue description, repomd.xml exists, there's just no directory index.

          Show
          danielbeck Daniel Beck added a comment - Andrei Neagoe Could you please be more specific about what you're doing and what you expect here? Note how your error message has nothing to do with the issue description, repomd.xml exists, there's just no directory index.
          Hide
          aneagoe Andrei Neagoe added a comment -

          Daniel Beck Repo is defined with type yum and this URL: http://pkg.jenkins-ci.org/redhat/

          I was now able to sync after switching the URL used to https://pkg.jenkins.io/redhat/

          The problem seems to have been with our transparent proxy that blocks access to http://pkg.jenkins-ci.org/redhat/repomd.xml but is completely happy with the other one (both http and https). I also see that https://pkg.jenkins-ci.org is using a wrong certificate (for pkg.jenkins.io).

          This ticket can be closed again.

          Show
          aneagoe Andrei Neagoe added a comment - Daniel Beck Repo is defined with type yum and this URL: http://pkg.jenkins-ci.org/redhat/ I was now able to sync after switching the URL used to https://pkg.jenkins.io/redhat/ The problem seems to have been with our transparent proxy that blocks access to http://pkg.jenkins-ci.org/redhat/repomd.xml but is completely happy with the other one (both http and https). I also see that https://pkg.jenkins-ci.org is using a wrong certificate (for pkg.jenkins.io). This ticket can be closed again.
          Hide
          markewaite Mark Waite added a comment -

          Confirmed today that the repomd.xml file is available as expected.

          Show
          markewaite Mark Waite added a comment - Confirmed today that the repomd.xml file is available as expected.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            skoppelman Steve Koppelman
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: