Bug 1657398 - Unable to mount with custom certificate file
Summary: Unable to mount with custom certificate file
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: GlusterFS
Classification: Community
Component: transport
Version: 4.1
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Sanju
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-07 21:53 UTC by James
Modified: 2020-03-17 03:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-17 03:31:00 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
Log file when the default cert file does not exist. (1.86 KB, text/plain)
2018-12-07 21:53 UTC, James
no flags Details
Log file when the custom cert file does not exist. (3.94 KB, text/plain)
2018-12-07 21:54 UTC, James
no flags Details
Log file when both cert files are present. (11.12 KB, text/plain)
2018-12-07 21:57 UTC, James
no flags Details

Description James 2018-12-07 21:53:44 UTC
Created attachment 1512678 [details]
Log file when the default cert file does not exist.

Description of problem:

Mounting gluster with custom cert fails when the cert does not also exist at the default path.

We're trying to mount multiple file systems on a system, each one with it's own client certificate. We should be able to do so with the "transport.socket.ssl-own-cert" option (we'll also want to set the ca list and private key, but we're starting with the cert to make sure we can actually configure it).

When we mount using the option, it fails with "could not load our cert at /etc/ssl/glusterfs.pem." However, if the default cert is in place but the one we specify isn't, it fails with "could not load our cert at /etc/ssl/backup.pem" (the path of the custom cert). If both certs are in place in succeeds.

The command I'm running is mount -t HOST:gluster-volume -o "server-port=49152,xlator-option=*client*.transport.socket.ssl-own-cert=/etc/ssl/backup.pem" /mnt/jarmes

Version-Release number of selected component (if applicable): 4.1.5


How reproducible: consistently


Steps to Reproduce:
1. Configure volume with SSL.
2. Attempt to mount with a custom path to the cert file.

Actual results:

Mount fails unless both the default and custom cert exist.

Expected results:

Mount succeeds with custom cert only.

Additional info:

I've set the severity to high as we are blocked on this.

Comment 1 James 2018-12-07 21:54:31 UTC
Created attachment 1512679 [details]
Log file when the custom cert file does not exist.

Comment 2 James 2018-12-07 21:57:24 UTC
Created attachment 1512681 [details]
Log file when both cert files are present.

Notice that it does actually set the custom path in the volume file.

Comment 3 Worker Ant 2020-03-17 03:31:00 UTC
This bug is moved to https://github.com/gluster/glusterfs/issues/1114, and will be tracked there from now on. Visit GitHub issues URL for further details


Note You need to log in before you can comment on or make changes to this bug.