75e030dfbdcf3c76fbc75d7cebf84b0a2ec5e026
The function of class "ProcessLauncher" is to fork multiple processes. the function of "WorkerService.start" is provider api service and set process title according to the parameter desc. when multiple API processes need to be launched, use "ProcessLauncher" (in module oslo_service.service) manage. call "ProcessLauncher.launch_service" with the num of processes and service instance to real launch. when the "ProcessLauncher" launch the service, it calls the "start" method of the service directly without passing any parameters. Starting API processes, the service object passed in is WorkerService (in module neutron.wsgi) object. In the current design, pass the "desc" in call "WorkerService.start", therefore, the desc cannot be set. This patch add the "desc" parameter to the initialization, when call "start" method, if set "desc", it will be used first. if not, "desc" passed in initialization are used. this design solves the problem and keeps compatibility. Closes-bug: #1910623 Change-Id: Ia37182e572ac4e9ae83cd03d7008aa42c7ea36c8
OpenStack Neutron
Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).
To learn more about neutron:
- Documentation: https://docs.openstack.org/neutron/latest/
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
- Source: https://opendev.org/openstack/neutron
Get in touch via email. Use [Neutron] in your subject.
To learn how to contribute, please read the CONTRIBUTING.rst file.
Description
Languages
Python
99.7%
Shell
0.3%