Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.14 cp #1504

Merged
merged 2 commits into from
Jul 20, 2021
Merged

3.14 cp #1504

merged 2 commits into from
Jul 20, 2021

Conversation

mdellweg
Copy link
Member

Please be sure you have read our documentation on creating PRs:
https://docs.pulpproject.org/contributing/pull-request-walkthrough.html

Before this change, it was not possible to determine why did the synchronization fail when a user provided a seemingly valid URL. This commit also adds more relevant information to the error message.

Having set `ALLOWED_EXPORT_PATHS` to `["/tmp", "/home/vagrant/test"]`, the following error messages are shown:

```
$ pulp file remote create --name test --url file://error/vagrant/test/centos-7/PULP_MANIFEST
Error: {"url":["The path 'error/vagrant/test/centos-7/PULP_MANIFEST' needs to be an absolute pathname."]}

$ pulp file remote create --name test --url file:///error/vagrant/test/centos-7/PULP_MANIFEST
Error: {"url":["The path '/error/vagrant/test/centos-7/PULP_MANIFEST' does not start with any of the allowed import paths"]}
```

backports #9080

fixes #9083

(cherry picked from commit d8cba5a)
Redis is only used when cache is enabled or RQ tasking is used. In other
cases, the connection is not needed. We've changed the Foreman installer
to only install Redis if needed, just to stop wasting resources[1].
However, this leads to warnings.

This PR changes the status view to only include Redis if it's used.

[1]: theforeman/puppet-pulpcore@7a5543b

backports #9070
https://pulp.plan.io/issues/9070

fixes #9085

(cherry picked from commit 8ab8afb)
@pulpbot
Copy link
Member

pulpbot commented Jul 19, 2021

Attached issue: https://pulp.plan.io/issues/9083

Attached issue: https://pulp.plan.io/issues/9085

Copy link
Member

@bmbouter bmbouter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These backports look good to me. Thanks @mdellweg !

@bmbouter bmbouter merged commit dd4299a into pulp:3.14 Jul 20, 2021
@mdellweg mdellweg deleted the 3.14_cp branch July 20, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants