Project

General

Profile

Bug #26460

Syncing Atomic Host Trees to capsule fails

Added by Justin Sherrill about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1678820

Description of problem:

While enabling Atomic Host Trees getting error OSTree was imported without specifying a version first

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

How reproducible:

Steps to Reproduce:
1. WebUI --> content --> Red Hat Repositories
2. Search for Red Hat Enterprise Linux Atomic Host (Trees)
3. See the logs

Actual results:

==> /var/log/messages

Feb 19 20:04:15 vm249-236 pulp: py.warnings:WARNING: [194e3f21] (20474-32224) /usr/lib/python2.7/site-packages/pulp_ostree/plugins/lib.py:49: PyGIWarning: OSTree was imported without specifying a version first. Use gi.require_version('OSTree', '1.0') before import to ensure that the right version gets loaded.
Feb 19 20:04:15 vm249-236 pulp: py.warnings:WARNING: [194e3f21] (20474-32224) lib = getattr(import('gi.repository', fromlist=[name]), name)
Feb 19 20:04:15 vm249-236 pulp: py.warnings:WARNING: [194e3f21] (20474-32224)

Expected results:

Additional info:

Capsule sync also getting failed :

> /var/log/messages <
Feb 19 20:04:15 vm253-254 pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._release_resource[6342e64c-c883-4420-997f-c3020d741784]
Feb 19 20:04:15 vm253-254 pulp: celery.app.trace:INFO: [874e521e] Task pulp.server.async.tasks._queue_reserved_task[874e521e-8aee-4aa3-b616-5b2a4dc11753] succeeded in 0.0374186599511s: None
Feb 19 20:04:15 vm253-254 pulp: py.warnings:WARNING: [c8346cba] (27514-62240) /usr/lib/python2.7/site-packages/pulp_ostree/plugins/lib.py:49: PyGIWarning: OSTree was imported without specifying a version first. Use gi.require_version('OSTree', '1.0') before import to ensure that the right version gets loaded.
Feb 19 20:04:15 vm253-254 pulp: py.warnings:WARNING: [c8346cba] (27514-62240) lib = getattr(import('gi.repository', fromlist=[name]), name)
Feb 19 20:04:15 vm253-254 pulp: py.warnings:WARNING: [c8346cba] (27514-62240) > /var/log/httpd/pulp-https_access_ssl.log <
10.74.249.87 - admin [19/Feb/2019:20:04:16 +0530] "GET /pulp/api/v2/tasks/c8346cba-029f-440c-963d-9dccf6cfc8ed/ HTTP/1.1" 200 774 "-" "rest-client/2.0.1 (linux-gnu x86_64) ruby/2.5.3p105"
10.74.249.87 - admin [19/Feb/2019:20:04:17 +0530] "GET /pulp/api/v2/tasks/c8346cba-029f-440c-963d-9dccf6cfc8ed/ HTTP/1.1" 200 774 "-" "rest-client/2.0.1 (linux-gnu x86_64) ruby/2.5.3p105" > /var/log/messages <
Feb 19 20:04:18 vm253-254 pulp: pulp.server.async.tasks:INFO: [c8346cba] Task failed : [c8346cba-029f-440c-963d-9dccf6cfc8ed] : Fetch summary failed. Reason: GLib.Error('Server returned status 403: Forbidden', 'g-io-error-quark', 1)
Feb 19 20:04:18 vm253-254 pulp: celery.app.trace:INFO: [c8346cba] Task pulp.server.managers.repo.sync.sync[c8346cba-029f-440c-963d-9dccf6cfc8ed] raised expected: PulpCodedException()
Feb 19 20:04:18 vm253-254 pulp: celery.app.trace:INFO: [6342e64c] Task pulp.server.async.tasks._release_resource[6342e64c-c883-4420-997f-c3020d741784] succeeded in 0.0022354000248s: None

Associated revisions

Revision 0d4468eb (diff)
Added by Justin Sherrill about 3 years ago

Fixes #26460 - fix ostree smart proxy sync

previously during refactorings, a bug was introduced
where instead of passing the main servers url to the smart proxy to sync,
the upstream url was passed

History

#1 Updated by The Foreman Bot about 3 years ago

  • Assignee set to Justin Sherrill
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8042 added

#2 Updated by Andrew Kofink about 3 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.0

#3 Updated by Justin Sherrill about 3 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF