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 1353358 - "atomic host upgrade" failing
Summary: "atomic host upgrade" failing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks: 1321771
TreeView+ depends on / blocked
 
Reported: 2016-07-06 22:27 UTC by Partha Aji
Modified: 2021-04-06 17:56 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:28:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
complete logs for atomic upgrade (8.57 KB, text/plain)
2016-07-18 12:30 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 2065 0 Normal CLOSED - CURRENTRELEASE Error doing an ostree pull from pulp with an entitlement certificate. 2016-08-19 14:00:34 UTC

Description Partha Aji 2016-07-06 22:27:30 UTC
* Create a content view with the "Red Hat Enterprise Linux Atomic Host Trees" repo. 
* Register an Atomic Host to satellite via subscriptions-manager and point it to this content view
* Subscribe to this content view 
* Try "atomic host upgrade" on the command line

Expected:
Functional Upgrade

Actual:
Forbidden 403

In /var/log/httpd/foreman-ssl_error_ssl.log on observes

"""
[Wed Jul 06 16:16:16.252301 2016] [:error] [pid 15303] [client 10.8.0.151:52266] Traceback (most recent call last):
[Wed Jul 06 16:16:16.252311 2016] [:error] [pid 15303] [client 10.8.0.151:52266]   File "/usr/lib/python2.7/site-packages/pulp/repoauth/wsgi.py", line 43, in allow_access
[Wed Jul 06 16:16:16.252367 2016] [:error] [pid 15303] [client 10.8.0.151:52266]     if not authenticators[auth_method](environ):
[Wed Jul 06 16:16:16.252374 2016] [:error] [pid 15303] [client 10.8.0.151:52266]   File "/usr/lib/python2.7/site-packages/pulp/oid_validation/oid_validation.py", line 59, in authenticate
[Wed Jul 06 16:16:16.252447 2016] [:error] [pid 15303] [client 10.8.0.151:52266]     valid = validator.is_valid(environ["REQUEST_URI"], cert_pem, wsgi_error_logger)
[Wed Jul 06 16:16:16.252453 2016] [:error] [pid 15303] [client 10.8.0.151:52266]   File "/usr/lib/python2.7/site-packages/pulp/oid_validation/oid_validation.py", line 138, in is_valid
[Wed Jul 06 16:16:16.252462 2016] [:error] [pid 15303] [client 10.8.0.151:52266]     is_valid = self._check_extensions(cert_pem, dest, log_func, self.repo_url_prefixes)
[Wed Jul 06 16:16:16.252466 2016] [:error] [pid 15303] [client 10.8.0.151:52266]   File "/usr/lib/python2.7/site-packages/pulp/oid_validation/oid_validation.py", line 200, in _check_extensions
[Wed Jul 06 16:16:16.252471 2016] [:error] [pid 15303] [client 10.8.0.151:52266]     valid = cert.check_path(repo_dest)
[Wed Jul 06 16:16:16.252475 2016] [:error] [pid 15303] [client 10.8.0.151:52266]   File "/usr/lib64/python2.7/site-packages/rhsm/certificate2.py", line 558, in check_path
[Wed Jul 06 16:16:16.252605 2016] [:error] [pid 15303] [client 10.8.0.151:52266]     return self._path_tree.match_path(path)
[Wed Jul 06 16:16:16.252611 2016] [:error] [pid 15303] [client 10.8.0.151:52266]   File "/usr/lib64/python2.7/site-packages/rhsm/pathtree.py", line 78, in match_path
[Wed Jul 06 16:16:16.252701 2016] [:error] [pid 15303] [client 10.8.0.151:52266]     raise ValueError('path must start with "/"')
[Wed Jul 06 16:16:16.252711 2016] [:error] [pid 15303] [client 10.8.0.151:52266] ValueError: path must start with "/"
[Wed Jul 06 16:16:16.252756 2016] [:error] [pid 15303] [client 10.8.0.151:52266] mod_wsgi (pid=15303): Client denied by server configuration: '/var/www/pub/ostree/web/Default_Organization/Library/atomic-view/content/dist/rhel/atomic/7/7Server/x86_64/ostree/repo/config'.
"""

Comment 1 Partha Aji 2016-07-06 22:28:51 UTC
Being addressed in -> https://pulp.plan.io/issues/2065

Comment 2 pulp-infra@redhat.com 2016-07-06 23:30:24 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 3 pulp-infra@redhat.com 2016-07-06 23:30:26 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2016-07-08 16:30:19 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2016-07-11 15:02:48 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 7 Sachin Ghai 2016-07-18 12:30:11 UTC
Verified with sat62 GA snap20.2

I don't see any error in /var/log/httpd/foreman-ssl_error_ssl.log while performing atomic host upgrade.

upgrade was completed successfully. I can see updated ostree after upgrade:

Run "systemctl reboot" to start a reboot
-bash-4.2# atomic host status
  TIMESTAMP (UTC)         VERSION     ID             OSNAME               REFSPEC                                                        
  2016-06-18 15:21:12     7.2.5       9bfe1fb650     rhel-atomic-host     rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard     
* 2016-02-18 15:34:28     7.2.2-1     04019d7e50     rhel-atomic-host     rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard     
-bash-4.2# 


Please see the attachment for complete logs

Comment 8 Sachin Ghai 2016-07-18 12:30:55 UTC
Created attachment 1181037 [details]
complete logs for atomic upgrade

Comment 9 pulp-infra@redhat.com 2016-07-26 18:30:27 UTC
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.

Comment 10 Bryan Kearney 2016-07-27 11:28:28 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/RHBA-2016:1501

Comment 11 pulp-infra@redhat.com 2016-08-15 20:30:28 UTC
The Pulp upstream bug status is at VERIFIED. Updating the external tracker on this bug.

Comment 12 pulp-infra@redhat.com 2016-08-19 14:00:35 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.


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