Project

Profile

Help

Task #1213

Refactor #765: Convert Pulp to use MongoEngine

Orphan listing and removal does not work with mongoengine converted models

Added by bmbouter over 4 years ago. Updated 9 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
2.8.0
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

If you have an orphan in your repo and attempt to list it and then remove it and both will fail. For example if testing against the in-development puppet conversion to mongoengine then you can run the following commands to cause these failures.

pulp-admin login -u admin -p admin
pulp-admin puppet repo create --repo-id=forge --feed=http://forge.puppetlabs.com --queries torssh
pulp-admin puppet repo sync run --repo-id forge
pulp-admin puppet repo remove --repo-id forge --str-eq="name=torssh" 
pulp-admin orphan list
pulp-admin orphan remove --all

I expect 1 puppet orphan to be shown when the list occurs and for the remove to work correctly.

Associated revisions

Revision b53db554 View on GitHub
Added by bcourt over 4 years ago

add mongoengine orphan-cleanup support

re #1213

Revision b53db554 View on GitHub
Added by bcourt over 4 years ago

add mongoengine orphan-cleanup support

re #1213

History

#1 Updated by bmbouter over 4 years ago

  • Blocked by Task #1212: Fix Unit removal. It does not work with mongoengine models added

#2 Updated by bmbouter over 4 years ago

I'm removing the unblocking relationship because the command that fails (see below) gives an error but accomplishes the unit removal from the repo as needed. This is the command that gives a failure although the unit does get removed.

pulp-admin puppet repo remove --repo-id forge --str-eq="name=torssh" 

#3 Updated by bmbouter over 4 years ago

  • Blocked by deleted (Task #1212: Fix Unit removal. It does not work with mongoengine models)

#4 Updated by bmbouter over 4 years ago

  • Status changed from NEW to POST
  • Assignee set to bcourt

#5 Updated by bcourt over 4 years ago

  • Status changed from POST to MODIFIED

#6 Updated by rbarlow almost 4 years ago

  • Status changed from MODIFIED to ON_QA
  • Platform Release set to 2.8.0

#7 Updated by dkliban@redhat.com almost 4 years ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

#8 Updated by bmbouter 9 months ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF