Project

Profile

Help

Issue #1623

Newly created package group does not get associated to repository

Added by pthomas@redhat.com almost 5 years ago. Updated over 1 year ago.

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

Description

When you create a errata on pulp, the newly created errata does not get associated to the repo.

1. Create a repo

2. Create a package group

[root@sparks ~]#  pulp-admin rpm repo create --repo-id=repo_1   --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/pulp_unittest/
Successfully created repository [repo_1]

[root@sparks ~]# 
[root@sparks ~]# 
[root@sparks ~]# pulp-admin rpm repo sync run --repo-id=repo_1
+----------------------------------------------------------------------+
                   Synchronizing Repository [repo_1]
+----------------------------------------------------------------------+

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

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

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

... completed

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

Importing errata...
[/]
... completed

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

Task Succeeded

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

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

Publishing Delta RPMs
... skipped

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

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

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed

Task Succeeded

[root@sparks ~]#  pulp-admin rpm repo uploads group --repo-id=repo_1 --group-id=pulp_test \
>   --name="Pulp Test" --description="A package group of Pulp test files." \
>   --mand-name=pulp-dot-2.0-test --mand-name=pulp-test-package
+----------------------------------------------------------------------+
                              Unit Upload
+----------------------------------------------------------------------+

Extracting necessary metadata for each request...
... completed

Creating upload requests on the server...
[==================================================] 100%
Initializing upload
... completed

Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.

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

[\]
Running...

Task Succeeded

Deleting the upload request...
... completed

[root@sparks ~]#  pulp-admin rpm repo content group --repo-id=repo_1 --match id=pulp_test
[root@sparks ~]# 

Related issues

Copied from RPM Support - Issue #1620: Newly created errata does not get associated to repository CLOSED - CURRENTRELEASE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision c90658c7 View on GitHub
Added by jortel@redhat.com almost 5 years ago

Fix package group/catagory upload. closes #1623

History

#1 Updated by pthomas@redhat.com almost 5 years ago

  • Copied from Issue #1620: Newly created errata does not get associated to repository added

#2 Updated by jortel@redhat.com almost 5 years ago

  • Severity changed from 2. Medium to 3. High
  • Platform Release set to 2.8.0
  • Triaged changed from No to Yes

Check to see if category has the same issue.

#3 Updated by jortel@redhat.com almost 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com

#4 Updated by jortel@redhat.com almost 5 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by jortel@redhat.com almost 5 years ago

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

#6 Updated by dkliban@redhat.com almost 5 years ago

  • Status changed from MODIFIED to 5

#7 Updated by pthomas@redhat.com over 4 years ago

  • Status changed from 5 to ASSIGNED

Looks like this is still not getting associated

[root@mgmt5 ~]# pulp-admin rpm repo create --repo-id=repo_1 --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/pulp_unittest/
Successfully created repository [repo_1]

[root@mgmt5 ~]# pulp-admin rpm repo sync run --repo-id=repo_1
--------------------------------------------------------------------
Synchronizing Repository [repo_1]
--------------------------------------------------------------------

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

Downloading metadata...
[/]
... completed

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

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 3/3 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%
3 of 3 items
... completed

Publishing Delta RPMs
... skipped

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

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

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[\]
... completed

Writing Listings File
[-]
... completed

Task Succeeded

[root@mgmt5 ~]# pulp-admin rpm repo uploads group --repo-id=repo_1 --group-id=pulp_test \

--name="Pulp Test" --description="A package group of Pulp test files." \
--mand-name=pulp-dot-2.0-test --mand-name=pulp-test-package

[root@mgmt5 ~]#
[root@mgmt5 ~]#
[root@mgmt5 ~]# pulp-admin rpm repo content group --repo-id=repo_1 --match id=pulp_test
[root@mgmt5 ~]#

#8 Updated by jortel@redhat.com over 4 years ago

Interesting. This worked for me on f23 using latest master. Digging further.

[jortel@f23d pulp_puppet]$ pulp-admin rpm repo create --repo-id=repo_1 --feed=http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/pulp_unittest/
Successfully created repository [repo_1]

[jortel@f23d pulp_puppet]$ pulp-admin rpm repo sync run --repo-id=repo_1
+----------------------------------------------------------------------+
                   Synchronizing Repository [repo_1]
+----------------------------------------------------------------------+

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

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

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

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 3/3 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%
3 of 3 items
... completed

Publishing Delta RPMs
... skipped

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

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

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed

Task Succeeded

[jortel@f23d pulp_puppet]$ pulp-admin rpm repo uploads group --repo-id=repo_1 --group-id=pulp_test --name="Pulp Test" --description="A package group of Pulp test files."  --mand-name=pulp-dot-2.0-test --mand-name=pulp-test-package
+----------------------------------------------------------------------+
                              Unit Upload
+----------------------------------------------------------------------+

Extracting necessary metadata for each request...
... completed

Creating upload requests on the server...
[==================================================] 100%
Initializing upload
... completed

Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.

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

[\]
Running...

Task Succeeded

Deleting the upload request...
... completed

[jortel@f23d pulp_puppet]$ pulp-admin rpm repo content group --repo-id=repo_1 --match id=pulp_test
Conditional Package Names: 
Default Package Names:     
Description:               A package group of Pulp test files.
Id:                        pulp_test
Mandatory Package Names:   pulp-dot-2.0-test, pulp-test-package
Name:                      Pulp Test
Optional Package Names:    
User Visible:              False

#9 Updated by jortel@redhat.com over 4 years ago

  • Status changed from ASSIGNED to 5

#10 Updated by pthomas@redhat.com over 4 years ago

  • Status changed from 5 to 6

verified
[root@mgmt5 ~]# rpm -qa pulp-server
pulp-server-2.8.0-0.9.rc.el7.noarch
[root@mgmt5 ~]#

[root@mgmt5 ~]# pulp-admin rpm repo uploads group --repo-id=repo_2 --group-id=pulp_test --name="Pulp Test" --description="A package group of Pulp test files." --mand-name=pulp-dot-2.0-test --mand-name=pulp-test-package
--------------------------------------------------------------------
Unit Upload
--------------------------------------------------------------------

Extracting necessary metadata for each request...
... completed

Creating upload requests on the server...
[==================================================] 100%
Initializing upload
... completed

Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.

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

[\]
Running...

Task Succeeded

Deleting the upload request...
... completed

[root@mgmt5 ~]# pulp-admin rpm repo content group --repo-id=repo_2 --match id=pulp_test
Conditional Package Names:
Default Package Names:
Description: A package group of Pulp test files.
Id: pulp_test
Mandatory Package Names: pulp-dot-2.0-test, pulp-test-package
Name: Pulp Test
Optional Package Names:
User Visible: False

[root@mgmt5 ~]#

#11 Updated by dkliban@redhat.com over 4 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#13 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF