Project

Profile

Help

Issue #2035

Errata are published incrementally

Added by ttereshc about 5 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Urgent
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.9.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 4
Quarter:

Description

If publish is operational and not the first one, updateinfo.xml is not fully regenerated, only changes since last publish are included.

1. Create repo

pulp-admin rpm repo create --repo-id zoo --feed https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm/

2. Sync and publish it.

pulp-admin rpm repo sync run --repo-id zoo

3. Update, for example, distributor to make next publish operational.

pulp-admin rpm repo update --repo-id zoo --generate-sqlite true

4. Publish repo again.

pulp-admin rpm repo publish run --repo-id zoo

5. Observe new updateinfo.xml file which contains no errata.

<?xml version="1.0" encoding="utf-8"?>
<updates />

If in step 3 you will upload new erratum, then new updateinfo.xml will contain only this new erratum.

This issue was introduced with this commit, so it is in 2.9.0.
The errata step is incremental because of the filters here

Associated revisions

Revision d0fc1ee1 View on GitHub
Added by ttereshc about 5 years ago

Apply filters to errata publish step only during incremental export

closes #2035 https://pulp.plan.io/issues/2035

History

#1 Updated by ttereshc about 5 years ago

  • Subject changed from Errata is published incrementally to Errata are published incrementally

#2 Updated by ttereshc about 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc

#3 Updated by amacdona@redhat.com about 5 years ago

  • Priority changed from Normal to Urgent
  • Severity changed from 2. Medium to 3. High
  • Triaged changed from No to Yes

#4 Updated by ttereshc about 5 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by mhrivnak about 5 years ago

  • Sprint/Milestone set to 22

#6 Updated by ttereshc about 5 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#7 Updated by ttereshc about 5 years ago

  • Platform Release set to 2.9.0

#8 Updated by pthomas@redhat.com about 5 years ago

  • Status changed from MODIFIED to 6

verified


[root@hp-dl380pgen8-02-vm-16 ~]# 
[root@hp-dl380pgen8-02-vm-16 ~]# rpm -qa |grep pulp-server
pulp-server-2.9.0-0.3.beta.el6.noarch
[root@hp-dl380pgen8-02-vm-16 ~]# 

[root@hp-dl380pgen8-02-vm-16 ~]# pulp-admin rpm repo create --repo-id zoo --feed https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm/
Successfully created repository [zoo]

[root@hp-dl380pgen8-02-vm-16 ~]# pulp-admin rpm repo sync run --repo-id zoo
+----------------------------------------------------------------------+
                     Synchronizing Repository [zoo]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Downloading metadata...
[|]
... completed

Downloading repository content...
[-]
[==================================================] 100%
RPMs:       32/32 items
Delta RPMs: 0/0 items

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
... completed

Importing errata...
[\]
... completed

Importing package groups/categories...
[-]
... completed

Cleaning duplicate packages...
[-]
... completed

Task Succeeded

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[==================================================] 100%
32 of 32 items
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[==================================================] 100%
4 of 4 items
... completed

Publishing Comps file
[==================================================] 100%
4 of 4 items
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Generating HTML files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed

Task Succeeded

[root@hp-dl380pgen8-02-vm-16 ~]# pulp-admin rpm repo update --repo-id zoo --generate-sqlite true
This command may be exited via ctrl+c without affecting the request.

[\]
Running...
Updating distributor: yum_distributor

Task Succeeded

[\]
Running...
Updating distributor: export_distributor

Task Succeeded

[root@hp-dl380pgen8-02-vm-16 ~]# pulp-admin rpm repo publish run --repo-id zoo
+----------------------------------------------------------------------+
                      Publishing Repository [zoo]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Copying files
[-]
... completed

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[-]
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[==================================================] 100%
4 of 4 items
... completed

Publishing Comps file
[==================================================] 100%
4 of 4 items
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
[-]
... completed

Generating HTML files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed

Writing Listings File
[-]
... completed

Task Succeeded

[root@hp-dl380pgen8-02-vm-16 ~]# pulp-admin rpm repo content errata --repo-id zoo
Description: Bear_Erratum
Id:          RHEA-2012:0057
Severity:    
Summary:     
Title:       Bear_ErratumPARTHA
Type:        security

Description: ParthaBird_Erratum
Id:          RHEA-2012:0056
Severity:    
Summary:     
Title:       Bird_Erratum
Type:        security

Description: Sea_Erratum
Id:          RHEA-2012:0055
Severity:    
Summary:     
Title:       Sea_Erratum
Type:        security

Description: Gorilla_Erratum
Id:          RHEA-2012:0058
Severity:    
Summary:     
Title:       Gorilla_Erratum
Type:        enhancement

[root@hp-dl380pgen8-02-vm-16 ~]# 

#9 Updated by semyers about 5 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#12 Updated by bmbouter over 3 years ago

  • Sprint set to Sprint 4

#13 Updated by bmbouter over 3 years ago

  • Sprint/Milestone deleted (22)

#14 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF