Project

Profile

Help

Task #1213

closed

Refactor #765: Convert Pulp to use MongoEngine

Orphan listing and removal does not work with mongoengine converted models

Added by bmbouter over 8 years ago. Updated almost 5 years 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.

Actions #1

Updated by bmbouter over 8 years ago

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

Added by bcourt over 8 years ago

Revision b53db554 | View on GitHub

add mongoengine orphan-cleanup support

re #1213

Added by bcourt over 8 years ago

Revision b53db554 | View on GitHub

add mongoengine orphan-cleanup support

re #1213

Actions #2

Updated by bmbouter over 8 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" 
Actions #3

Updated by bmbouter over 8 years ago

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

Updated by bmbouter over 8 years ago

  • Status changed from NEW to POST
  • Assignee set to bcourt
Actions #5

Updated by bcourt over 8 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by rbarlow about 8 years ago

  • Status changed from MODIFIED to 5
  • Platform Release set to 2.8.0
Actions #7

Updated by dkliban@redhat.com almost 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #8

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF