8 Commits

Author SHA1 Message Date
Dan Voiculeasa
8ec9595b4f Debian: systemd: switch to old sas naming
This work is part of integration effort for Standard with dedicated
Storage.
It was observed SAS disk naming convention changed between CentOS
systemd v219 and Debian v247. Using the newer scheme we observe an
issue as described in the patch commit message.

Switch to using older naming scheme as a fix for the issue.

This change only affects Debian.
Tests on Standard with dedicated Storage:
PASS: build-pkgs, build-image, deploy
PASS: unlocked enabled available controller nodes
      unlocked enabled available storage nodes

Story: 2010211
Task: 46614
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I0a1a923cdd1c1eec894e93fb5daea74e136303ee
2022-10-20 18:39:14 +03:00
Charles Short
c6dd597cf7 debian: Disable additional systemd services
Disable the following services:

- systemd-timesyncd
- systemd-networkd
- systemd-network-generator
- systemd-resolved
- systemd-homed
- systemd-userdbd
- systemd-boot-update

The reason these services are being disabled is because of the new
"system traits" feature. When the kickstart file runs the command
"systemctl preset-all" the sevices will be enabled by default. To
get the original state in AIO-SX the services will be disabled by
default.

This is part of the "system traits" feature. This work only
affects Debian.

Story: 2009968
Task: 46406

Test Plan

PASS Build package
PASS Build ISO
PASS Check for running systemd-network

Depends-On: https://review.opendev.org/c/starlingx/integ/+/853653

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I382beab7dcd491fe40941da936af15e7819c2307
2022-09-27 08:18:48 +00:00
Dan Voiculeasa
ce4befaafc debian: Introduce and use custom NIC naming scheme
To add some context we start by referencing [1].
More lab tests are enabled now, which reveal more systemd naming
inconsistencies: searching parent slots ([2] vs [3]),
usage of port_name for path and slot ([4] vs [5], [6] vs [7]).
Based on previous observations infer that port_name[8] has to be
dropped from [9], even though it is not yet observed in any lab.
We observe we can't rely on a particular naming scheme already
implemented in systemd, thus we must create a custom one.
Name based on upcoming STX7.0 release.
Align naming to CentOS for discovered differences.

There may be more issues uncovered, as more labs are coverted to
Debian.

[1]: https://review.opendev.org/c/starlingx/kernel/+/841369
[2]: https://github.com/systemd/systemd/blob/v247/src/udev/
udev-builtin-net_id.c#L362,L373
[3]: https://github.com/systemd/systemd/blob/v219/src/udev/
udev-builtin-net_id.c#L229,L237
[4]: https://github.com/systemd/systemd/blob/v247/src/udev/
udev-builtin-net_id.c#L321-L324
[5]: https://github.com/systemd/systemd/blob/v219/src/udev/
udev-builtin-net_id.c#L198-L199
[6]: https://github.com/systemd/systemd/blob/v247/src/udev/
udev-builtin-net_id.c#L391-L394
[7]: https://github.com/systemd/systemd/blob/v219/src/udev/
udev-builtin-net_id.c#L248-L249
[8]: https://github.com/systemd/systemd/commit/
4887b656c22af059d4e833de7b56544f24951184
[9]: https://github.com/systemd/systemd/blob/v247/src/udev/
udev-builtin-net_id.c#L204-L207

Test on AIO-SX Debian:
PASS: Naming in sync with CentOS

Story: 2009964
Task: 45403
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Ifdfd098634feaa5cfafa84b72d3308029cfdd70c
2022-05-20 18:07:52 +03:00
Charles Short
dfa1315083 debian: Update systemd to 247.3-7
Fix build failure due to Debian 11.3. The failure is caused
by us building 247.3-6, while the the package builder was
trying to install systemd 247.3-7 which caused the packages
to fail.

One of the benefits of this is that the systemd-timesync patch
we carry was able to be dropped because it was included
in the latest update.

Test Plan
PASS Build and Install systemd package
PASS Run build-pkgs -a

Story: 2009221
Task: 43416

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I8b7252695186d1ad9e2e89445fdf7d231c39f6f2
2022-03-28 10:33:50 -04:00
Yue Tao
4a709349a9 meta_data.yaml: add sha256sum checksum
Test Plan:
Pass: Verify sha256sum checksum via "download -s"

Story: 2008846
Task: 44578

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: I78d9dff2af0afb18c6db4e8d2d39ef79b5cf5864
2022-03-03 14:30:40 +08:00
Charles Short
8dbdc40fe1 debian: Bump timesyncd from Depends to Recommends
Allows other time sync daemons to be installed such as NTP
to be installed in order to fix the ISO build.

Test Plan:
PASS Build systemd with applied patch
PASS Build ISO with updated systemd

Story: 2009221
Task: 43416

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I76b27b72cc947bf5480b149fef2f3c09657b92c3
2022-01-26 14:10:39 +00:00
Yue Tao
436c8cea3c systemd: use dl_path to download tarball
Use dl_path to download tarball in case of version uprev.

Test plan:

Pass: successfully build systemd

Story: 2009221
Task: 43416

Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: Ifc20222f55558a0604218213e05293d779a2e976
2022-01-25 16:38:00 +08:00
Yue Tao
5c5d01915a Add debian package for systemd
Porting 851/909/910/913/919/920/922/923/924/925/926/927
patches to debian, other patches are confirmed in
debian version.

Story: 2009221
Task: 43416
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I5af677c90342bae7c30991bf465e0db79c71667d
2021-11-14 15:52:18 +08:00