Project

Profile

Help

Issue #7000

closed

Impossible to update a comps.xml

Added by michele.santuari@wuerth-phoenix.com almost 4 years ago. Updated over 3 years ago.

Status:
CLOSED - WORKSFORME
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.21.1
Platform Release:
OS:
CentOS 7
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

As a user, I want to update an existing comps.xml by adding a new rpm.

The steps that I did are:

  1. add the rpm telegraf to this existing comps.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE comps PUBLIC "-//CentOS//DTD Comps info//EN" "comps.dtd">
<comps>
 <group>
   <id>test</id>
   <name>Test Pulp Comps</name>
   <packagelist>
     <packagereq type="mandatory">neteye-agent</packagereq>
     <packagereq type="mandatory">telegraf</packagereq>
   </packagelist>
 </group>
</comps>
  1. Upload the "new" comps.xml and publish the repo:
pulp-admin rpm repo uploads comps --repo-id=extras --file /root/comps/comps.xml
pulp-admin rpm repo publish run --repo-id=extras
  1. List the content on the group and telegraf is not listed.
ulp-admin rpm repo content group --repo-id=extras
Conditional Package Names: 
Default Package Names:     
Description:               test Packages
Id:                        test
Mandatory Package Names:   neteye-agent
Name:                      test
Optional Package Names:    
User Visible:              True

Actions #1

Updated by michele.santuari@wuerth-phoenix.com almost 4 years ago

I tried also with:

pulp-admin rpm repo publish run --force-full --repo-id=extras

and tried to remove the group and recreate:

pulp-admin rpm repo publish run --force-full --repo-id=extras
pulp-admin rpm repo uploads comps --repo-id=extras --file=/root/comps/comps.xml
pulp-admin rpm repo content group --repo-id=extras
Conditional Package Names: 
Default Package Names:     
Description:               test Packages
Id:                        test
Mandatory Package Names:   neteye-agent
Name:                      test
Optional Package Names:    
User Visible:              True

Actions #2

Updated by ipanova@redhat.com almost 4 years ago

You missed one step in between - after you remove the group, please run orphan removal: $ pulp-admin orphan remove --type package_group

Then upload an updated comps.xml

Actions #3

Updated by michele.santuari@wuerth-phoenix.com almost 4 years ago

Thanks, that worked. The procedure to add an rpm to a group is:

  1. remove the group
  2. remove orphan
  3. upload the updated comps.xml
  4. publish the repo

Is that correct?

Actions #4

Updated by ipanova@redhat.com almost 4 years ago

That's correct. I am closing this issue, please re-open if you still have problems :)

Actions #5

Updated by ipanova@redhat.com almost 4 years ago

  • Status changed from NEW to CLOSED - WORKSFORME
Actions #6

Updated by michele.santuari@wuerth-phoenix.com over 3 years ago

I would like to have a user that has permissions to update the yum groups only with "update" permission and not "delete" permission. I need delete permission to update the comps.xml. Is that the wanted behavior?

Also available in: Atom PDF