multi api_workers bind port failed

Bug #1620971 reported by xiayu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Won't Fix
Undecided
Unassigned

Bug Description

in conf file: api_workers=4

error log:
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service [req-24844814-509a-415a-a05f-4203fd95f098 - - - - -] Error starting thread.
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service Traceback (most recent call last):
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 708, in run_service
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service service.start()
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/tacker/service.py", line 65, in start
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service self.wsgi_app = _run_wsgi(self.app_name)
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/tacker/service.py", line 111, in _run_wsgi
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service workers=cfg.CONF.api_workers)
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/tacker/wsgi.py", line 216, in start
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service backlog=backlog)
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/tacker/wsgi.py", line 195, in _get_socket
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service 'time': CONF.retry_until_window})
2016-09-07 05:02:15.497 25228 ERROR oslo_service.service RuntimeError: Could not bind to 0.0.0.0:9890 after trying for 30 seconds

Revision history for this message
xiayu (1013230155-v) wrote :

i think this is problem:
in tacker/cmd/server.py
tacker_api = service.serve_wsgi(service.TackerApiService)
launcher = common_service.launch(cfg.CONF, tacker_api,
                                workers=cfg.CONF.api_workers or None)

in tacker/wsgi.py
self._launcher = common_service.ProcessLauncher(CONF,wait_interval=1.0)
self._server = WorkerService(self, application)
self._launcher.launch_service(self._server, workers=workers)

they both launch sevice with multi workers.
if i remove workers in server.py, it will works.
launcher = common_service.launch(cfg.CONF, tacker_api)

Revision history for this message
venkatamahesh (venkatamaheshkotha) wrote :

Hi,

Please paste full tacker.log data ?

Thanks
mahesh

Changed in tacker:
assignee: nobody → venkatamahesh (venkatamaheshkotha)
Changed in tacker:
assignee: venkatamahesh (venkatamaheshkotha) → nobody
Revision history for this message
Niraj Singh (nirajsingh) wrote :
Download full text (5.1 KiB)

Tried to reproduce this bug by modifying api_worker in tacker.conf file.

First checked for api_workers = 4, and got the below workers started successfully:

ps aux | grep tacker
open 1239 0.2 0.9 243328 78568 ? Ss 01:02 0:02 /usr/bin/python /usr/local/bin/tacker-conductor --config-file /etc/tacker/tacker.conf
open 6795 0.0 0.1 107880 8820 pts/5 S+ 01:05 0:00 journalctl -n 10000 -a -f --unit <email address hidden>
root 7438 8.4 0.9 245480 80648 ? Ss 01:19 0:02 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7448 3.9 1.3 296348 113608 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7449 4.0 1.3 296356 113612 ? S 01:19 0:01 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7450 4.1 1.3 296352 113604 ? S 01:19 0:01 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7451 4.0 1.3 296344 113604 ? S 01:19 0:01 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7452 0.1 1.3 297124 111736 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7453 0.1 1.3 297128 111684 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7454 0.1 1.3 297124 111736 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7455 0.1 1.3 297128 111684 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7456 0.1 1.3 297128 111708 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7457 0.1 1.3 297124 111696 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7458 0.1 1.3 297172 111740 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7459 0.2 1.3 297132 111684 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7460 0.1 1.3 297128 111688 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7461 0.1 1.3 297124 111688 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7462 0.1 1.3 297176 111736 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7463 0.1 1.3 297124 111712 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7464 0.1 1.3 297128 111712 ? S 01:19 0:00 /usr/bin/python /usr/local/bin/tacker-server --config-file /etc/tacker/tacker.conf
root 7465 0.1 1.3 297036 111728 ? S 01:19 0:0...

Read more...

Yasufumi Ogawa (yasufum)
Changed in tacker:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.