Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1550894

Summary: GD2 fails to dlopen server xlator
Product: [Community] GlusterFS Reporter: Kaushal <kaushal>
Component: coreAssignee: Kaushal <kaushal>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0CC: anoopcs, bugs, kkeithle, srangana
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-4.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1550895 (view as bug list) Environment:
Last Closed: 2018-03-13 12:37:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1550895, 1551640    
Bug Blocks: 1539842    

Description Kaushal 2018-03-02 08:23:13 UTC
Description of problem:
GD2 fails to open the server xlator to read its options. This causes GD2 to fail to start.

The reason for this is because, server xlator uses two external function from glusterfsd, glusterfs_mgmt_pmap_signout and glusterfs_autoscale_threads. These functions are not resolved when dlopen tries to load the xlator, causing it to fail with 'undefined symbol' error.

This is not a problem with normal brick operation, as the server xlator is loaded by glusterfsd, which already has the relevant symbols defined.


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

How reproducible:
Reproducible on packaged RPMs of GlusterFS-v4.0.0rc1 on Fedora and GlusterD2-v4.0.0rc1 always.

Steps to Reproduce:
1. On Fedora 27, install GlusterFS-v4.0.0rc1 from [1] and GlusterD2-v4.0.0rc1
2. Start glusterd2.

Actual results:

GD2 fails to start with logged error,
```
FATA[2018-02-28 15:02:53.345686] Failed to load xlator options                 error="dlopen(/usr/lib64/glusterfs/4.0.0rc1/xlator/protocol/server.so) failed; dlerror = /usr/lib64/glusterfs/4.0.0rc1/xlator/protocol/server.so: undefined symbol: glusterfs_mgmt_pmap_signout" source="[main.go:79:main.main]"
```


Expected results:
GD2 should not fail to start.

Additional info:

Comment 2 Kaleb KEITHLEY 2018-03-06 13:11:54 UTC
*** Bug 1551640 has been marked as a duplicate of this bug. ***

Comment 3 Shyamsundar 2018-03-06 15:17:33 UTC
The duplicate bug has the commit details, and hence moving this to MODIFIED.

In the far future this note may help someone! ;)