Bug 1550894 - GD2 fails to dlopen server xlator
Summary: GD2 fails to dlopen server xlator
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: 4.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Kaushal
QA Contact:
URL:
Whiteboard:
Depends On: 1550895 1551640
Blocks: glusterfs-4.0.0
TreeView+ depends on / blocked
 
Reported: 2018-03-02 08:23 UTC by Kaushal
Modified: 2018-03-13 12:37 UTC (History)
4 users (show)

Fixed In Version: glusterfs-4.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1550895 (view as bug list)
Environment:
Last Closed: 2018-03-13 12:37:22 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1551640 0 urgent CLOSED GD2 fails to dlopen server xlator 2021-02-22 00:41:40 UTC

Internal Links: 1551640

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! ;)


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