Why unable to start Gluster-Swift services using 'systemctl' on Red Hat Gluster Storage 3.1 ISO ?

Solution Verified - Updated -

Issue

  • Why unable to start Gluster-Swift services using 'systemctl' on Red Hat Gluster Storage 3.1 ISO ?

  • Did 'systemctl' supported for gluster swift services other than 'swift-init' for starting gluster swift ?

  • Unable to start gluster swift services with 'systemctl' on Red Hat Gluster Storage 3.1 based on Red Hat Enterprise Linux 7.1 ?

~snippet from terminal,

[root@gluster-swift ~]# systemctl status openstack-swift-proxy openstack-swift-account openstack-swift-container openstack-swift-object
openstack-swift-proxy.service - OpenStack Object Storage (swift) - Proxy Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-swift-proxy.service; disabled)
   Active: failed (Result: exit-code) since Thu 2015-11-05 13:52:59 GMT; 11s ago
  Process: 13049 ExecStart=/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf (code=exited, status=1/FAILURE)
 Main PID: 13049 (code=exited, status=1/FAILURE)

Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-proxy-server[13049]: Traceback (most recent call last):
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-proxy-server[13049]: File "/usr/bin/swift-proxy-server", line 23, in <module>
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-proxy-server[13049]: sys.exit(run_wsgi(conf_file, 'proxy-server', default_port=8080, **options))
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-proxy-server[13049]: File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 383, in run_wsgi
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-proxy-server[13049]: drop_privileges(conf.get('user', 'swift'))
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-proxy-server[13049]: File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 1219, in drop_privileges
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-proxy-server[13049]: os.setgid(user[3])
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-proxy-server[13049]: OSError: [Errno 1] Operation not permitted       <<================
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net systemd[1]: openstack-swift-proxy.service: main process exited, code=exited, status=1/FAILURE
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net systemd[1]: Unit openstack-swift-proxy.service entered failed state.

openstack-swift-account.service - OpenStack Object Storage (swift) - Account Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-swift-account.service; disabled)
   Active: failed (Result: exit-code) since Thu 2015-11-05 13:52:59 GMT; 11s ago
  Process: 13050 ExecStart=/usr/bin/swift-account-server /etc/swift/account-server.conf (code=exited, status=1/FAILURE)
 Main PID: 13050 (code=exited, status=1/FAILURE)

Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-account-server[13050]: Traceback (most recent call last):
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-account-server[13050]: File "/usr/bin/swift-account-server", line 24, in <module>
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-account-server[13050]: 'account-server', default_port=6002, **options))
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-account-server[13050]: File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 383, in run_wsgi
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-account-server[13050]: drop_privileges(conf.get('user', 'swift'))
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-account-server[13050]: File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 1219, in drop_privileges
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-account-server[13050]: os.setgid(user[3])
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-account-server[13050]: OSError: [Errno 1] Operation not permitted
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net systemd[1]: openstack-swift-account.service: main process exited, code=exited, status=1/FAILURE
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net systemd[1]: Unit openstack-swift-account.service entered failed state.

openstack-swift-container.service - OpenStack Object Storage (swift) - Container Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-swift-container.service; disabled)
   Active: failed (Result: exit-code) since Thu 2015-11-05 13:52:59 GMT; 11s ago
  Process: 13051 ExecStart=/usr/bin/swift-container-server /etc/swift/container-server.conf (code=exited, status=1/FAILURE)
 Main PID: 13051 (code=exited, status=1/FAILURE)

Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-container-server[13051]: Traceback (most recent call last):
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-container-server[13051]: File "/usr/bin/swift-container-server", line 24, in <module>
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-container-server[13051]: 'container-server', default_port=6001, **options))
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-container-server[13051]: File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 383, in run_wsgi
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-container-server[13051]: drop_privileges(conf.get('user', 'swift'))
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-container-server[13051]: File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 1219, in drop_privileges
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-container-server[13051]: os.setgid(user[3])
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-container-server[13051]: OSError: [Errno 1] Operation not permitted       <<====================
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net systemd[1]: openstack-swift-container.service: main process exited, code=exited, status=1/FAILURE
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net systemd[1]: Unit openstack-swift-container.service entered failed state.

openstack-swift-object.service - OpenStack Object Storage (swift) - Object Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-swift-object.service; disabled)
   Active: failed (Result: exit-code) since Thu 2015-11-05 13:52:59 GMT; 11s ago
  Process: 13052 ExecStart=/usr/bin/swift-object-server /etc/swift/object-server.conf (code=exited, status=1/FAILURE)
 Main PID: 13052 (code=exited, status=1/FAILURE)

Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-object-server[13052]: Traceback (most recent call last):
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-object-server[13052]: File "/usr/bin/swift-object-server", line 27, in <module>
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-object-server[13052]: **options))
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-object-server[13052]: File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 383, in run_wsgi
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-object-server[13052]: drop_privileges(conf.get('user', 'swift'))       <<====================
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-object-server[13052]: File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 1219, in drop_privileges
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-object-server[13052]: os.setgid(user[3])
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net swift-object-server[13052]: OSError: [Errno 1] Operation not permitted
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net systemd[1]: openstack-swift-object.service: main process exited, code=exited, status=1/FAILURE
Nov 05 13:52:59 hh-rhs-ap41.lnx.lr.net systemd[1]: Unit openstack-swift-object.service entered failed state.

Environment

  • Red Hat Gluster Storage 3.1
  • Red Hat Enterprise Linux 6.7
  • Red Hat Enterprise Linux 7.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content