Project

Profile

Help

Issue #1479

Unit removal removes units but says it doesn't

Added by bmbouter almost 6 years ago. Updated over 2 years ago.

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

Description

With an empty/fresh Pulp installation run the following:

pulp-admin login -u admin -p admin

pulp-admin rpm repo delete --repo-id rawhide

pulp-admin rpm repo create --repo-id rawhide --feed http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/x86_64/os/ --skip=rpm,drpm,erratum

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

pulp-admin orphan list # verify 0 orphans

Next run the following command and you'll see the following output:

[vagrant@dev ~]$ pulp-admin rpm repo remove distribution --repo-id rawhide --str-eq="family=Fedora"
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Units Removed:
  None

The effect is that the distribution unit is removed, however the pulp-admin output indicates 'Units Removed: None'.

We can verify that the expected distribution unit is removed because we now see the expected 1 orphan.

pulp-admin orphan list # verify 1 orphans

Associated revisions

Revision 6c9751fa View on GitHub
Added by semyers almost 6 years ago

Use model serializers when searching mongoengine content units

When breaking a criteria down into its raw mongo queries, use the model serializers for a given content type to adjust the unit search spec as-needed for each content type in the criteria.

https://pulp.plan.io/issues/1479 fixes #1479

https://pulp.plan.io/issues/1533 fixes #1533

https://pulp.plan.io/issues/1535 fixes #1535

https://pulp.plan.io/issues/1563 fixes #1563

Revision 6c9751fa View on GitHub
Added by semyers almost 6 years ago

Use model serializers when searching mongoengine content units

When breaking a criteria down into its raw mongo queries, use the model serializers for a given content type to adjust the unit search spec as-needed for each content type in the criteria.

https://pulp.plan.io/issues/1479 fixes #1479

https://pulp.plan.io/issues/1533 fixes #1533

https://pulp.plan.io/issues/1535 fixes #1535

https://pulp.plan.io/issues/1563 fixes #1563

History

#1 Updated by mhrivnak almost 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to rbarlow
  • Triaged changed from No to Yes

#2 Updated by semyers almost 6 years ago

  • Assignee changed from rbarlow to semyers
  • Platform Release set to 2.8.0

This is the same issue I'm working on in #1533 and #1535.

yoink

#3 Updated by semyers almost 6 years ago

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

#4 Updated by rbarlow almost 6 years ago

  • Status changed from MODIFIED to 5

#5 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#6 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF