Error Importing CentOS Errata into Pulp

katello

#1

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.


#2

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.


#3

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


#4

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?


#5

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


#6

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.


#7

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


#8

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.”


#9

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


#10

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!


#11

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.