Actions
Issue #7000
closedImpossible to update a comps.xml
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:
- 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>
- 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
- 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
Updated by michele.santuari@wuerth-phoenix.com almost 3 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
Updated by ipanova@redhat.com almost 3 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
Updated by michele.santuari@wuerth-phoenix.com almost 3 years ago
Thanks, that worked. The procedure to add an rpm to a group is:
- remove the group
- remove orphan
- upload the updated comps.xml
- publish the repo
Is that correct?
Updated by ipanova@redhat.com almost 3 years ago
That's correct. I am closing this issue, please re-open if you still have problems :)
Updated by ipanova@redhat.com almost 3 years ago
- Status changed from NEW to CLOSED - WORKSFORME
Updated by michele.santuari@wuerth-phoenix.com over 2 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?
Actions