Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-1996

Should not be able to assign LE on the client profile which is not synced on the capsule server

XMLWordPrintable

    • Sprint 114, Sprint 115, Sprint 116, Sprint 117, Sprint 118, Sprint 119, Sprint 120, Sprint 121, Sprint 122, Sprint 123, Sprint 124, Sprint 125, Sprint 126, Sprint 127
    • Moderate
    • None

      Description of problem:

      Let say, the satellite has 2 lifecycle environment 'Development' and 'Testing', only Development LE is assigned and synced to the capsule. After registering a client through the capsule, I can assign 'Testing' LE to the client system in the content host profile. After that, 'yum repolist' fails with 404 error like below:

      ~~~~~~~~~~~~~~~
      [root@client ~]# yum repolist
      Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
      https://capsule.example.com/pulp/repos/RedHat/Development/demo/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
      Trying other mirror.
      To address this issue please refer to the below knowledge base article

      https://access.redhat.com/articles/1320623

      If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

      https://capsule.example.com/pulp/repos/RedHat/Development/demo/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
      Trying other mirror.
      repo id repo name status
      rhel-7-server-rpms/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 0
      repolist: 0
      Uploading Enabled Repositories Report
      Loaded plugins: product-id, subscription-manager
      ~~~~~~~~~

      We should not be able to assign the LE to the client which is not synced on the capsule or we can have a show proper error message(like 'This LE is not synced on the capsule') when trying to assign LE which is not synced on the capsule.

      Version-Release number of selected component (if applicable):
      Satellite 6.x

      How reproducible:
      Always

      Steps to Reproduce:
      1. Register a client through a capsule
      2. Go to client profile in content host page, assign a LE which is not synced on the capsule and select a content view in that LE
      3. Execute below command on the client:

      1. subscription-manager refresh
      2. yum clean all; yum repolist

          There are no Sub-Tasks for this issue.

              rhn-engineering-jlenz Jeremy Lenz
              rhn-support-rakumar Rakesh Kumar (Inactive)
              Vladimír Sedmík Vladimír Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: