Bug 1498158 - When using Organizational/Environment Level Content Access, systems cannot install packages.
Summary: When using Organizational/Environment Level Content Access, systems cannot in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: William Poteat
QA Contact: Bruno Rocha
URL:
Whiteboard:
Depends On: 1498215
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-03 15:04 UTC by Rich Jerrido
Modified: 2021-07-22 07:41 UTC (History)
8 users (show)

Fixed In Version: candlepin-2.1.6-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1498215 (view as bug list)
Environment:
Last Closed: 2018-02-21 17:04:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rich Jerrido 2017-10-03 15:04:54 UTC
Description of problem:


When configuring Satellite in Organizational Level Content Access, systems cannot install packages. 

Version-Release number of selected component (if applicable):
satellite-6.3.0-18.0.beta.el7sat.noarch



How reproducible:
100%

Steps to Reproduce:
1. Enable Organizational Level Content Access for an organization
2. register a system to that org
3. sync a repo
4. attempt to install package via yum.

Actual results:


the install fails with a message similar to the following:

yum install tcsh
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload    
https://satellite.example.com/pulp/repos/RedHat/1/content/dist/rhel/server/7/7Server/x86_64/extras/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://satellite.example.com/pulp/repos/RedHat/1/content/dist/rhel/server/7/7Server/x86_64/optional/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
https://satellite.example.com/pulp/repos/RedHat/1/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
https://satellite.example.com/pulp/repos/RedHat/1/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.2/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package tcsh.x86_64 0:6.18.01-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================
 Package                    Arch                         Version                              Repository                                Size
=============================================================================================================================================
Installing:
 tcsh                       x86_64                       6.18.01-15.el7                       rhel-7-server-rpms                       338 k

Transaction Summary
=============================================================================================================================================
Install  1 Package

Total download size: 338 k
Installed size: 662 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
tcsh-6.18.01-15.el7.x86_64.rpm FAILED                                          
https://satellite.example.com/pulp/repos/RedHat/1/content/dist/rhel/server/7/7Server/x86_64/os/Packages/t/tcsh-6.18.01-15.el7.x86_64.rpm: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.


Error downloading packages:
  tcsh-6.18.01-15.el7.x86_64: [Errno 256] No more mirrors to try.

Uploading Enabled Repositories Report
Loaded plugins: product-id



Expected results:

successful package installation. 


Additional info:

it appears that the '1' is being substituted for the Environment (Library) in the error above. That URL _should_ be 'https://satellite.example.com/pulp/repos/RedHat/Library/content/dist/rhel/server/7/7Server/x86_64/os/Packages/t/tcsh-6.18.01-15.el7.x86_64.rpm'

As a workaround, I can do the following (on the Satellite)

cd /var/lib/pulp/published/yum/https/repos/RedHat
ln -s Library 1

Comment 3 Bruno Rocha 2017-10-31 23:31:23 UTC
Verified with

[root@cloud-qe-19 ~]# rpm -q satellite
satellite-6.3.0-21.0.beta.el7sat.noarch

[root@cloud-qe-19 ~]# ls /var/lib/pulp/published/yum/https/repos/goldenorg/
content_views  Library  listing


Steps:

1. Enabled GT for organization
2. Uploaded GT enabled manifest
3. Enabled RH repositories and synced all repos
4. Registered a System to the Organization (no AK provided, registered directly to the org and Library env)


Results:
1. All repos listed and enabled (yum repolist)
2. installed package successfully




[root@Eight ~]# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
.. a list of all available repos ... 
....


[root@Eight ~]# yum install tcsh
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
goldenorg_gttest_fake6                                                                   | 2.1 kB  00:00:00     
rhel-7-server-extras-rpms                                                                | 2.0 kB  00:00:00     
rhel-7-server-rpms                                                                       | 2.0 kB  00:00:00     
rhel-7-server-satellite-tools-6.2-rpms                                                   | 2.1 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package tcsh.x86_64 0:6.18.01-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================
 Package            Arch                 Version                         Repository                        Size
================================================================================================================
Installing:
 tcsh               x86_64               6.18.01-15.el7                  rhel-7-server-rpms               338 k

Transaction Summary
================================================================================================================
Install  1 Package

Total download size: 338 k
Installed size: 662 k
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/rhel-7-server-rpms/packages/tcsh-6.18.01-15.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Public key for tcsh-6.18.01-15.el7.x86_64.rpm is not installed
tcsh-6.18.01-15.el7.x86_64.rpm                                                           | 338 kB  00:00:08     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0xFD431D51:
 Userid     : "Red Hat, Inc. (release key 2) <security>"
 Fingerprint: 567e 347a d004 4ade 55ba 8a5f 199e 2f91 fd43 1d51
 Package    : redhat-release-server-7.4-18.el7.x86_64 (@anaconda/7.4)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Importing GPG key 0x2FA658E0:
 Userid     : "Red Hat, Inc. (auxiliary key) <security>"
 Fingerprint: 43a6 e49c 4a38 f4be 9abf 2a53 4568 9c88 2fa6 58e0
 Package    : redhat-release-server-7.4-18.el7.x86_64 (@anaconda/7.4)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : tcsh-6.18.01-15.el7.x86_64                                                                   1/1 
rhel-7-server-extras-rpms/x86_64/productid                                               | 2.1 kB  00:00:00     
rhel-7-server-rpms/7Server/x86_64/productid                                              | 2.1 kB  00:00:00     
  Verifying  : tcsh-6.18.01-15.el7.x86_64                                                                   1/1 

Installed:
  tcsh.x86_64 0:6.18.01-15.el7                                                                                  

Complete!

Comment 4 Bryan Kearney 2018-02-21 17:04:40 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/RHSA-2018:0336


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