Bug 1249989

Summary: [GSS] python-gluster packages not being treated as dependent package for gluster-swift packages
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Bipin Kunal <bkunal>
Component: buildAssignee: Prashanth Pai <ppai>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.1CC: byarlaga, divya, nlevinki, ppai, pprakash, rcyriac, rhs-bugs, sasundar, thiago, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: swiftonfile-1.13.1-3 Doc Type: Bug Fix
Doc Text:
Previously, a file required by gluster-swift service was moved from glusterfs-api RPM to python-gluster RPM. As a consequence, the gluster-swift service was not started. With this fix, the required RPM (python-gluster) is made as a dependency and the gluster-swift service can be started.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-05 07:22:06 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:    
Bug Blocks: 1250003, 1251815    

Description Bipin Kunal 2015-08-04 10:10:31 UTC
Description of problem:
Not able to start swift after upgrade from 3.0.4 to 3.1

[root@server swift]# swift-init main restart
Signal proxy-server  pid: 6311  signal: 15
No proxy-server running
Signal container-server  pid: 6312  signal: 15
No container-server running
Signal account-server  pid: 6313  signal: 15
No account-server running
Signal object-server  pid: 6314  signal: 15
No object-server running
Starting proxy-server...(/etc/swift/proxy-server.conf)
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
Starting object-server...(/etc/swift/object-server.conf)
Error trying to load config from /etc/swift/proxy-server.conf: No module named gluster.swift.proxy.server

Error trying to load config from /etc/swift/container-server.conf: No module named gluster.swift.container.server

Error trying to load config from /etc/swift/account-server.conf: No module named gluster.swift.account.server

Error trying to load config from /etc/swift/object-server.conf: No module named gluster.swift.obj.server


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


How reproducible:
Always


Steps to Reproduce:
1. Upgrade/Install to 3.1
2. run command swift-init main restart

Additional info:

Issue is due to missing __init__.py script.

Earlier /usr/lib/python2.6/site-packages/gluster/__init__.py script was part of glusterfs-api package but this script was moved out to python-gluster package in RHS-3.1

So installing python-gluster package solve the issue.

Comment 6 Prashanth Pai 2015-08-19 06:17:20 UTC
Thanks Bipin. Just confirmed the state of things as reported above:

RHS 3.0.4 contains:
glusterfs-api-3.6.0.53-1.el6rhs.x86_64.rpm 

[ppai@pp 1249989]$ rpm -qlp ./glusterfs-api-3.6.0.53-1.el6rhs.x86_64.rpm 
/usr/lib/python2.6/site-packages/gluster/__init__.py
/usr/lib/python2.6/site-packages/gluster/__init__.pyc
/usr/lib/python2.6/site-packages/gluster/__init__.pyo
/usr/lib/python2.6/site-packages/gluster/gfapi.py
/usr/lib/python2.6/site-packages/gluster/gfapi.pyc
/usr/lib/python2.6/site-packages/gluster/gfapi.pyo
/usr/lib/python2.6/site-packages/glusterfs_api-3.6.0.53-py2.6.egg-info
/usr/lib64/glusterfs/3.6.0.53/xlator/mount/api.so
/usr/lib64/libgfapi.so.0
/usr/lib64/libgfapi.so.0.0.0

RHS 3.1 contains:
glusterfs-api-3.7.1-11.el6rhs.x86_64.rpm 
python-gluster-3.7.1-11.el6rhs.x86_64.rpm 

[ppai@pp 1249989]$ rpm -qlp ./glusterfs-api-3.7.1-11.el6rhs.x86_64.rpm 
/usr/lib64/glusterfs/3.7.1/xlator/mount/api.so
/usr/lib64/libgfapi.so.0
/usr/lib64/libgfapi.so.0.0.0

[ppai@pp 1249989]$ rpm -qlp ./python-gluster-3.7.1-11.el6rhs.x86_64.rpm 
/usr/lib/python2.6/site-packages/gluster/__init__.py
/usr/lib/python2.6/site-packages/gluster/__init__.pyc
/usr/lib/python2.6/site-packages/gluster/__init__.pyo

Comment 12 SATHEESARAN 2015-08-29 02:04:42 UTC
Tested with glusterfs-3.7.1-13.el7rhgs
python-gluster package is pulled in as dependency while installing swiftonfile

[root@ ~]# rpm -qa | grep swiftonfile
swiftonfile-1.13.1-4.el7rhgs.noarch

[root@ ~]# rpm -qR swiftonfile | grep gluster
python-gluster >= 3.7.1

Comment 13 Bipin Kunal 2015-09-01 04:27:05 UTC
Hi Prashanth,

Could you please provide the downstream gerrit link for this fix.

Thanks,
Bipin Kunal

Comment 15 Rejy M Cyriac 2015-09-01 06:33:13 UTC
(In reply to SATHEESARAN from comment #12)
> Tested with glusterfs-3.7.1-13.el7rhgs
> python-gluster package is pulled in as dependency while installing
> swiftonfile
> 
> [root@ ~]# rpm -qa | grep swiftonfile
> swiftonfile-1.13.1-4.el7rhgs.noarch
> 
> [root@ ~]# rpm -qR swiftonfile | grep gluster
> python-gluster >= 3.7.1

Please confirm that the issue fix is verified on RHEL6 platform as well

Comment 16 SATHEESARAN 2015-09-01 06:36:21 UTC
(In reply to Rejy M Cyriac from comment #15)
> (In reply to SATHEESARAN from comment #12)
> > Tested with glusterfs-3.7.1-13.el7rhgs
> > python-gluster package is pulled in as dependency while installing
> > swiftonfile
> > 
> > [root@ ~]# rpm -qa | grep swiftonfile
> > swiftonfile-1.13.1-4.el7rhgs.noarch
> > 
> > [root@ ~]# rpm -qR swiftonfile | grep gluster
> > python-gluster >= 3.7.1
> 
> Please confirm that the issue fix is verified on RHEL6 platform as well

Missed out to check the package dependency chain in RHGS 3.1 based on RHEL 6.7
Thanks Rejy for pointing that out.

Tested with RHGS 3.1 ( based on RHEL 6.7 )

[root@ ~]# rpm -qa | grep swiftonfile
swiftonfile-1.13.1-4.el6rhs.noarch

[root@ ~]# rpm -qa | grep python-gluster
python-gluster-3.7.1-13.el6rhs.x86_64

[root@ ~]# rpm -qR swiftonfile | grep gluster
python-gluster >= 3.7.1

Comment 17 Divya 2015-09-22 05:27:11 UTC
Prashanth,

Please review and sign-off the edited doc text.

Comment 18 Prashanth Pai 2015-09-22 05:34:31 UTC
Doc text looks good to me.

Comment 20 errata-xmlrpc 2015-10-05 07:22:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-1845.html