Issue #8984
closedThe alias "pbindings" installs versions equal to 0.0.0
Description
The alias pbindings
incorrectly installs the python bindings. On a fresh vagrant VM (Fedora 33), all bindings are installed with versions equal to 0.0.0.
The root cause of this problem lies here: https://github.com/pulp/pulp-openapi-generator/blob/52754d3d8fb2cbc099748a6d5b5b20ce7ae7076a/generate.sh#L23. In pbindings
, we pass one of the following values to the script generate.sh
(https://github.com/pulp/pulp_installer/blob/f44e5987d07521d83efb61a9b7e80089af22dfea/roles/pulp_devel/templates/alias.bashrc.j2#L190):
- pulpcore
- pulp_rpm
- pulp_python
- pulp_container
- ...
But, it looks like the prefix pulp
is missing in the pulp/api/v3/status
endpoint for all components:
(pulp) [vagrant@pulp3-source-fedora33 ~]$ http :24817/pulp/api/v3/status/ | jq --arg plugin 'pulp_container' -r '.versions[]'
{
"component": "core",
"version": "3.14.0.dev"
}
{
"component": "container",
"version": "2.7.0.dev"
}
{
"component": "file",
"version": "1.9.0.dev"
}
{
"component": "rpm",
"version": "3.14.0.dev"
}
Solution:
Remove the prefix pulp
or pulp_
in jq --arg plugin $1
(https://github.com/pulp/pulp-openapi-generator/blob/52754d3d8fb2cbc099748a6d5b5b20ce7ae7076a/generate.sh#L23).
Updated by dkliban@redhat.com almost 2 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 99
Updated by rchan almost 2 years ago
- Sprint changed from Sprint 100 to Sprint 101
Updated by ipanova@redhat.com almost 2 years ago
- Sprint changed from Sprint 101 to Sprint 102
Updated by lmjachky almost 2 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to lmjachky
Added by Lubos Mjachky almost 2 years ago
Updated by Anonymous almost 2 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp-openapi-generator|a854912818f4bb5caf4da5f841eef8e2606dd279.
Remove the pulp/pulp_ prefix from the component name
closes #8984