Error Importing CentOS Errata into Pulp

Problem:
Running: hammer settings set --name “force_post_sync_actions” --value “true”
Returns: Could not update the setting:
Error: Setting not found
Expected outcome:

Foreman and Proxy versions:
Foreman version:1.22.0-RC1
Katello version: 3.12-RC1
Foreman and Proxy plugin versions:

Other relevant data:
I have been building my installation by following the build in this guide.

I am currently on “Import CentOS Errata into Pulp”

Any help is greatly appreciated.

Thank you.

After doing more searching on the internet, it looks like “force_post_sync_actions” is now depreciated and has been replaced with “–skip-metadata-check”

https://bugzilla.redhat.com/show_bug.cgi?id=1498560
https://projects.theforeman.org/issues/23033

If you are following this guide, skip that step and modify the next command to:

hammer repository synchronize --skip-metadata-check true --name “base_x86_64” --product “el7_repos”

This should run for you.

@emPire thanks for sharing that, sounds like you are all set now?

Hi John,

Thanks for the reply.

I believed that fixed that part of the issue, however I do have repositories (including the one I used in the command) showing no errata. Am I missing something?

I’m not sure there, @Justin_Sherrill any ideas?

I would have thought the ‘–skip-metadata-check true’ would have succeeded. Can you try reimporting the errata with the perl script and provide the output?

Also, after that is complete can you provide the output of the hammer repository synchronize --skip-metadata-check true command? And also the ‘output’ of the sync task in monitor > tasks after it is complete.

Here is the output from the Perl script. I will provide the outputs from the hammer repository and sync task after this afternoon’s meeting.

Hmm it looks like I cannot upload my .log attachment. Is there a specific part of the log you wanted to see? It is quite long (7200+) lines

I thought I would start fresh since I tried so many things. Maybe I missed something along the way?

I ran the script then ran hammer repository synchronize --product ‘CentOS7_Repos’ --name ‘base_x86_64’ --skip-metadata-check true --organization orgname to publish the errata to the repo.

My output from this was “No new packages.”

I have also same issue.
I downloaded errata using below command.

perl ./errata_import.pl --errata=errata.latest.xml --include-repo=a9d39552-8fce-49f8-89aa-0692ff978d8e --include-repo=eb9d6665-16bf-4704-8557-768d6f1838ba --include-repo=ef5659ab-405a-4626-96ce-6ca852f8350b

it shows below errata

Id: a9d39552-8fce-49f8-89aa-0692ff978d8e
Display Name: cel7-x86_64-base
Description: None
Content Unit Counts:
Distribution: 1
Erratum: 886
Package Category: 11
Package Environment: 10
Package Group: 88
Package Langpacks: 1
Rpm: 10019

Id: ef5659ab-405a-4626-96ce-6ca852f8350b
Display Name: cel7-x86_64-extras
Description: None
Content Unit Counts:
Drpm: 226
Rpm: 409

Id: eb9d6665-16bf-4704-8557-768d6f1838ba
Display Name: cel7-x86_64-updates
Description: None
Content Unit Counts:
Drpm: 1880
Erratum: 177
Rpm: 1982
Katello web page shows only 16 errata after sync to repository using below command and couldn’t see dowanloaded errata using hammer

hammer repository synchronize --product ‘cel7-x86_64’ --name ‘cel7-x86_64-base’ --skip-metadata-check true --organization “Default Organization”

Please help me

Thanks
laxman

I can confirm this issue has appeared in Katello builds 3.10, 3.11, and 3.12RC.

perl ./errata_import.pl --errata=errata.latest.xml
hammer repository info --name “base_x86_64” --product “CentOS7_Repos”
ID: 1
Name: base_x86_64
Label: base_x86_64
Organization: org
Red Hat Repository: no
Content Type: yum
Mirror on Sync: no
ESC[0m±---------------------------------------------------------------------+
Repositories
±---------------------------------------------------------------------+

Id: 8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
Distribution: 1
Package Category: 11
Package Environment: 10
Package Group: 88
Package Langpacks: 1
Rpm: 10019

Id: 2cdb3af4-5584-42d2-8d3b-9c58a65e1a88
Display Name: extras_x86_64
Description: None
Content Unit Counts:
Drpm: 226
Rpm: 409

Id: 01fb8cc1-4656-452f-907a-4939a92c2e3b
Display Name: updates_x86_64
Description: None
Content Unit Counts:
Drpm: 1880
Rpm: 1982

Id: 1-CentOS7_Content-v1_0-8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
ESC[0m±---------------------------------------------------------------------+
Repositories
±---------------------------------------------------------------------+

Id: 8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
Distribution: 1
Package Category: 11
Package Environment: 10
Package Group: 88
Package Langpacks: 1
Rpm: 10019

Id: 2cdb3af4-5584-42d2-8d3b-9c58a65e1a88
Display Name: extras_x86_64
Description: None
Content Unit Counts:
Drpm: 226
Rpm: 409

Id: 01fb8cc1-4656-452f-907a-4939a92c2e3b
Display Name: updates_x86_64
Description: None
Content Unit Counts:
Drpm: 1880
Rpm: 1982

Id: 1-CentOS7_Content-v1_0-8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
ESC[0m±---------------------------------------------------------------------+
Repositories
±---------------------------------------------------------------------+

Id: 8fbbec6a-727d-41a2-b5c3-a4410ef511bc
ESC[0m±---------------------------------------------------------------------+
Repositories
±---------------------------------------------------------------------+

Id: 8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
Distribution: 1
Package Category: 11
Package Environment: 10
Package Group: 88
Package Langpacks: 1
Rpm: 10019

Id: 2cdb3af4-5584-42d2-8d3b-9c58a65e1a88
Display Name: extras_x86_64
Description: None
Content Unit Counts:
Drpm: 226
Rpm: 409

Id: 01fb8cc1-4656-452f-907a-4939a92c2e3b
Display Name: updates_x86_64
Description: None
Content Unit Counts:
Drpm: 1880
Rpm: 1982

Id: 1-CentOS7_Content-v1_0-8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
ESC[0m±---------------------------------------------------------------------+
Repositories
±---------------------------------------------------------------------+

Id: 8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
Distribution: 1
Package Category: 11
Package Environment: 10
Package Group: 88
Package Langpacks: 1
Rpm: 10019

Id: 2cdb3af4-5584-42d2-8d3b-9c58a65e1a88
Display Name: extras_x86_64
Description: None
Content Unit Counts:
Drpm: 226
Rpm: 409

Id: 01fb8cc1-4656-452f-907a-4939a92c2e3b
Display Name: updates_x86_64
Description: None
Content Unit Counts:
Drpm: 1880
Rpm: 1982

Id: 1-CentOS7_Content-v1_0-8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
URL: http://mirror.centos.org/centos/7/os/x86_64/
Publish Via HTTP: yes
Published At: http://foreman.org.com/pulp/repos/org/Library/custom/CentOS7_Repos/base_x86_64/
Relative Path: org/Library/custom/CentOS7_Repos/base_x86_64
Download Policy: on_demand
Product:
ID: 1
Name: CentOS7_Repos
GPG Key:
ID: 1
Name: RPM-GPG-KEY-CentOS-7
Sync:
Status: Success
Last Sync Date: 2 minutes
Created: 2019/06/06 20:27:09
Updated: 2019/06/06 20:27:12
Content Counts:
Packages: 10019
Source RPMS: 0
Package Groups: 88
Errata: 0
Module Streams: 0

[root@foreman pulp_centos_errata_import]# hammer repository info --name ‘base_x86_64’ --product ‘CentOS7_Repos’
ID: 1
Name: base_x86_64
Label: base_x86_64
Organization: Steinhafels
Red Hat Repository: no
Content Type: yum
Mirror on Sync: no
URL: http://mirror.centos.org/centos/7/os/x86_64/
Publish Via HTTP: yes
Published At: http://foreman.org.com/pulp/repos/org/Library/custom/CentOS7_Repos/base_x86_64/
Relative Path: org/Library/custom/CentOS7_Repos/base_x86_64
Download Policy: on_demand
Product:
ID: 1
Name: CentOS7_Repos
GPG Key:
ID: 1
Name: RPM-GPG-KEY-CentOS-7
Sync:
Status: Success
Last Sync Date: 10 minutes
Created: 2019/06/06 20:27:09
Updated: 2019/06/06 20:27:12
Content Counts:
Packages: 10019
Source RPMS: 0
Package Groups: 88
Errata: 0
Module Streams: 0

How ever when I run pulp-admin repo list | less, I can see errata

Id: 8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
Distribution: 1
Package Category: 11
Package Environment: 10
Package Group: 88
Package Langpacks: 1
Rpm: 10019

Id: 2cdb3af4-5584-42d2-8d3b-9c58a65e1a88
Display Name: extras_x86_64
Description: None
Content Unit Counts:
Drpm: 226
Rpm: 409

Id: 01fb8cc1-4656-452f-907a-4939a92c2e3b
Display Name: updates_x86_64
Description: None
Content Unit Counts:
Drpm: 1880
Rpm: 1982

Id: 1-CentOS7_Content-v1_0-8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:
Distribution: 1
Erratum: 887
Package Group: 88
Rpm: 10019

Id: 1-CentOS7_Content-v1_0-01fb8cc1-4656-452f-907a-4939a92c2e3b
Display Name: updates_x86_64
Description: None
Content Unit Counts:
Erratum: 176
Rpm: 1982

Id: 1-CentOS7_Content-v1_0-2cdb3af4-5584-42d2-8d3b-9c58a65e1a88
Display Name: extras_x86_64
Description: None
Content Unit Counts:
Rpm: 409

Id: 1-CentOS7_Content-Library-2cdb3af4-5584-42d2-8d3b-9c58a65e1
a88
Display Name: extras_x86_64
Description: None
Content Unit Counts:

Id: 1-CentOS7_Content-Library-01fb8cc1-4656-452f-907a-4939a92c2
e3b
Display Name: updates_x86_64
Description: None
Content Unit Counts:

Id: 1-CentOS7_Content-Library-8fbbec6a-727d-41a2-b5c3-a4410ef51
1bc
Display Name: base_x86_64
Description: None
Content Unit Counts:

Id: 1-CentOS7_Content-v1_0-puppet-b3fcf1f7-67b8-4924-af00-76b9b
81eb22f
Display Name: CentOS7_Content Puppet Environment
Description: None
Content Unit Counts:

Id: 1-CentOS7_Content-Prod-01fb8cc1-4656-452f-907a-4939a92c2e3b
Display Name: updates_x86_64
Description: None
Content Unit Counts:

Id: 1-CentOS7_Content-Prod-8fbbec6a-727d-41a2-b5c3-a4410ef511bc
Display Name: base_x86_64
Description: None
Content Unit Counts:

Id: 1-CentOS7_Content-Prod-2cdb3af4-5584-42d2-8d3b-9c58a65e1a88
Display Name: extras_x86_64
Description: None
Content Unit Counts:

Hope this helps with the troubleshooting. Let me know if anything else is needed. Thank you!

Thanks for that. I think i’m going to have turn through this whole process to see exactly what is going wrong and debug more. Will get back to you soon.

1 Like

I have just gone through the CentOS errata import process as documented at https://www.lisenet.com/2018/katello-import-centos-errata-into-pulp/ and it does work, but I had to set the mirror on sync to no prior to executing the procedure. The default value is yes and when I did the repo sync portion, it kicked off a repo update just a couple minutes later and wiped out the errata (I can see this in tasks). I changed to no, ran the procedure again and now I have errata showing in Foreman>Content. Running Foreman 1.22 with Katello 3.12.

Now I am just trying to find out the impact of setting mirror on sync to no, as all my RH Satellite systems have it set to yes (as errata is included in the repo).

Looks like it just means some old packages will accumulate on my system, no show stopper there.

Hi jbartlet,

Thank you for taking a look at this. It has been driving me crazy for the past two weeks. I made sure the mirror on sync checkbox was set to “no”, however my result was the same. Here is my Task output.

I just wanted to share this before I blow the server away and start from scratch.

{"repository"=>{"id"=>1, "name"=>"base_x86_64", "label"=>"base_x86_64"},
 "product"=>
  {"id"=>1,
   "name"=>"CentOS7_Repos",
   "label"=>"CentOS7_Repos",
   "cp_id"=>"941202627992"},
 "provider"=>{"id"=>1, "name"=>"Anonymous"},
 "organization"=>{"id"=>1, "name"=>"Corp", "label"=>"Corp"},
 "services_checked"=>["pulp", "pulp_auth"],
 "id"=>1,
 "sync_result"=>
  {"pulp_tasks"=>
    [{"exception"=>nil,
      "task_type"=>"pulp.server.managers.repo.sync.sync",
      "_href"=>"/pulp/api/v2/tasks/5b217c66-62f0-4171-894f-c2ab979c553f/",
      "task_id"=>"5b217c66-62f0-4171-894f-c2ab979c553f",
      "tags"=>
       ["pulp:repository:8fbbec6a-727d-41a2-b5c3-a4410ef511bc",
        "pulp:action:sync"],
      "finish_time"=>"2019-07-01T13:50:25Z",
      "_ns"=>"task_status",
      "start_time"=>"2019-07-01T13:47:38Z",
      "traceback"=>nil,
      "spawned_tasks"=>
       [{"_href"=>"/pulp/api/v2/tasks/a4677991-4e62-4b32-838e-9417c327fa4d/",
         "task_id"=>"a4677991-4e62-4b32-838e-9417c327fa4d"}],
      "progress_report"=>
       {"yum_importer"=>
         {"content"=>
           {"items_total"=>0,
            "state"=>"FINISHED",
            "error_details"=>[],
            "details"=>
             {"rpm_total"=>0, "rpm_done"=>0, "drpm_total"=>0, "drpm_done"=>0},
            "size_total"=>0,
            "size_left"=>0,
            "items_left"=>0},
          "comps"=>{"state"=>"FINISHED"},
          "purge_duplicates"=>{"state"=>"FINISHED"},
          "distribution"=>
           {"items_total"=>0,
            "state"=>"FINISHED",
            "error_details"=>[],
            "items_left"=>0},
          "modules"=>{"state"=>"FINISHED"},
          "errata"=>{"state"=>"FINISHED"},
          "metadata"=>{"state"=>"FINISHED"}}},
      "queue"=>"reserved_resource_worker-0@foreman.corp.com.dq2",
      "state"=>"finished",
      "worker_name"=>"reserved_resource_worker-0@foreman.corp.com",
      "result"=>
       {"result"=>"success",
        "importer_id"=>"yum_importer",
        "exception"=>nil,
        "repo_id"=>"8fbbec6a-727d-41a2-b5c3-a4410ef511bc",
        "traceback"=>nil,
        "started"=>"2019-07-01T13:47:38Z",
        "_ns"=>"repo_sync_results",
        "completed"=>"2019-07-01T13:50:25Z",
        "importer_type_id"=>"yum_importer",
        "error_message"=>nil,
        "summary"=>
         {"modules"=>{"state"=>"FINISHED"},
          "content"=>{"state"=>"FINISHED"},
          "comps"=>{"state"=>"FINISHED"},
          "purge_duplicates"=>{"state"=>"FINISHED"},
          "distribution"=>{"state"=>"FINISHED"},
          "errata"=>{"state"=>"FINISHED"},
          "metadata"=>{"state"=>"FINISHED"}},
        "added_count"=>0,
        "removed_count"=>0,
        "updated_count"=>110,
        "id"=>"5d1a0fa14ff4c52ab09459a5",
        "details"=>
         {"modules"=>{"state"=>"FINISHED"},
          "content"=>
           {"size_total"=>0,
            "items_left"=>0,
            "items_total"=>0,
            "state"=>"FINISHED",
            "size_left"=>0,
            "details"=>
             {"rpm_total"=>0, "rpm_done"=>0, "drpm_total"=>0, "drpm_done"=>0},
            "error_details"=>[]},
          "comps"=>{"state"=>"FINISHED"},
          "purge_duplicates"=>{"state"=>"FINISHED"},
          "distribution"=>
           {"items_total"=>0,
            "state"=>"FINISHED",
            "error_details"=>[],
            "items_left"=>0},
          "errata"=>{"state"=>"FINISHED"},
          "metadata"=>{"state"=>"FINISHED"}}},
      "error"=>nil,
      "_id"=>{"$oid"=>"5d1a0efa7d73d0624efb9e6a"},
      "id"=>"5d1a0efa7d73d0624efb9e6a"},
     {"exception"=>nil,
      "task_type"=>"pulp.server.managers.repo.publish.publish",
      "_href"=>"/pulp/api/v2/tasks/a4677991-4e62-4b32-838e-9417c327fa4d/",
      "task_id"=>"a4677991-4e62-4b32-838e-9417c327fa4d",
      "tags"=>
       ["pulp:repository:8fbbec6a-727d-41a2-b5c3-a4410ef511bc",
        "pulp:action:publish"],
      "finish_time"=>"2019-07-01T13:50:48Z",
      "_ns"=>"task_status",
      "start_time"=>"2019-07-01T13:50:25Z",
      "traceback"=>nil,
      "spawned_tasks"=>[],
      "progress_report"=>
       {"8fbbec6a-727d-41a2-b5c3-a4410ef511bc"=>
         [{"num_success"=>1,
           "description"=>"Copying files",
           "step_type"=>"save_tar",
           "items_total"=>1,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"b50d38cb-11d9-4d4f-b79c-0227b17b3b50",
           "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"=>"982a56d1-9817-4d06-9be7-9208ebb97e82",
           "num_processed"=>1},
          {"num_success"=>1,
           "description"=>"Publishing Distribution files",
           "step_type"=>"distribution",
           "items_total"=>1,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"b64f3e2a-fad1-4029-a6cf-d8dedf274b19",
           "num_processed"=>1},
          {"num_success"=>0,
           "description"=>"Publishing RPMs",
           "step_type"=>"rpms",
           "items_total"=>0,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"3eef6f0b-5af0-4c08-ba5a-271bed064dea",
           "num_processed"=>0},
          {"num_success"=>0,
           "description"=>"Publishing Delta RPMs",
           "step_type"=>"drpms",
           "items_total"=>1,
           "state"=>"SKIPPED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"ae9a469e-0aa4-47d6-8fa5-9565e7b94a4a",
           "num_processed"=>0},
          {"num_success"=>0,
           "description"=>"Publishing Errata",
           "step_type"=>"errata",
           "items_total"=>0,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"0c1f7229-f53f-4d93-bb90-b68ac154293f",
           "num_processed"=>0},
          {"num_success"=>0,
           "description"=>"Publishing Modules",
           "step_type"=>"modules",
           "items_total"=>1,
           "state"=>"SKIPPED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"ac0229f0-60d8-497e-96eb-02fe99473d6d",
           "num_processed"=>0},
          {"num_success"=>110,
           "description"=>"Publishing Comps file",
           "step_type"=>"comps",
           "items_total"=>110,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"33a12fff-3cca-4d26-83ef-4bf513c7ebbe",
           "num_processed"=>110},
          {"num_success"=>0,
           "description"=>"Publishing Metadata.",
           "step_type"=>"metadata",
           "items_total"=>0,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"3f8cda0e-70cd-4991-8d1b-e43736cfea37",
           "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"=>"9b464a0d-9a3e-4253-8ace-172bf4d3172d",
           "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"=>"ee07c18b-badd-49a0-a9d2-87058427f9b6",
           "num_processed"=>0},
          {"num_success"=>1,
           "description"=>"Removing old repodata",
           "step_type"=>"remove_old_repodata",
           "items_total"=>0,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"c0baf059-4b47-4b72-8d45-9744e4a314c1",
           "num_processed"=>1},
          {"num_success"=>0,
           "description"=>"Generating HTML files",
           "step_type"=>"repoview",
           "items_total"=>1,
           "state"=>"SKIPPED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"3d2969a7-0c6d-464b-9cf0-70de9a40cae5",
           "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"=>"46ba1f69-f7af-4030-a6b0-3c2001da12e3",
           "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"=>"a1494661-797c-45ee-b708-83e4c70b133d",
           "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"=>"ed8d6e9e-87c0-44a0-ad86-fe45a661a08a",
           "num_processed"=>1}]},
      "queue"=>"reserved_resource_worker-0@foreman.corp.com.dq2",
      "state"=>"finished",
      "worker_name"=>"reserved_resource_worker-0@foreman.corp.com",
      "result"=>
       {"result"=>"success",
        "exception"=>nil,
        "repo_id"=>"8fbbec6a-727d-41a2-b5c3-a4410ef511bc",
        "started"=>"2019-07-01T13:50:25Z",
        "_ns"=>"repo_publish_results",
        "completed"=>"2019-07-01T13:50:48Z",
        "traceback"=>nil,
        "distributor_type_id"=>"yum_distributor",
        "summary"=>
         {"generate sqlite"=>"SKIPPED",
          "rpms"=>"FINISHED",
          "initialize_repo_metadata"=>"FINISHED",
          "remove_old_repodata"=>"FINISHED",
          "modules"=>"SKIPPED",
          "save_tar"=>"FINISHED",
          "close_repo_metadata"=>"FINISHED",
          "drpms"=>"SKIPPED",
          "comps"=>"FINISHED",
          "distribution"=>"FINISHED",
          "repoview"=>"SKIPPED",
          "publish_directory"=>"FINISHED",
          "errata"=>"FINISHED",
          "metadata"=>"FINISHED"},
        "error_message"=>nil,
        "distributor_id"=>"8fbbec6a-727d-41a2-b5c3-a4410ef511bc",
        "id"=>"5d1a0fb84ff4c52ab09459a6",
        "details"=>
         [{"num_success"=>1,
           "description"=>"Copying files",
           "step_type"=>"save_tar",
           "items_total"=>1,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"b50d38cb-11d9-4d4f-b79c-0227b17b3b50",
           "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"=>"982a56d1-9817-4d06-9be7-9208ebb97e82",
           "num_processed"=>1},
          {"num_success"=>1,
           "description"=>"Publishing Distribution files",
           "step_type"=>"distribution",
           "items_total"=>1,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"b64f3e2a-fad1-4029-a6cf-d8dedf274b19",
           "num_processed"=>1},
          {"num_success"=>0,
           "description"=>"Publishing RPMs",
           "step_type"=>"rpms",
           "items_total"=>0,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"3eef6f0b-5af0-4c08-ba5a-271bed064dea",
           "num_processed"=>0},
          {"num_success"=>0,
           "description"=>"Publishing Delta RPMs",
           "step_type"=>"drpms",
           "items_total"=>1,
           "state"=>"SKIPPED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"ae9a469e-0aa4-47d6-8fa5-9565e7b94a4a",
           "num_processed"=>0},
          {"num_success"=>0,
           "description"=>"Publishing Errata",
           "step_type"=>"errata",
           "items_total"=>0,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"0c1f7229-f53f-4d93-bb90-b68ac154293f",
           "num_processed"=>0},
          {"num_success"=>0,
           "description"=>"Publishing Modules",
           "step_type"=>"modules",
           "items_total"=>1,
           "state"=>"SKIPPED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"ac0229f0-60d8-497e-96eb-02fe99473d6d",
           "num_processed"=>0},
          {"num_success"=>110,
           "description"=>"Publishing Comps file",
           "step_type"=>"comps",
           "items_total"=>110,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"33a12fff-3cca-4d26-83ef-4bf513c7ebbe",
           "num_processed"=>110},
          {"num_success"=>0,
           "description"=>"Publishing Metadata.",
           "step_type"=>"metadata",
           "items_total"=>0,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"3f8cda0e-70cd-4991-8d1b-e43736cfea37",
           "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"=>"9b464a0d-9a3e-4253-8ace-172bf4d3172d",
           "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"=>"ee07c18b-badd-49a0-a9d2-87058427f9b6",
           "num_processed"=>0},
          {"num_success"=>1,
           "description"=>"Removing old repodata",
           "step_type"=>"remove_old_repodata",
           "items_total"=>0,
           "state"=>"FINISHED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"c0baf059-4b47-4b72-8d45-9744e4a314c1",
           "num_processed"=>1},
          {"num_success"=>0,
           "description"=>"Generating HTML files",
           "step_type"=>"repoview",
           "items_total"=>1,
           "state"=>"SKIPPED",
           "error_details"=>[],
           "details"=>"",
           "num_failures"=>0,
           "step_id"=>"3d2969a7-0c6d-464b-9cf0-70de9a40cae5",
           "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"=>"46ba1f69-f7af-4030-a6b0-3c2001da12e3",
           "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"=>"a1494661-797c-45ee-b708-83e4c70b133d",
           "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"=>"ed8d6e9e-87c0-44a0-ad86-fe45a661a08a",
           "num_processed"=>1}]},
      "error"=>nil,
      "_id"=>{"$oid"=>"5d1a0fa17d73d0624efc9d19"},
      "id"=>"5d1a0fa17d73d0624efc9d19"}],
   "contents_changed"=>true,
   "poll_attempts"=>{"total"=>32, "failed"=>0}},
 "skip_metadata_check"=>false,
 "validate_contents"=>false,
 "contents_changed"=>true,
 "current_user_id"=>4,
 "current_organization_id"=>nil,
 "current_location_id"=>nil}

I am fighting with later versions of katello and CentOS repo errata data too.

Setting “Mirror on sync” to “No” fixed things for me, however it would be nice to be able to keep this set to yes and still be able to use errata data. I can see problems down the line otherwise, either with disk space issues, or with potentially harmful/buggy/deprecated packages being published.

Would a tactical manual workaround would be to periodically set things back to mirroronsync=yes and then set back to no again?

I finally got a chance to walk through this process with no issue. There are some things that are easy to miss but very important to do in this order:

  1. make sure Mirror on Sync is set to no for the repository
  2. Run the errata import script, make sure it actually import some errata (and doesn’t just say ‘no packages found’ for each errata.
  3. when you are syncing, you must do an advanced sync “Complete Sync”, from the repository details -> actions drop down -> advanced sync page (or “hammer repository --skip-metadata-check true” command)

If you think you missed any of these steps, start again with Step 1, doing any of these out of order will cause errata to not be imported.

@RBW to answer your question, yes, you could periodically set “Mirror on sync” to yes, resync the repository (causing all errata in the repo to be removed), and then repeat the process above at step #1.

I have followed the steps from the same series : https://www.lisenet.com/2018/katello-import-centos-errata-into-pulp/ . Although I see 618 errata in the base_x86_64 repository, I also see 4k+ errata in epel_x86_64 repository. I have not explicitly installed those and I don’t think those are necessary. How do I know from where have those errata come?

Also, another question is: why is only base_x86_64 repository is chosen to install the errata? Just trying to understand the inner workings of errata on the base repo.
Any pointers will be really helpful.

Thank you!
-Brinda

Keep in mind, these are not “installed” anywhere. Errata are just pieces of metadata about a set of packages. Epel ships errata in their repository (similar to redhat repositories), so when you synched epel, you got those by default, nothing to do with the centos script.

The script only imports centos errata, not errata from other repos. Those 3rd party repos do not include errata and are not part of centos, so they will not ever show errata. The packages updates are the important pieces there.

1 Like

Thanks a lot Justin! I get it now

Still unable to get Errata to populate for base, updates, and extra repos. I ran steps 1,2,and 3 in order multiple times. Maybe I am missing something.

Has anyone tried this series and got it working?