Command "swift-init" is showing wrong output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
In Progress
|
Undecided
|
Ankur Jain |
Bug Description
I have installed packstack environment on Liberty. I am trying to identify the status of processes for each swift services.
I tried using the command "swift-init all status". But this command shows "No swift-xxx running".
Where as If I execute the ps -ef | grep "swift" command, it lists all the swift processes running on the system.
Please find the details below.
=======
[root@Liberty1 ~(keystone_admin)]# ps -ef | grep "swift"
swift 1321 1 0 11:11 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 1322 1 0 11:11 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 1323 1 0 11:11 ? 00:00:05 /usr/bin/python2 /usr/bin/
swift 1324 1 0 11:11 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 1325 1 0 11:11 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 1326 1 0 11:11 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 1328 1 0 11:11 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 1329 1 0 11:11 ? 00:00:01 /usr/bin/python2 /usr/bin/
swift 1330 1 1 11:11 ? 00:01:16 /usr/bin/python2 /usr/bin/
swift 1331 1 1 11:11 ? 00:01:18 /usr/bin/python2 /usr/bin/
swift 1332 1 1 11:11 ? 00:01:17 /usr/bin/python2 /usr/bin/
swift 1334 1 0 11:11 ? 00:00:04 /usr/bin/python2 /usr/bin/
swift 1335 1 0 11:11 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 3776 1332 0 11:12 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 3788 1330 0 11:12 ? 00:00:00 /usr/bin/python2 /usr/bin/
swift 3882 1331 0 11:12 ? 00:00:00 /usr/bin/python2 /usr/bin/
root 2366 1511 0 12:41 pts/0 00:00:00 grep --color=auto swift
[root@Liberty1 ~(keystone_admin)]# swift-init all status
No container-updater running
No account-auditor running
No object-replicator running
No container-sync running
No container-
No object-auditor running
No object-expirer running
No container-auditor running
No container-server running
No object-
No object-server running
No account-reaper running
No proxy-server running
No account-replicator running
No object-updater running
No container-
No account-server running
=======
According to my understanding the problem is there in Kilo release as well. Before that, for each process a particular PID file was created. But now the file is not created.
Changed in swift: | |
assignee: | nobody → Ankur Jain (j-ankur) |
Changed in swift: | |
status: | New → Confirmed |
If the command "swift-init main restart" is executed, then the Code error is shown on screen. ======= ======= ======= ======= ======= ======= ====== ..(/etc/ swift/proxy- server. conf) server. ..(/etc/ swift/container -server. conf) server. ..(/etc/ swift/account- server. conf) server. ..(/etc/ swift/object- server. conf) swift-container -server" , line 23, in <module> exit(run_ wsgi(conf_ file, 'container-server', **options)) python2. 7/site- packages/ swift/common/ wsgi.py" , line 878, in run_wsgi bind_ports( ) python2. 7/site- packages/ swift/common/ wsgi.py" , line 480, in bind_ports self.conf) python2. 7/site- packages/ swift/common/ wsgi.py" , line 201, in get_socket
=======
[root@Liberty1 ~(keystone_admin)]# swift-init main restart
Signal proxy-server pid: 14330 signal: 15
Signal container-server pid: 14331 signal: 15
No container-server running
Signal account-server pid: 14332 signal: 15
No account-server running
Signal object-server pid: 14333 signal: 15
No object-server running
proxy-server (14330) appears to have stopped
Starting proxy-server.
Starting container-
Starting account-
Starting object-
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
error_msg = strategy.
File "/usr/lib/
self.sock = get_socket(
File "/usr/lib/
bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.52.131:6001 after trying for 30 seconds
Traceback (most recent call last): swift-account- server" , line 23, in <module> exit(run_ wsgi(conf_ file, 'account-server', **options)) python2. 7/site- packages/ swift/common/ wsgi.py" , line 878, in run_wsgi bind_ports( ) python2. 7/site- packages/ swift/common/ wsgi.py" , line 480, in bind_ports self.conf) python2. 7/site- packages/ swift/common/ wsgi.py" , line 201, in get_socket
File "/usr/bin/
sys.
File "/usr/lib/
error_msg = strategy.
File "/usr/lib/
self.sock = get_socket(
File "/usr/lib/
bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.52.131:6002 after trying for 30 seconds
Traceback (most recent call last): swift-object- server" , line 27, in <module> python2. 7/site- packages/ swift/common/ wsgi.py" , line 878, in run_wsgi bind_ports( ) python2. 7/site- packages/ swift/common/ wsgi.py" , line 480, in bind_ports self.conf) python2. 7/site- packages/ swift/common/ wsgi.py" , line 201, in get_socket ======= ======= ======= ======= ======= ======= ======= ======= =======
File "/usr/bin/
**options))
File "/usr/lib/
error_msg = strategy.
File "/usr/lib/
self.sock = get_socket(
File "/usr/lib/
bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.52.131:6000 after trying for 30 seconds
=======