13 Commits

Author SHA1 Message Date
Charles Short
305ab43ff9 debian: Split out system presets into separate pkg
Remove the system-presets from the centos-debian-compat
package so that the systemd-presets policies can be
better managed.

This is part of the systemd-traits work that is currently
being undertaken.

Test Plan
Build package
Build ISO
Install ISO
Check for symlink from /lib/lsb/init-functions
to /etc/init.d/functions.

Story: 2009968
Task: 46406

Depends-On: https://review.opendev.org/c/starlingx/metal/+/854667

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I5d30aca52819a536a78faaab0452f2dc2baed839
2022-09-27 08:21:20 +00:00
Davi Frossard
698c8986e3 Remove sm-watchdog service enablement
Due to the changes
bd9e560d4b
which removed the sm-watchdog, we also need to remove the enablement
of the service it provided from systemd preset.

Story: 2010087
Task: 46007

Depends-on: https://review.opendev.org/c/starlingx/metal/+/855396
Signed-off-by: Davi Frossard <dbarrosf@windriver.com>
Change-Id: I7df5b047c9f2a954ebd38ec1df82b3d2d65f2ea6
2022-09-01 14:08:46 +00:00
Charles Short
9d7c097b38 debian: Enable affine services
Enable affine-tasks.service affine-platform.sh.service so that
kernel threads have the correct priority/affinity.

Test Plan
PASS Build worker-utils package
PASS Build ISO
PASS Boot AIO ISO
PASS Check via "systemctl status" that the affine-tasks.service
     and affine-platform.sh.service start at boot.
PASS Check the output ps-sched.sh for proper affining and
     priority setting of the kernel threads.

Depends-On: https://review.opendev.org/c/starlingx/utilities/+/845355

Story: 2009101
Task: 43893

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I76be825b121301682cfd56137c0bda9651f56835
2022-06-13 13:13:20 -04:00
Hugo Brito
0f938ab20c Debian: Disable pci-irq-affinity-agent service
This prevents the pci-irq-affinity-agent from being
enabled. This service is not used by the platform
anymore, migrating to be a stx-openstack container [1].

However, there is still WIP for complete the removal [2],
but the agent is already used as a container, it is not
doing anything on the platform.

1: https://storyboard.openstack.org/#!/story/2009299
2: https://review.opendev.org/c/starlingx/utilities/+/830892

Test Plan:
PASS: bootstrap finished successfully
PASS: unlock finished successfully

Story: 2009965
Task: 45194

Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
Change-Id: I6f89653bcf9904362b1f942720cc486a102b7f6f
2022-04-27 21:22:36 +00:00
Andre Fernando Zanella Kantek
6e38aa7189 Remove iptables services from debpkg issues preset file on Debian
With the iptables-config package implementation the iptables packages
(see Dependes-On tag below) can be removed from this file.

Story: 2009965
Task: 45084
Depends-On: https://review.opendev.org/c/starlingx/config-files/+/838339

Signed-off-by: Andre Fernando Zanella Kantek <AndreFernandoZanella.Kantek@windriver.com>
Change-Id: Id1817cc72001869bc37c7588f65ee5a8b54fef60
2022-04-18 16:33:20 -03:00
Antonio Augusto Vilas Boas Teixeira
7052ad54f4 Remove mlx4-config from required Debian services
The mlx4-config.service was deprecated in the change
https://review.opendev.org/c/starlingx/config-files/+/832262 as part of
the Mellanox CX6 support tasks.

This change removes mlx4-config from the list that is being used to keep
track of the services available on CentOS that should also be present on
Debian.

TESTS: Checked the services running before ansible bootstrap in a CentOS
and a Debian install. mlx4-config service is not present in both, which
is the expected behavior.

Story: 2009878
Task: 44868
Signed-off-by: Antonio Augusto Vilas Boas Teixeira
<antonio.augustovilasboasteixeira@windriver.com>
Change-Id: I98b78954068ba0dfdb66bd6b537623634af8d2c0
2022-03-28 12:14:47 -04:00
Zuul
49cec30b3d Merge "Enable cron service" 2022-03-21 22:26:19 +00:00
Leonardo Fagundes Luz Serrano
a503326524 Enable cron service
The scheduling service on debian is called cron, not crond.
Adjusting file so that cron service starts on system boot.

Test Plan:
Pend - Boot Debian iso and check if service is enabled

Story: 2009101
Task: 44829

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I963d4ad3e4ce8eb3a8f4c63aef647c90156ea167
2022-03-21 13:57:46 -03:00
Zuul
a6e650a340 Merge "debian: Clean up services starting" 2022-03-09 16:16:26 +00:00
Dan Voiculeasa
cd1d36e808 debian: Change systemd service presets for nfs
This work is part of Debian integration effort. This work
affects only Debian. This will unlock puppet manifest
apply at unlock.

Nfs utilities on Debian use different service names. Enable
them to allow puppet manifest for unlock progress. Otherwise
exportfs doesn't function without the services started.

Tests:
PASS: on an existing setup, manually enabled the services before
      unlock, did run unlock, progressed further than the error
PASS: build-pkgs && build-image
PASS: install iso
PASS: check nfs services are enabled

Story: 2009101
Task: 44380
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I41de2471074ecd3805f1cb1a74cbe3b976c01f9d
2022-03-04 20:10:19 +00:00
Chuck Short
8f11e0df76 debian: Clean up services starting
This commit does several things at once:
- Create a symlink for /etc/init.d/functions (centos) from
  /lib/lsb/init-functions, to maintain compatibility.
- Make /etc/systemd/system-preset so that when a service
  is installed it places a preset file in the directory.
- Remove hardcoded services.

Test Plan:
PASS Build package
PASS Build and install ISO
PASS check for symlink /etc/init.d/functions
PASS check for /etc/systemd/system-preset
PASS check for running services

Story: 2009101
Task: 44678

Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I9c5ec7eb7177dd7dde954db5d0c3d3f602677ccd
2022-03-04 14:39:38 +00:00
Charles Short
cc310a0d19 debian: Enable minimum required platform services
Systemd provides preset files which may be used to encode policy which
units shall be enabled by default and which ones shall be disabled.

Add:
- 99-default-disable.preset to disable all services by default
- 90-default.preset which aims to align with services enabled in CentOS
  This file was delivered via the systemd package under CentOS. Adjusted
  for Debian compatibility.
- 85-debpkg-issues.preset to align service enablement for StarlingX
  services where the current packaging is not enabling services
  correctly. This file is temporary until packaging issues are resolved.

This commit aims to add CentOS/Debian service enablement/disablement
compatibility post-installation.

Test Plan
PASS Build and Test ISO
PASS Test that services are disabled by default
PASS Test that AIO-SX StarlingX service are started if available

Change-Id: Icc952aa40b4844f9e793cbff92612dc77883fed1
Story: 2009101
Task: 44380
Co-Authored-By: Robert Church <robert.church@windriver.com>
Signed-off-by: Charles Short <charles.short@windriver.com>
Signed-off-by: Robert Church <robert.church@windriver.com>
2022-02-28 03:10:51 -05:00
Matheus Machado Guilhermino
c311145341 Add centos-debian-compat package to Debian
This package was created to direct
/ect/init.d/functions to lib/lsb/init-functions

This was done to avoid altering files that
are relevant to CentOS.

Test Plan:

PASS: Package installed and ISO built successfully

Story: 2009101
Task: 44380

Signed-off-by: Matheus Machado Guilhermino <Matheus.MachadoGuilhermino@windriver.com>
Change-Id: I6738cee99337aab7c6aa669f60a5a134929ac5cf
2022-02-02 19:02:04 -03:00