Project

Profile

Help

Issue #3951

closed

Cannot dissociate modulemd-defaults

Added by paji@redhat.com about 6 years ago. Updated over 5 years ago.

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

Description

1) Sync https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-modules/ in a repo called integration_test_id_clone
2)
Get the unit id for one of the modulemd_defaults either by looking in the db or running curl with following info
resource - https://localhost, action_name, - /pulp/api/v2/repositories/integration_test_id/search/units/, params - [:post, "{\"criteria\":{\"type_ids\":[\"modulemd_defaults\"]}}", {"content_type"=>"application/json", "accept"=>"application/json"}]

3)
Try the following action
resource - https://localhost, action_name, - /pulp/api/v2/repositories/integration_test_id_clone/actions/unassociate/, params - [:post, "{\"criteria\":{\"type_ids\":[\"modulemd_defaults\"],\"filters\":{\"association\":{\"unit_id\":{\"$in\":[\"164765f4-3849-40d2-b8a2-8492f0836cc7\"]}}}}}", {"content_type"=>"application/json", "accept"=>"application/json"}]

4) notice that the dissociate does not happen.
infact pulp-admin repo list --detail --repo-id=integration_test_id_clone will still show the same count as before the dissociate.


Related issues

Copied from RPM Support - Story #3863: As a user i can sync and remove modulemd-defaultsCLOSED - CURRENTRELEASEjortel@redhat.com

Actions

Also available in: Atom PDF