Actions
Issue #1642
closedList of Content Unit Types is Incomplete
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
Pulp supports the GET /pulp/api/v2/plugins/types/
API endpoint. When called, this endpoint returns a list of objects, where each object represents a single content unit type that has been registered with Pulp. Here's a snippet of what that looks like:
[{u'_href': u'/pulp/api/v2/plugins/types/docker_image/',
u'_id': {u'$oid': u'56b8d0c1e779890daae1fe5e'},
u'_ns': u'content_types',
u'description': u'Docker Image',
u'display_name': u'Docker Image',
u'id': u'docker_image',
u'referenced_types': [],
u'search_indexes': [],
u'unit_key': [u'image_id']},
{u'_href': u'/pulp/api/v2/plugins/types/puppet_module/',
u'_id': {u'$oid': u'56b8d0c1e779890daae1fe5f'},
u'_ns': u'content_types',
u'description': u'Puppet Module',
u'display_name': u'Puppet Module',
u'id': u'puppet_module',
u'referenced_types': [],
u'search_indexes': [u'author', u'tag_list'],
u'unit_key': [u'name', u'version', u'author']},
# ... many more objects
This works well on Pulp 2.7. Unfortunately, the output from this endpoint is incomplete on Pulp 2.8. One 2.8 system I have has the following plugins installed:
- Docker
- Ostree
- Puppet
- Python
- RPM
And here's the output from the API call:
[{u'_href': u'/pulp/api/v2/plugins/types/repository/',
u'_id': {u'$oid': u'56b4d13de779895df95db201'},
u'_ns': u'content_types',
u'description': u'A Pulp Repository',
u'display_name': u'Repository',
u'id': u'repository',
u'referenced_types': [],
u'search_indexes': [u'repo_id'],
u'unit_key': [u'repo_id']},
{u'_href': u'/pulp/api/v2/plugins/types/node/',
u'_id': {u'$oid': u'56b4d13de779895df95db202'},
u'_ns': u'content_types',
u'description': u'A Pulp Node',
u'display_name': u'Pulp Node',
u'id': u'node',
u'referenced_types': [],
u'search_indexes': [u'node_id'],
u'unit_key': [u'node_id']}]
Each plugin adds one (or more) content unit types to Pulp. For example:
- The Python plugin adds the
python_package
content unit type. - The OSTree plugin adds the
ostree
content unit type.
This is problematic because it means that it is impossible to determine which plugins are installed.
Actions
Update content_type collection with content unit types of available plugins
re #1642 https://pulp.plan.io/issues/1642