Bug 1212952
Summary: | When a package already exists it stops a sync | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Matthew Davis <mdavis> |
Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Elyézer Rezende <erezende> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.0 | CC: | bbuckingham, bkearney, bmbouter, cwelton, daviddavis, dkliban, erezende, ggainey, ghares, ipanova, mhrivnak, michele, mmccune, pcreech, rchan, ttereshc |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-12 13:59:38 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1219054 | ||
Bug Blocks: |
Description
Matthew Davis
2015-04-17 18:33:16 UTC
Action: Actions::ElasticSearch::Repository::IndexContent Input: {"dependency"=> [{"exception"=>nil, "task_type"=>"pulp.server.managers.repo.sync.sync", "_href"=>"/pulp/api/v2/tasks/9eb90cdf-16d7-4321-ab69-436f63976406/", "task_id"=>"9eb90cdf-16d7-4321-ab69-436f63976406", "tags"=> ["pulp:repository:Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "pulp:action:sync"], "finish_time"=>"2015-04-17T17:37:40Z", "_ns"=>"task_status", "start_time"=>"2015-04-17T17:32:41Z", "traceback"=>nil, "spawned_tasks"=> [{"_href"=>"/pulp/api/v2/tasks/8dd53932-251f-4a80-8293-458ea6152f50/", "task_id"=>"8dd53932-251f-4a80-8293-458ea6152f50"}, {"_href"=>"/pulp/api/v2/tasks/4ab39020-b470-452b-a114-aa67adda01fb/", "task_id"=>"4ab39020-b470-452b-a114-aa67adda01fb"}], "progress_report"=> {"yum_importer"=> {"content"=> {"size_total"=>2905795680, "items_left"=>0, "items_total"=>106, "state"=>"FINISHED", "size_left"=>0, "details"=> {"rpm_total"=>106, "rpm_done"=>106, "drpm_total"=>0, "drpm_done"=>0}, "error_details"=>[]}, "comps"=>{"state"=>"FINISHED"}, "distribution"=> {"items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "items_left"=>0}, "errata"=>{"state"=>"FINISHED"}, "metadata"=>{"state"=>"FINISHED"}}}, "queue"=>"reserved_resource_worker-2.salab.redhat.com.dq", "state"=>"finished", "worker_name"=> "reserved_resource_worker-2.salab.redhat.com", "result"=> {"importer_type_id"=>"yum_importer", "importer_id"=>"yum_importer", "exception"=>nil, "repo_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "removed_count"=>0, "started"=>"2015-04-17T17:32:41Z", "_ns"=>"repo_sync_results", "completed"=>"2015-04-17T17:37:40Z", "traceback"=>nil, "summary"=> {"content"=>{"state"=>"FINISHED"}, "comps"=>{"state"=>"FINISHED"}, "distribution"=>{"state"=>"FINISHED"}, "errata"=>{"state"=>"FINISHED"}, "metadata"=>{"state"=>"FINISHED"}}, "added_count"=>22, "error_message"=>nil, "updated_count"=>130, "details"=> {"content"=> {"size_total"=>2905795680, "items_left"=>0, "items_total"=>106, "state"=>"FINISHED", "size_left"=>0, "details"=> {"rpm_total"=>106, "rpm_done"=>106, "drpm_total"=>0, "drpm_done"=>0}, "error_details"=>[]}, "comps"=>{"state"=>"FINISHED"}, "distribution"=> {"items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "items_left"=>0}, "errata"=>{"state"=>"FINISHED"}, "metadata"=>{"state"=>"FINISHED"}}, "id"=>"553144e4f050e0126080b096", "result"=>"success"}, "error"=>nil, "_id"=>{"$oid"=>"553143b9a3ef030b1f924b48"}, "id"=>"553143b9f050e011eae426c7"}, {"exception"=>nil, "task_type"=>"pulp.server.managers.repo.publish.publish", "_href"=>"/pulp/api/v2/tasks/8dd53932-251f-4a80-8293-458ea6152f50/", "task_id"=>"8dd53932-251f-4a80-8293-458ea6152f50", "tags"=> ["pulp:repository:Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "pulp:action:publish"], "finish_time"=>"2015-04-17T17:37:41Z", "_ns"=>"task_status", "start_time"=>"2015-04-17T17:37:40Z", "traceback"=>nil, "spawned_tasks"=>[], "progress_report"=>{}, "queue"=>"reserved_resource_worker-2.salab.redhat.com.dq", "state"=>"finished", "worker_name"=> "reserved_resource_worker-2.salab.redhat.com", "result"=> {"exception"=>nil, "repo_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "started"=>"2015-04-17T17:37:40Z", "_ns"=>"repo_publish_results", "completed"=>"2015-04-17T17:37:41Z", "traceback"=>nil, "distributor_type_id"=>"nodes_http_distributor", "summary"=>"succeeded", "error_message"=>nil, "details"=>{"unit_count"=>152}, "distributor_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server_nodes", "id"=>"553144e5f050e0126080b099", "result"=>"success"}, "error"=>nil, "_id"=>{"$oid"=>"553144e4a3ef030b1f924b4e"}, "id"=>"553144e4f050e011eae42703"}, {"exception"=>nil, "task_type"=>"pulp.server.managers.repo.publish.publish", "_href"=>"/pulp/api/v2/tasks/4ab39020-b470-452b-a114-aa67adda01fb/", "task_id"=>"4ab39020-b470-452b-a114-aa67adda01fb", "tags"=> ["pulp:repository:Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "pulp:action:publish"], "finish_time"=>"2015-04-17T17:37:43Z", "_ns"=>"task_status", "start_time"=>"2015-04-17T17:37:41Z", "traceback"=>nil, "spawned_tasks"=>[], "progress_report"=> {"Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server"=> [{"num_success"=>1, "description"=>"Copying files", "step_type"=>"save_tar", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"24d7db9d-3cc4-48dc-aac1-0f1f6fb83a46", "num_processed"=>1}, {"num_success"=>1, "description"=>"Initializing repo metadata", "step_type"=>"initialize_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"3366eb72-238a-4cb6-a9d4-4851964d07b8", "num_processed"=>1}, {"num_success"=>0, "description"=>"Publishing Distribution files", "step_type"=>"distribution", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"597ac0dd-bafa-42fa-b4f4-f8ed9ca9fc73", "num_processed"=>0}, {"num_success"=>131, "description"=>"Publishing RPMs", "step_type"=>"rpms", "items_total"=>4945, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"0c3e9281-7069-4607-8ffb-ed1a27442225", "num_processed"=>131}, {"num_success"=>0, "description"=>"Publishing Delta RPMs", "step_type"=>"drpms", "items_total"=>1, "state"=>"SKIPPED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"7bfc9185-3401-418b-97de-18d429cb0a3b", "num_processed"=>0}, {"num_success"=>21, "description"=>"Publishing Errata", "step_type"=>"errata", "items_total"=>21, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"1da61af8-889c-4473-a45e-4cb4d0fc1a46", "num_processed"=>21}, {"num_success"=>0, "description"=>"Publishing Comps file", "step_type"=>"comps", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"7b40e5d0-9910-472e-8149-fd2b7e10127e", "num_processed"=>0}, {"num_success"=>0, "description"=>"Publishing Metadata.", "step_type"=>"metadata", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"2522ffef-5be1-499a-8f73-9bf06cc62e96", "num_processed"=>0}, {"num_success"=>1, "description"=>"Closing repo metadata", "step_type"=>"close_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"5667bb81-646d-4dd9-85cb-a822dfe7a726", "num_processed"=>1}, {"num_success"=>0, "description"=>"Generating sqlite files", "step_type"=>"generate sqlite", "items_total"=>1, "state"=>"SKIPPED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"cdca4656-05c6-47bf-8174-11d3c9c47829", "num_processed"=>0}, {"num_success"=>1, "description"=>"Publishing files to web", "step_type"=>"publish_directory", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"86853a0e-7547-4d36-9921-00d76900aee2", "num_processed"=>1}, {"num_success"=>1, "description"=>"Writing Listings File", "step_type"=>"initialize_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"c6bfb79d-b412-4bda-a284-b4253da13d45", "num_processed"=>1}]}, "queue"=>"reserved_resource_worker-2.salab.redhat.com.dq", "state"=>"finished", "worker_name"=> "reserved_resource_worker-2.salab.redhat.com", "result"=> {"exception"=>nil, "repo_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "started"=>"2015-04-17T17:37:41Z", "_ns"=>"repo_publish_results", "completed"=>"2015-04-17T17:37:43Z", "traceback"=>nil, "distributor_type_id"=>"yum_distributor", "summary"=> {"generate sqlite"=>"SKIPPED", "initialize_repo_metadata"=>"FINISHED", "rpms"=>"FINISHED", "close_repo_metadata"=>"FINISHED", "drpms"=>"SKIPPED", "comps"=>"FINISHED", "distribution"=>"FINISHED", "metadata"=>"FINISHED", "publish_directory"=>"FINISHED", "errata"=>"FINISHED", "save_tar"=>"FINISHED"}, "error_message"=>nil, "details"=> [{"num_success"=>1, "description"=>"Copying files", "step_type"=>"save_tar", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"24d7db9d-3cc4-48dc-aac1-0f1f6fb83a46", "num_processed"=>1}, {"num_success"=>1, "description"=>"Initializing repo metadata", "step_type"=>"initialize_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"3366eb72-238a-4cb6-a9d4-4851964d07b8", "num_processed"=>1}, {"num_success"=>0, "description"=>"Publishing Distribution files", "step_type"=>"distribution", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"597ac0dd-bafa-42fa-b4f4-f8ed9ca9fc73", "num_processed"=>0}, {"num_success"=>131, "description"=>"Publishing RPMs", "step_type"=>"rpms", "items_total"=>4945, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"0c3e9281-7069-4607-8ffb-ed1a27442225", "num_processed"=>131}, {"num_success"=>0, "description"=>"Publishing Delta RPMs", "step_type"=>"drpms", "items_total"=>1, "state"=>"SKIPPED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"7bfc9185-3401-418b-97de-18d429cb0a3b", "num_processed"=>0}, {"num_success"=>21, "description"=>"Publishing Errata", "step_type"=>"errata", "items_total"=>21, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"1da61af8-889c-4473-a45e-4cb4d0fc1a46", "num_processed"=>21}, {"num_success"=>0, "description"=>"Publishing Comps file", "step_type"=>"comps", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"7b40e5d0-9910-472e-8149-fd2b7e10127e", "num_processed"=>0}, {"num_success"=>0, "description"=>"Publishing Metadata.", "step_type"=>"metadata", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"2522ffef-5be1-499a-8f73-9bf06cc62e96", "num_processed"=>0}, {"num_success"=>1, "description"=>"Closing repo metadata", "step_type"=>"close_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"5667bb81-646d-4dd9-85cb-a822dfe7a726", "num_processed"=>1}, {"num_success"=>0, "description"=>"Generating sqlite files", "step_type"=>"generate sqlite", "items_total"=>1, "state"=>"SKIPPED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"cdca4656-05c6-47bf-8174-11d3c9c47829", "num_processed"=>0}, {"num_success"=>1, "description"=>"Publishing files to web", "step_type"=>"publish_directory", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"86853a0e-7547-4d36-9921-00d76900aee2", "num_processed"=>1}, {"num_success"=>1, "description"=>"Writing Listings File", "step_type"=>"initialize_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"c6bfb79d-b412-4bda-a284-b4253da13d45", "num_processed"=>1}], "distributor_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "id"=>"553144e7f050e0126080b0a2", "result"=>"success"}, "error"=>nil, "_id"=>{"$oid"=>"553144e4a3ef030b1f924b4f"}, "id"=>"553144e4f050e011eae42707"}], "id"=>1, "remote_user"=>"admin-8d497f29", "remote_cp_user"=>"admin", "locale"=>"en"} Output: {} Exception: ActiveRecord::RecordNotUnique: PGError: ERROR: duplicate key value violates unique constraint "katello_erratum_packages_eid_nvrea_n_f" DETAIL: Key (erratum_id, nvrea, name, filename)=(1, ruby-shadow-1.4.1-21.el7.x86_64, ruby-shadow, ruby-shadow-1.4.1-21.el7.x86_64.rpm) already exists. : INSERT INTO "katello_erratum_packages" ("erratum_id", "filename", "name", "nvrea") VALUES ($1, $2, $3, $4) RETURNING "id" Backtrace: /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1171:in `get_last_result' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1171:in `exec_cache' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:665:in `block in exec_query' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:663:in `exec_query' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:63:in `exec_insert' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:90:in `insert' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation.rb:66:in `insert' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:366:in `create' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/timestamp.rb:57:in `create' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:268:in `block in create' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:403:in `_run__2905228668943096462__create__4333801666131445831__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_create_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:268:in `create' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:347:in `create_or_update' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:264:in `block in create_or_update' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in `_run__2905228668943096462__save__4333801666131445831__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_save_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:264:in `create_or_update' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:104:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:56:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:33:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:246:in `block in save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:246:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/has_many_association.rb:14:in `insert_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:434:in `block (2 levels) in create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:342:in `add_to_target' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:432:in `block in create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:149:in `block in transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:148:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:431:in `create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:429:in `block in create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:429:in `collect' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:429:in `create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:123:in `create!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:46:in `create!' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/models/katello/erratum.rb:127:in `update_packages' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/models/katello/erratum.rb:96:in `update_from_json' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/models/katello/glue/pulp/repo.rb:329:in `block in index_db_errata' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/models/katello/glue/pulp/repo.rb:327:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/models/katello/glue/pulp/repo.rb:327:in `index_db_errata' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/models/katello/glue/elastic_search/repository.rb:129:in `index_content' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/elastic_search/repository/index_content.rb:24:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:443:in `block (3 levels) in execute_run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/remote_action.rb:27:in `block in run' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/remote_action.rb:57:in `block (2 levels) in as_remote_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/katello/util/thread_session.rb:84:in `pulp_config' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/remote_action.rb:43:in `as_pulp_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/remote_action.rb:56:in `block in as_remote_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/katello/util/thread_session.rb:91:in `cp_config' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/remote_action.rb:38:in `as_cp_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/remote_action.rb:55:in `as_remote_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/remote_action.rb:27:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action/progress.rb:30:in `with_progress_calculation' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action/progress.rb:16:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/keep_locale.rb:23:in `block in run' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/keep_locale.rb:34:in `with_locale' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.35/app/lib/actions/middleware/keep_locale.rb:23:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/world.rb:30:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:442:in `block (2 levels) in execute_run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:441:in `catch' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:441:in `block in execute_run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `block in with_error_handling' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `catch' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `with_error_handling' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:436:in `execute_run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:230:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract.rb:152:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract.rb:152:in `with_meta_calculation' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/worker.rb:20:in `block in on_message' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:859:in `block in assigns' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in `tap' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in `assigns' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:138:in `match_value' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:116:in `block in match' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in `match' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/worker.rb:17:in `on_message' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:82:in `on_envelope' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:72:in `receive' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `block (2 levels) in run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `loop' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `block in run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `catch' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:13:in `block in initialize' /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' caused by: (PGError) ERROR: duplicate key value violates unique constraint "katello_erratum_packages_eid_nvrea_n_f" DETAIL: Key (erratum_id, nvrea, name, filename)=(1, ruby-shadow-1.4.1-21.el7.x86_64, ruby-shadow, ruby-shadow-1.4.1-21.el7.x86_64.rpm) already exists. ... skipped 116 lines Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. The Pulp upstream bug status is at NEW. Updating the external tracker on this bug. The Pulp upstream bug priority is at High. Updating the external tracker on this bug. The Pulp upstream bug status is at POST. Updating the external tracker on this bug. The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug. Adding bbouters to cc list Failed on: Satellite-6.1.0-RHEL-7-20150429.2 Steps: 1) Enabled the following repos RHEL7 Kickstart (7.0 & 7.1) RHEL7 Common (7Server, 7.0, 7.1) RHEL7 Server (7Server, 7.0, 7.1) 2) Navigated to the product page and marked all repos 3) Clicked on "Sync Now" 4) 2/8 tasks failed with the following exception: ActiveRecord::RecordNotUnique: PGError: ERROR: duplicate key value violates unique constraint "katello_erratum_packages_eid_nvrea_n_f" DETAIL: Key (erratum_id, nvrea, name, filename)=(3, rhel-guest-image-7-7.0-20140930.0.el7.noarch, rhel-guest-image-7, rhel-guest-image-7-7.0-20140930.0.el7.noarch.rpm) already exists. : INSERT INTO "katello_erratum_packages" ("erratum_id", "filename", "name", "nvrea") VALUES ($1, $2, $3, $4) RETURNING "id" Complete information: Action: Actions::ElasticSearch::Repository::IndexContent Input: {"dependency"=> [{"exception"=>nil, "task_type"=>"pulp.server.managers.repo.sync.sync", "_href"=>"/pulp/api/v2/tasks/e8881ce8-0189-40b4-b402-e1552b072fb4/", "task_id"=>"e8881ce8-0189-40b4-b402-e1552b072fb4", "tags"=> ["pulp:repository:Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "pulp:action:sync"], "finish_time"=>"2015-04-30T19:05:23Z", "_ns"=>"task_status", "start_time"=>"2015-04-30T19:01:23Z", "traceback"=>nil, "spawned_tasks"=> [{"_href"=>"/pulp/api/v2/tasks/3c3ac82a-b0f2-40bc-b65a-13637aa1e9d2/", "task_id"=>"3c3ac82a-b0f2-40bc-b65a-13637aa1e9d2"}, {"_href"=>"/pulp/api/v2/tasks/688dd80e-e5b1-46cd-abfe-fcfe194f70ec/", "task_id"=>"688dd80e-e5b1-46cd-abfe-fcfe194f70ec"}], "progress_report"=> {"yum_importer"=> {"content"=> {"size_total"=>2885915344, "items_left"=>0, "items_total"=>63, "state"=>"FINISHED", "size_left"=>0, "details"=> {"rpm_total"=>63, "rpm_done"=>63, "drpm_total"=>0, "drpm_done"=>0}, "error_details"=>[]}, "comps"=>{"state"=>"FINISHED"}, "distribution"=> {"items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "items_left"=>0}, "errata"=>{"state"=>"FINISHED"}, "metadata"=>{"state"=>"FINISHED"}}}, "queue"=> "reserved_resource_worker-6.lab.eng.bos.redhat.com.dq", "state"=>"finished", "worker_name"=> "reserved_resource_worker-6.lab.eng.bos.redhat.com", "result"=> {"importer_type_id"=>"yum_importer", "importer_id"=>"yum_importer", "exception"=>nil, "repo_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "removed_count"=>0, "started"=>"2015-04-30T19:01:23Z", "_ns"=>"repo_sync_results", "completed"=>"2015-04-30T19:05:23Z", "traceback"=>nil, "summary"=> {"content"=>{"state"=>"FINISHED"}, "comps"=>{"state"=>"FINISHED"}, "distribution"=>{"state"=>"FINISHED"}, "errata"=>{"state"=>"FINISHED"}, "metadata"=>{"state"=>"FINISHED"}}, "added_count"=>28, "error_message"=>nil, "updated_count"=>124, "details"=> {"content"=> {"size_total"=>2885915344, "items_left"=>0, "items_total"=>63, "state"=>"FINISHED", "size_left"=>0, "details"=> {"rpm_total"=>63, "rpm_done"=>63, "drpm_total"=>0, "drpm_done"=>0}, "error_details"=>[]}, "comps"=>{"state"=>"FINISHED"}, "distribution"=> {"items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "items_left"=>0}, "errata"=>{"state"=>"FINISHED"}, "metadata"=>{"state"=>"FINISHED"}}, "id"=>"55427cf32cf21a7d976e6e63", "result"=>"success"}, "error"=>nil, "_id"=>{"$oid"=>"55427c03e866a3d8b941a946"}, "id"=>"55427c032cf21a7d2bccb5fc"}, {"exception"=>nil, "task_type"=>"pulp.server.managers.repo.publish.publish", "_href"=>"/pulp/api/v2/tasks/3c3ac82a-b0f2-40bc-b65a-13637aa1e9d2/", "task_id"=>"3c3ac82a-b0f2-40bc-b65a-13637aa1e9d2", "tags"=> ["pulp:repository:Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "pulp:action:publish"], "finish_time"=>"2015-04-30T19:05:23Z", "_ns"=>"task_status", "start_time"=>"2015-04-30T19:05:23Z", "traceback"=>nil, "spawned_tasks"=>[], "progress_report"=>{}, "queue"=> "reserved_resource_worker-6.lab.eng.bos.redhat.com.dq", "state"=>"finished", "worker_name"=> "reserved_resource_worker-6.lab.eng.bos.redhat.com", "result"=> {"exception"=>nil, "repo_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "started"=>"2015-04-30T19:05:23Z", "_ns"=>"repo_publish_results", "completed"=>"2015-04-30T19:05:23Z", "traceback"=>nil, "distributor_type_id"=>"nodes_http_distributor", "summary"=>"succeeded", "error_message"=>nil, "details"=>{"unit_count"=>152}, "distributor_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server_nodes", "id"=>"55427cf32cf21a7d976e6e66", "result"=>"success"}, "error"=>nil, "_id"=>{"$oid"=>"55427cf3e866a3d8b941a94c"}, "id"=>"55427cf32cf21a7d2bccb62f"}, {"exception"=>nil, "task_type"=>"pulp.server.managers.repo.publish.publish", "_href"=>"/pulp/api/v2/tasks/688dd80e-e5b1-46cd-abfe-fcfe194f70ec/", "task_id"=>"688dd80e-e5b1-46cd-abfe-fcfe194f70ec", "tags"=> ["pulp:repository:Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "pulp:action:publish"], "finish_time"=>"2015-04-30T19:05:24Z", "_ns"=>"task_status", "start_time"=>"2015-04-30T19:05:23Z", "traceback"=>nil, "spawned_tasks"=>[], "progress_report"=> {"Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server"=> [{"num_success"=>1, "description"=>"Copying files", "step_type"=>"save_tar", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"5cf50011-7816-4c24-9123-b8c61d42cb29", "num_processed"=>1}, {"num_success"=>1, "description"=>"Initializing repo metadata", "step_type"=>"initialize_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"2ad1b5f8-633e-457e-9515-9fff60b6a0ef", "num_processed"=>1}, {"num_success"=>0, "description"=>"Publishing Distribution files", "step_type"=>"distribution", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"b2d9fbb4-0690-4c29-ab41-1df81f43bfd0", "num_processed"=>0}, {"num_success"=>131, "description"=>"Publishing RPMs", "step_type"=>"rpms", "items_total"=>2766, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"0f1c54b0-f5dd-49f2-8478-be4bc89f7508", "num_processed"=>131}, {"num_success"=>0, "description"=>"Publishing Delta RPMs", "step_type"=>"drpms", "items_total"=>1, "state"=>"SKIPPED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"774f6f55-9410-4b7e-9e24-3e693c48edcd", "num_processed"=>0}, {"num_success"=>21, "description"=>"Publishing Errata", "step_type"=>"errata", "items_total"=>21, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"97e7a9f9-11fb-489f-8661-a0cf91b0c68e", "num_processed"=>21}, {"num_success"=>0, "description"=>"Publishing Comps file", "step_type"=>"comps", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"d7bd5b42-7b43-49ea-ad00-4015f130967f", "num_processed"=>0}, {"num_success"=>0, "description"=>"Publishing Metadata.", "step_type"=>"metadata", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"3942925c-0bc6-441c-b599-cec6a35f5bf5", "num_processed"=>0}, {"num_success"=>1, "description"=>"Closing repo metadata", "step_type"=>"close_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"9b2bec92-e1cf-4119-8bba-1915d9ce991d", "num_processed"=>1}, {"num_success"=>0, "description"=>"Generating sqlite files", "step_type"=>"generate sqlite", "items_total"=>1, "state"=>"SKIPPED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"575e11c2-0610-4b73-8546-4d47b900bc7a", "num_processed"=>0}, {"num_success"=>1, "description"=>"Publishing files to web", "step_type"=>"publish_directory", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"ea977517-4339-48e5-898b-bfde476f5cf6", "num_processed"=>1}, {"num_success"=>1, "description"=>"Writing Listings File", "step_type"=>"initialize_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"8c09f38c-ccd1-4cde-9c7b-df97bb540155", "num_processed"=>1}]}, "queue"=> "reserved_resource_worker-6.lab.eng.bos.redhat.com.dq", "state"=>"finished", "worker_name"=> "reserved_resource_worker-6.lab.eng.bos.redhat.com", "result"=> {"exception"=>nil, "repo_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "started"=>"2015-04-30T19:05:23Z", "_ns"=>"repo_publish_results", "completed"=>"2015-04-30T19:05:24Z", "traceback"=>nil, "distributor_type_id"=>"yum_distributor", "summary"=> {"generate sqlite"=>"SKIPPED", "initialize_repo_metadata"=>"FINISHED", "rpms"=>"FINISHED", "close_repo_metadata"=>"FINISHED", "drpms"=>"SKIPPED", "comps"=>"FINISHED", "distribution"=>"FINISHED", "metadata"=>"FINISHED", "publish_directory"=>"FINISHED", "errata"=>"FINISHED", "save_tar"=>"FINISHED"}, "error_message"=>nil, "details"=> [{"num_success"=>1, "description"=>"Copying files", "step_type"=>"save_tar", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"5cf50011-7816-4c24-9123-b8c61d42cb29", "num_processed"=>1}, {"num_success"=>1, "description"=>"Initializing repo metadata", "step_type"=>"initialize_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"2ad1b5f8-633e-457e-9515-9fff60b6a0ef", "num_processed"=>1}, {"num_success"=>0, "description"=>"Publishing Distribution files", "step_type"=>"distribution", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"b2d9fbb4-0690-4c29-ab41-1df81f43bfd0", "num_processed"=>0}, {"num_success"=>131, "description"=>"Publishing RPMs", "step_type"=>"rpms", "items_total"=>2766, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"0f1c54b0-f5dd-49f2-8478-be4bc89f7508", "num_processed"=>131}, {"num_success"=>0, "description"=>"Publishing Delta RPMs", "step_type"=>"drpms", "items_total"=>1, "state"=>"SKIPPED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"774f6f55-9410-4b7e-9e24-3e693c48edcd", "num_processed"=>0}, {"num_success"=>21, "description"=>"Publishing Errata", "step_type"=>"errata", "items_total"=>21, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"97e7a9f9-11fb-489f-8661-a0cf91b0c68e", "num_processed"=>21}, {"num_success"=>0, "description"=>"Publishing Comps file", "step_type"=>"comps", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"d7bd5b42-7b43-49ea-ad00-4015f130967f", "num_processed"=>0}, {"num_success"=>0, "description"=>"Publishing Metadata.", "step_type"=>"metadata", "items_total"=>0, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"3942925c-0bc6-441c-b599-cec6a35f5bf5", "num_processed"=>0}, {"num_success"=>1, "description"=>"Closing repo metadata", "step_type"=>"close_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"9b2bec92-e1cf-4119-8bba-1915d9ce991d", "num_processed"=>1}, {"num_success"=>0, "description"=>"Generating sqlite files", "step_type"=>"generate sqlite", "items_total"=>1, "state"=>"SKIPPED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"575e11c2-0610-4b73-8546-4d47b900bc7a", "num_processed"=>0}, {"num_success"=>1, "description"=>"Publishing files to web", "step_type"=>"publish_directory", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"ea977517-4339-48e5-898b-bfde476f5cf6", "num_processed"=>1}, {"num_success"=>1, "description"=>"Writing Listings File", "step_type"=>"initialize_repo_metadata", "items_total"=>1, "state"=>"FINISHED", "error_details"=>[], "details"=>"", "num_failures"=>0, "step_id"=>"8c09f38c-ccd1-4cde-9c7b-df97bb540155", "num_processed"=>1}], "distributor_id"=> "Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server", "id"=>"55427cf42cf21a7d976e6e6f", "result"=>"success"}, "error"=>nil, "_id"=>{"$oid"=>"55427cf3e866a3d8b941a94d"}, "id"=>"55427cf32cf21a7d2bccb633"}], "id"=>6, "remote_user"=>"admin-5c8691be", "remote_cp_user"=>"admin", "locale"=>"en"} Output: {} Exception: ActiveRecord::RecordNotUnique: PGError: ERROR: duplicate key value violates unique constraint "katello_erratum_packages_eid_nvrea_n_f" DETAIL: Key (erratum_id, nvrea, name, filename)=(3, rhel-guest-image-7-7.0-20140930.0.el7.noarch, rhel-guest-image-7, rhel-guest-image-7-7.0-20140930.0.el7.noarch.rpm) already exists. : INSERT INTO "katello_erratum_packages" ("erratum_id", "filename", "name", "nvrea") VALUES ($1, $2, $3, $4) RETURNING "id" Backtrace: /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1171:in `get_last_result' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1171:in `exec_cache' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:665:in `block in exec_query' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:663:in `exec_query' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:63:in `exec_insert' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:90:in `insert' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation.rb:66:in `insert' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:366:in `create' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/timestamp.rb:57:in `create' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:268:in `block in create' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:403:in `_run__2357172677533518995__create__2317260767797002687__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_create_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:268:in `create' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:347:in `create_or_update' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:264:in `block in create_or_update' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:414:in `_run__2357172677533518995__save__2317260767797002687__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_save_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:264:in `create_or_update' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/persistence.rb:104:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:56:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:33:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:246:in `block in save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:246:in `save!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/has_many_association.rb:14:in `insert_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:434:in `block (2 levels) in create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:342:in `add_to_target' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:432:in `block in create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:149:in `block in transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:148:in `transaction' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:431:in `create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:429:in `block in create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:429:in `collect' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:429:in `create_record' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_association.rb:123:in `create!' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:46:in `create!' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/models/katello/erratum.rb:127:in `update_packages' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/models/katello/erratum.rb:96:in `update_from_json' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/models/katello/glue/pulp/repo.rb:329:in `block in index_db_errata' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/models/katello/glue/pulp/repo.rb:327:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/models/katello/glue/pulp/repo.rb:327:in `index_db_errata' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/models/katello/glue/elastic_search/repository.rb:129:in `index_content' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/elastic_search/repository/index_content.rb:24:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:443:in `block (3 levels) in execute_run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/remote_action.rb:27:in `block in run' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/remote_action.rb:57:in `block (2 levels) in as_remote_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/katello/util/thread_session.rb:84:in `pulp_config' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/remote_action.rb:43:in `as_pulp_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/remote_action.rb:56:in `block in as_remote_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/katello/util/thread_session.rb:91:in `cp_config' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/remote_action.rb:38:in `as_cp_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/remote_action.rb:55:in `as_remote_user' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/remote_action.rb:27:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action/progress.rb:30:in `with_progress_calculation' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action/progress.rb:16:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/keep_locale.rb:23:in `block in run' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/keep_locale.rb:34:in `with_locale' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.38/app/lib/actions/middleware/keep_locale.rb:23:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/world.rb:30:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:442:in `block (2 levels) in execute_run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:441:in `catch' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:441:in `block in execute_run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `block in with_error_handling' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `catch' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `with_error_handling' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:436:in `execute_run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:230:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract.rb:152:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract.rb:152:in `with_meta_calculation' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/worker.rb:20:in `block in on_message' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:859:in `block in assigns' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in `tap' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in `assigns' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:138:in `match_value' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:116:in `block in match' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in `match' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/worker.rb:17:in `on_message' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:82:in `on_envelope' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:72:in `receive' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `block (2 levels) in run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `loop' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `block in run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `catch' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:13:in `block in initialize' /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `call' /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' caused by: (PGError) ERROR: duplicate key value violates unique constraint "katello_erratum_packages_eid_nvrea_n_f" DETAIL: Key (erratum_id, nvrea, name, filename)=(3, rhel-guest-image-7-7.0-20140930.0.el7.noarch, rhel-guest-image-7, rhel-guest-image-7-7.0-20140930.0.el7.noarch.rpm) already exists. ... skipped 116 lines For more information about the fail check previous comment. I see the dynflow output in the failed verification output, but I cannot see the pulp error. The original bug report includes the error log which shows pulp.server.content.sources.container emitting a ImporterConduitException. Can that be pasted also? Perhaps there is another area of Pulp that needs a similar fix to the one in ac3700146a555c6711747cd1bf4c4ca2e2d944d9. Also are we sure that pulp-server tested by QA included commit ac3700146a555c6711747cd1bf4c4ca2e2d944d9. I can check if I could login to the box. A sanity verification that this does include the expected fix would be good. Could we troubleshoot this together via irc? I'm bmbouter in the #pulp and #satellite6 and I'm usually available during standard business hours in EDT. Elyezer and I worked to verify this on EL7 with S4C2, but we were blocked by 1219054. We did verify that the Pulp traceback in comment 0 did not occur. We are waiting to verify the bug until 1219054 is resolved. This bug report actually reports two issues: (1) the pulp traceback and (2) the task issues also reported by 1219054. This bug is designed to track (1) only, leaving (2) to be tracked by 1219054. The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug. The Pulp upstream bug status is at VERIFIED. Updating the external tracker on this bug. Verified on: S8C1 Steps to verify: 1) Uploaded a manifest 2) Enabled the following repos RHEL7 Kickstart (7.0 & 7.1) RHEL7 Common (7Server, 7.0, 7.1) RHEL7 Server (7Server, 7.0, 7.1) 3) Navigated to the product page and marked all repos 4) Clicked on "Sync Now" 5) Waited until all tasks completed. This bug is slated to be released with Satellite 6.1. This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015. The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug. |