Issue #417
closedNeed clearer error for user-cert.pem conflicts with shared home directory between two nodes
Description
Description of problem:
This is a pretty specific "gotcha" I was having, but had me scratching my head. Our home directories are shared across a handful of servers in our environment, so ~/.pulp/user-cert.pem can be a source of conflicts.
Version-Release number of selected component (if applicable):
Pulp 2.3 on CentOS 6.5
How reproducible:
always
Steps to Reproduce:
1. Login to parent server and do some sort of pulp-admin command.
jason@pulpmaster~> pulp-admin login -u admin
jason@pulpmaster~> pulp-admin node repo list
----------------------------------------------------------------------
Enabled Repositories
--------------------------------------------------------------------
repos are successfully listed here...
2. Try a pulp-admin command on child server. User jason has a nfs-shared home directory between pulpparent and pulpchild.
jason@pulpchild:~> pulp-admin node repo list
--------------------------------------------------------------------
Enabled Repositories
--------------------------------------------------------------------
An error occurred attempting to contact the server. More information can be
found in the client log file ~/.pulp/admin.log.
Conversely, if I log into the child first, then I can do pulp-admin commands on the child, but then I get the errors on the parent.
Actual results:
~/.pulp/admin.log shows a generic "sslv3 bad certificate" error.
Expected results:
An error message saying the ~/.pulp/user-cert.pem is invalid. I wasn't sure what certificate it was complaining about - the server cert, CA, or user cert. Also a note in the documentation about this "gotcha" would be nice for people setting up multiple pulp servers with shared user directories (per solution below).
Additional info:
The solution is to make the user cert filename host-specific in /etc/pulp/admin/admin.conf:
[filesystem]
extensions_dir = /usr/lib/pulp/admin/extensions
- Location to store the authentication certificate to pass to the server
id_cert_dir = ~/.pulp
id_cert_filename = user-cert.hostname.pem
+ This bug was cloned from Bugzilla Bug #1089487 +
Updated by bmbouter almost 10 years ago
- Category deleted (
1) - Tags Documentation added
Documentation is now a Tag not a Category.
Updated by amacdona@redhat.com over 8 years ago
- Status changed from NEW to CLOSED - WONTFIX
Closed because Pulp 3.0 will be dropping nodes support.
Adds a workflow for creating release branches.
The workflow needs to be run on master branch. It creates a new branch and also opens a PR against master branch with a minor version bump.
fixes: #417