Felipe Sanches Zanoni 89ba3c0e88 Fix file descriptor inheritance in ceph.sh script
The ceph.sh script is called by the mtcClient process during the
system start-up. This script will then start the Ceph processes.
The mtcClient uses the UDP port 2119 to communicate with other hosts,
and these Ceph processes inherit the UDP port from the mtcClient
because the file descriptor is kept open when forking the application.

When the mtcClient process restarts, the Ceph processes with the
inherited file descriptor will automatically start using that UDP
port, blocking the mtcClient from binding to that port.

The solution is to call the ceph-init-wrapper script using the
"systemd-run" command as a transient service with "--pipe" and
"--wait" to isolate all the FDs except for the stdin/stdout/stderr.

Test-Plan:
  PASS: Multi-node system - Unmanage and stop all Ceph processes on
        controller-0, and kill the mtcClient process twice. Check if
        only mtcClient is listed using UDP port 2119 by running
        'sudo lsof -iUDP:2119'.

  PASS: Deploy AIO-SX and check if Ceph status is HEALTH_OK. The
        mtcClient will not bind UDP 2119 port in this configuration.

  PASS: Deploy AIO-DX and check if only mtcClient is listed using
        UDP port 2119 by running 'sudo lsof -iUDP:2119'.

Closes-bug: 2090928

Signed-off-by: Felipe Sanches Zanoni <Felipe.SanchesZanoni@windriver.com>
Change-Id: I5091953bc370ae60e972ef9f383aaab84f2781f0
2024-12-04 17:13:32 +00:00
2023-08-29 16:52:04 -03:00
2024-05-01 16:39:19 -04:00
2024-11-25 20:47:01 -05:00
2024-05-01 16:39:19 -04:00
2019-01-08 11:42:04 -05:00
2019-04-19 19:52:31 +00:00
2023-09-06 17:54:55 -03:00
2021-09-09 19:05:36 +03:00
2024-11-25 20:47:01 -05:00
2018-05-31 07:36:35 -07:00

integ

StarlingX Integration

Description
StarlingX Integration and packaging
Readme 52 MiB
Languages
Shell 33.1%
JavaScript 24.1%
Perl 14.3%
Python 10.3%
Makefile 6.6%
Other 11.5%