Project

Profile

Help

Issue #1576

closed

content type mongo id searches not working

Added by semyers about 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Master
Platform Release:
2.8.3
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

In vagrant:

Get the zoo5 repo from -> https://github.com/Katello/runcible/tree/master/test/fixtures/repositories/zoo5
Steps below will assume file:///var/www/repositories/zoo5 is the destination

$ pulp-admin rpm repo create --repo-id=ideate --feed=file:///var/www/repositories/zoo5
$ pulp-admin rpm repo sync run --repo-id=ideate
$ phttp POST https://localhost/pulp/api/v2/content/units/rpm/search/ <<< '{"criteria":{"filters":{"_id":{"$in":["0d871a45-ac63-4fca-a059-a79a61386d61","296c7bab-6823-422a-8a3c-622589debaa3","5a0aeee4-1957-4f15-ad18-e79012575906"]}}}, "include_repos":true}'

Those IDs are specific to that sync of the repo, so some poking around in mongo might be needed to find ids for the search.

Another partha blocker related to serialization of pymongo "objects". :)


Files

pulp-2.7.1-rpm-unit.txt (3.01 KB) pulp-2.7.1-rpm-unit.txt this is how pulp 2.7.1 stored an rpm in mongo mhrivnak, 01/24/2016 01:45 AM

Also available in: Atom PDF