Actions
Story #3377
closedAdd support for SUSE Errata format
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
2.16.0
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 33
Quarter:
Description
### SLES repo syncs fine, but no errata showing up in counts
Id: SLES12-SP3-Updates
Display Name: None
Description: None
Content Unit Counts:
Drpm: 412
Rpm: 1431
Srpm: 369
Yum Repo Metadata File: 2
### Repo details
Id: SLES12-SP3-Updates
Display Name: None
Description: None
Content Unit Counts:
Drpm: 412
Rpm: 1431
Srpm: 369
Yum Repo Metadata File: 2
Notes:
Scratchpad:
Checksum Type: sha256
Importers:
Config:
Download Policy: on_demand
Feed: https://updates.suse.com/SUSE/Updates/SLE-SERVER/12-SP3/x8
6_64/update/
Query Auth Token: u8cGUGITIGZ5mVjDaJYNhTvsMlJbJYXNtYGVNvdaUPiGXbmVKoGE2n0-dr
LXU0Ac1RSIVZc_CprERYEXsRhhme0Xc3Qpb1PX13iSCqyDwuAnJLrIXpsi
cDB_Yv8R32YfglLx8oaoJV3rt0Q
Id: yum_importer
Importer Type Id: yum_importer
Last Override Config:
Type Skip List: iso, erratum, distribution
Last Sync: 2018-02-15T22:41:07Z
Last Updated: 2018-02-15T22:38:38Z
Repo Id: SLES12-SP3-Updates
Scratchpad:
Repomd Revision: 1518707915
Distributors:
Auto Publish: True
Config:
Checksum Type: sha256
Http: True
Https: True
Relative URL: SLES12-SP3-Updates
Distributor Type Id: yum_distributor
Id: yum_distributor
Last Override Config:
Last Publish: 2018-02-15T22:41:58Z
Last Updated: 2018-02-15T22:41:07Z
Repo Id: SLES12-SP3-Updates
Scratchpad:
Auto Publish: False
Config:
Http: True
Https: True
Relative URL: SLES12-SP3-Updates
Distributor Type Id: export_distributor
Id: export_distributor
Last Override Config:
Last Publish: None
Last Updated: 2018-02-15T22:33:33Z
Repo Id: SLES12-SP3-Updates
Scratchpad:
Sync completed without errors, I've tried with the following repos without seeing any errata counts: SLES12-SP2-Pool, SLES12-SP3-Pool, SLES12-SP2-Updates, SLES12-SP3-Updates
Judging from the updateinfo.xml files in the CDN, errata should be present.
To reproduce:
- Get a developer subscription at https://www.suse.com/subscriptions/sles/developer/
- List repo info using the developer subscrption token, I use this script to do so: https://gist.github.com/johnpmitsch/0297e7b0c6ac7e261dbfd559d4903133
- Create any SUSE repo in pulp using info from that list, I use this script: https://gist.github.com/johnpmitsch/b08415e906dcb000b244bc771838fa01
- Sync SLES12-SP3-Updates or another repo with errata
Actions
Allow errata to be synced with query_auth_token.
Metadata sync currently works with query_auth_token. Removing TYPE_ID_ERRATA from QUERY_AUTH_TOKEN_UNSUPPORTED allows pulp to sync updateinfo.xml from SLES, and generate errata content.
Add relogin_suggested, restart_suggested to errata model since these fields are available on SUSE metadata.
Add migrations to create relogin_suggested and restart_suggested fields to pulp's errata models in database
fixes #3377 https://pulp.plan.io/issues/3377