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 5 years ago. Updated over 1 year ago.

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

0%

Estimated time:
Platform Release:
2.8.0
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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 about 5 years ago

add mongoengine orphan-cleanup support

re #1213

Revision b53db554 View on GitHub
Added by bcourt about 5 years ago

add mongoengine orphan-cleanup support

re #1213

History

#1 Updated by bmbouter over 5 years ago

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

#2 Updated by bmbouter about 5 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 about 5 years ago

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

#4 Updated by bmbouter about 5 years ago

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

#5 Updated by bcourt about 5 years ago

  • Status changed from POST to MODIFIED

#6 Updated by rbarlow almost 5 years ago

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

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

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#8 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF