Project

General

Profile

Bug #12855

Moving disconnected satellite to connected doesn't sync the repos

Added by Kedar Bidarkar almost 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

a) Installed sat6 upstream/nightly using katello-deploy
b) Downloaded content-iso's from access.redhat.com related to RHEL7
c) Updated the cdn link to an internal link.
c) Imported manifest and enabled the repos for "RHEL7 Base os 7Server" and "sat6.1 tools RHEL7"
d) Synced content successfully.

---------------------------
Now the aim was to revert back the cdn url link and only retrieve the deltas.

a) Updated the cdn url link to "https://cdn.redhat.com"
b) moved to the sync page and tried syncing the content. Which fails to sync.

Throws the below message on the UI:

"Yum Metadata: A connection error occurred "

/var/log/foreman/production.log

| Started POST "/katello/sync_management/sync" for 10.65.193.142 at 2015-12-16 11:51:34 -0500
2015-12-16 11:51:34 [app] [I] Processing by Katello::SyncManagementController#sync as JS
2015-12-16 11:51:34 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"mwq0bbGi5Lve/tivPQzUkO7rbaooPwxDEt8ZjwyNWjw=", "sync_status_url"=>"", "repoids"=>["28"], "commit"=>"Synchronize Now"}
2015-12-16 11:51:34 [app] [I] Completed 500 Internal Server Error in 18ms
2015-12-16 11:51:34 [app] [F] | NameError (undefined local variable or method `notify' for #<Katello::SyncManagementController:0x0000000ed88d68>): | katello (2.5.0) app/controllers/katello/sync_management_controller.rb:69:in `block in sync_repos' | katello (2.5.0) app/controllers/katello/sync_management_controller.rb:64:in `sync_repos' | katello (2.5.0) app/controllers/katello/sync_management_controller.rb:34:in `sync' | app/controllers/concerns/application_shared.rb:13:in `set_timezone' | lib/middleware/catch_json_parse_errors.rb:9:in `call' | |
2015-12-16 11:51:35 [app] [I] | | Started POST "/katello/api/v2/repositories/sync_complete?token=zCKgvw2PaoCKoRKErVyd4vPgCNqPtrv4" for ::1 at 2015-12-16 11:51:35 -0500
2015-12-16 11:51:35 [app] [I] Processing by Katello::Api::V2::RepositoriesController#sync_complete as JSON
2015-12-16 11:51:35 [app] [I] Parameters: {"call_report"=>"[FILTERED]", "event_type"=>"repo.sync.finish", "payload"=>{"importer_id"=>"yum_importer", "exception"=>nil, "repo_id"=>"kbidarka5-Red_Hat_Enterprise_Linux_Server-Red_Hat_Satellite_Tools_6_1_for_RHEL_7_Server_RPMs_x86_64", "traceback"=>nil, "started"=>"2015-12-16T16:51:34Z", "_ns"=>"repo_sync_results", "completed"=>"2015-12-16T16:51:35Z", "importer_type_id"=>"yum_importer", "error_message"=>nil, "summary"=>{"content"=>{"state"=>"NOT_STARTED"}, "comps"=>{"state"=>"NOT_STARTED"}, "distribution"=>{"state"=>"NOT_STARTED"}, "errata"=>{"state"=>"NOT_STARTED"}, "metadata"=>{"state"=>"FAILED"}}, "added_count"=>0, "result"=>"failed", "updated_count"=>0, "details"=>{"content"=>{"size_total"=>0, "items_left"=>0, "items_total"=>0, "state"=>"NOT_STARTED", "size_left"=>0, "details"=>{"rpm_total"=>0, "rpm_done"=>0, "drpm_total"=>0, "drpm_done"=>0}, "error_details"=>[]}, "comps"=>{"state"=>"NOT_STARTED"}, "distribution"=>{"items_total"=>0, "state"=>"NOT_STARTED", "error_details"=>[], "items_left"=>0}, "errata"=>{"state"=>"NOT_STARTED"}, "metadata"=>{"state"=>"FAILED", "error"=>"A connection error occurred"}}, "id"=>"567196972d078e019606fbcb", "removed_count"=>0}, "token"=>"zCKgvw2PaoCKoRKErVyd4vPgCNqPtrv4", "api_version"=>"v2", "repository"=>{}}
2015-12-16 11:51:35 [app] [W] Current user is set, but not expected. Clearing
2015-12-16 11:51:35 [app] [I] Sync_complete called for Red Hat Satellite Tools 6.1 for RHEL 7 Server RPMs x86_64, running after_sync.
2015-12-16 11:51:35 [foreman-tasks/action] [E] PLP0000: Importer indicated a failed response (Katello::Errors::PulpError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.5.0/app/lib/actions/pulp/abstract_async_task.rb:71:in `block in done?' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.5.0/app/lib/actions/pulp/abstract_async_task.rb:69:in `each'


Related issues

Blocks Katello - Tracker #12107: ISS (Inter-Satellite Sync) TrackerNew2015-10-08

Associated revisions

Revision fc156d9f (diff)
Added by Eric Helms over 3 years ago

Fixes #12855: Account for paths in the CDN URL when moving to connected

Revision 4d48200c
Added by Eric Helms over 3 years ago

Merge pull request #5669 from ehelms/fixes-12855

Fixes #12855: Account for paths in the CDN URL when moving to connected

History

#1 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5669 added

#2 Updated by Eric Helms almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 70
  • Triaged changed from No to Yes

#3 Updated by Thomas McKay over 3 years ago

#4 Updated by Eric Helms over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF