Simple port of two existing patches without modification to
kubernetes 1.23.1. This enables the feature to make kubelet
isolcpus allocation SMT aware.
Depends-On: https://review.opendev.org/c/starlingx/compile/+/825651
Depends-On: https://review.opendev.org/c/starlingx/integ/+/825654
Story: 2008760
Task: 44190
Test Plan:
PASS: Launch isolcpus pod and verify new kubelet logs on target host
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
Change-Id: I2c18dea1b1f9a8a1c5e183e104a832ac872764e6
Update version of Trident to 22.01.0 to keep compatibility with
version 1.23 of Kubernetes.
This supports Kubernetes 1.11 until 1.23.
Test Plan:
PASS: Tested Trident 22.01.0 installation and communication with
Netapp simulator
PASS: Tested the Trident update from version 21.04.1 to 22.01.0,
upgrading tridentctl client version and rerunning the
ansible-playbook to update the server version.
Story: 2009860
Task: 44546
Change-Id: I327b4e3707de54006f2d90d53f7d343ca5cfeb43
Signed-off-by: Daian Cardoso Sganderlla <Daian.CardosoSganderlla@windriver.com>
Qemu and kubernetes build failed to build under a 3 GB ramdisk.
The 6 GB ramdisk was ok.
Increase the minimum resources for these packages to 6 GB.
Closes-bug: 1964980
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I6027a4c02c15ef87a405ad300e967499c103b452
Changes for adding Kubernetes 1.23.1 in
StarlingX, including build environment updates.
The package builds successfully.
Built and installed an iso with K8s 1.23.1 on
AIO-SX.
Depends-On: https://review.opendev.org/c/starlingx/compile/+/825651
Story: 2009830
Task: 44424
Change-Id: I3e2b793d7b88057fc597b2445bddd137bb2b4fcf
Signed-off-by: Gleb Aronsky <gleb.aronsky@windriver.com>
This work is part of Debian integration effort.
This work affects only Debian, but we can port to CentOS.
Puppet manifest fails because osd service is called before osds are
prepared (partitioned). This happends because parameters are not
correctly passed to the service call. In fact the service call only
asks to start a mon serice.
Tests:
PASS: live patch controller && unlock, puppet goes past the issue
PASS: build-pkgs and check contents
Story: 2009101
Task: 44756
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I9f6c6478c51ba45843bbaff9e264fc10056fac48
This work is part of Debian integration effort. This work only affects
debian.
We package the same version of ceph for both CentOS and Debian.
Since we know the puppet-ceph module on CentOS is supposed to work,
use this on Debian also to reduce testing and possible issues.
Patches were copied from CentOS and not touched.
Drop one patch to metadata.json, we know we have some work to do in
that area to clear puppet warnings, but will be done part of a
generic clearing puppet warnings effort.
The sources need to be patched to work with debhelper-compat 13, which
we don't care now.
There are some integration issues, but testing so far revealed that
during a puppet replay for aio manifest ceph data and ceph journal
partitions were created.
Story: 2009101
Task: 43431
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I90adc736ea52e6c4f9946520156f53e572c224cc
Testing:
* Deployed ISO with changes.
* Configured kube-cpu-mgr-policy=static.
* Verified that metrics-server were running on platform CPUs.
Partial-Bug: 1964503
Signed-off-by: Thiago Miranda <ThiagoOliveira.Miranda@windriver.com>
Change-Id: I9bebe9ec27fcd70e89a4cae52bfacde993f958eb
In order to compare the difference between sysinv database and
currently configured static routes, the destination directory will be
changed to /var/run/network-scripts.puppet/
This new location will be used by apply_network_config script to
update modified configuration from the database and save the result
in /etc/network/routes be used during boot by ifupdown
Story: 2009101
Task: 44728
Signed-off-by: Andre Fernando Zanella Kantek <AndreFernandoZanella.Kantek@windriver.com>
Change-Id: I4ba06160c2cc7db2bfec061c09b9eb6a75961ce4
When executing a reboot/shutdown
k8s pods are not receiving the SIGTERM
signal which leads some of them to
unexpected behaviour such as generating
huge coredumps.
There is an upstream issue regarding this:
https://github.com/kubernetes/kubernetes/issues/107158
The problem seems to be systemd related
but this commit addresses the problem
with a workaround.
This commit introduces a new script that
will cleanup all the remaing pods and will
be run after kubelet is stopped.
The script is executed successfully when
kubelet stops and the pods are stopped
before the system shuts down.
Closes-bug: 1964111
Signed-off-by: Daniel Safta <daniel.safta@windriver.com>
Change-Id: Ia0376aa510dd0dc3983e16cd89840726c15d6c92
The module mlx4 has been dropped in
mlnx-ofa_kernel-5.5-OFED.5.5.1.0.3.1. So remove mlx4 from openvswitch
after OFED driver upgrade. The infomation can be found in the part
"Unsupported Functionalities/Features/NICs" in this link:
https://docs.nvidia.com/networking/display/MLNXOFEDv551032/
General+Support where ConnectX-3 and ConnectX-3 Pro adapter card
represents use of mlx4.
Verification:
- Build success.
- Install success onto a StarlingX system with two controller and two
compute nodes with network adapters Mellanox's OFED. The network
adapters of controllers are Mellanox Technologies MT27710 Family
[ConnectX-4 Lx], the network adapters of computes are Mellanox
Teichnologies MT27800 Family [ConnectX-5].
- RDMA/Infiniband over Ethernet functionalities of the Mellanox adapters
were successfully tested using the Linux RDMA community's perftest
package.
- Test ovs-dpdk. It fails with both mlx driver version
mlnx-ofa_kernel-5.3-OFED.5.3.1.0.0.1 and
mlnx-ofa_kernel-5.5-OFED.5.5.1.0.3.1. The OFED v5.5 is not breaking
anything new.
Story: 2009878
Task: 44652
Depends-On: https://review.opendev.org/c/starlingx/kernel/+/831461
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
Change-Id: I5214ef6de1eb7c054e4fc544f113d67652f661fa
Simple port of two existing patches without modification to
kubernetes 1.22.5. This enables the feature to make kubelet
isolcpus allocation SMT aware.
Story: 2008760
Task: 44190
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
Change-Id: I6fb17f62d90bd6aa26b88dc7057ed7f667cf81b7
helm-toolkit's resources need to be updated
to use the new apiVersion and changes
proposed in:
https://kubernetes.io/docs/reference/using-api/deprecation-guide
This commit addresses just the changes needed for running
the armada chart.
It was deployed successfully on k8s 1.22.5.
Story: 2009888
Task: 44649
Change-Id: If38f62d178412f8a0974ec0af8ff2475800876be
Signed-off-by: Daniel Safta <daniel.safta@windriver.com>
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
This work is part of the Debian integration efforts
This work only affects Debian.
Depends-On: https://review.opendev.org/c/starlingx/integ/+/831738
Debian tests:
PASS: build-pkgs
PASS: build-image
PASS: install
Story: 2009101
Task: 44402
Signed-off-by: Chuck Short <charles.short@windriver.com>
Change-Id: I48c513dba0fb07edc5413e8ba3b139430e53c8bd
When the interfaces file is generated it is necessary to determine the
mode (vlan or raw) from the interface name. Originally the plugin
considers that a previous interfaces file exists and will use it to
set the mode value.
But on StarlingX network_config is generated by sysinv and there is no
previous file to parse, so this change adds the mode logic on
file formatting.
Test Plan:
PASS: generate valid ifupdown config when interface name is of format
"vlanNNN" on Debian and apply it with ifup/ifdown command
Story: 2009101
Task: 44659
Signed-off-by: Andre Fernando Zanella Kantek <AndreFernandoZanella.Kantek@windriver.com>
Change-Id: Ibccd189ea14eed4b8504908188fabedfa6bf4c2a
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
Change openldap pid and args file location from /var/run/slapd
to /run so it's aligned with CentOS. This will enable openldap
to be managed by SM.
Test Plan for Debian:
PASS: package build, image build
PASS: system boostrap
PASS: controller unlock, open-ldap service state in SM is
enabled-active enabled-active
Story: 2009101
Task: 44664
Signed-off-by: Andy Ning <andy.ning@windriver.com>
Change-Id: I108a63d5b829b66ef24516f9e2c33fde0288f9a8
This commit bumps the containernetwork-plugins package to v1.0.1.
This is part of the ongoing activity of refreshing kubernetes
components. In this case, various bug fixes throughout the
plugins have been picked up.
Test Plan:
- Successful build of the new package.
- Plugin functional testing:
main:
bridge
macvlan
ipvlan
vlan
ptp
host-device
meta:
sbr
vrf
tuning
portmap
bandwidth
ipam:
dhcp
static
host-local
Story: 2009832
Task: 44426
Change-Id: Id636b959cf500009b4f14bc10379a5edf969d032
Signed-off-by: Steven Webster <steven.webster@windriver.com>
Removed user from group/passwd files to prevent a
conflict when the postgresql-common package is installed.
Story: 2009221
Task: 43417
Test Plan
PASS Apply patch build package
PASS Build base-passwd package
PASS Run build-image
PASS Check to see if postgresql is running when
the image is running.
PASS Debootstrap
Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I885ed3467548013ad9c2be3d7d64fafad3703adc
To align with kubernetes 1.21.8,
Upgrade containerd from version 1.4.6 to 1.4.11
Upgrade runc from version 1.0.0-rc95 to 1.0.2
We continue to use no_btrfs build flag for containerd
as we do not use btrfs
Test Plan:
Built an iso (CentOS) and installed on AIO-DX lab
PASS: Run basic docker, ctr, crictl and runc commands
to create, list containers, images
PASS: Create new pods and PVCs and delete them
PASS: Lock-unlock and reboot hosts.
Check all pods are up back
Story: 2009845
Task: 44456
Signed-off-by: Kaustubh Dhokte <kaustubh.dhokte@windriver.com>
Change-Id: I8e5ce0fd316e2e7f059c8abe5050732192f502a1
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>
To avoid any previous ext4 file system signatures that could have been
present from previous installs, add lvcreate options to wipe signatures
and zero the first 4KiB of data in the LV. This will avoid requiring
user interaction.
WARNING: ext4 signature detected on /dev/cgts-vg/scratch-lv at offset
1080. Wipe it? [y/n]:
Change-Id: Ifeb0ddf193820a3e5d98006093813355d2494797
Story: 2009101
Task: 44628
Signed-off-by: Robert Church <robert.church@windriver.com>
This is a transient work that enables us to progress Debian
integration. This work affects only Debian.
Sysinv loads stevedore plugins. The logic is based on the fact that
the source files are listed in SOURCES.txt which is included in the
egg. The package that provides a plugin is determined by parsing
entry_point and distribution data. Distribution data loads
information from SOURCES.txt.
dh-python is used during build and silently removes the file that
sysinv expects to be present.
Patch the package to keep the file.
Skip CentOS tests because this is a Debian only package.
Debian tests:
PASS: build python package, build non-package python
PASS: SOURCES.txt present in .egg-info in python package
Partial-Bug: https://bugs.launchpad.net/starlingx/+bug/1955648
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Id45b1ba93f9ee88cc01a9cb1fb25527b8a5f1e19
This is a transient work that enables us to progress Debian
integration. This work affects only Debian.
Sysinv loads stevedore plugins. The logic is based on the fact that
the source files are listed in SOURCES.txt which is included in the
egg. The package that provides a plugin is determined by parsing
entry_point and distribution data. Distribution data loads
information from SOURCES.txt.
Setuptools doesn't copy the desired file to egg.
Patch python3-setuptools so it copies the file to egg.
Skip CentOS tests because this is a Debian only package.
Debian tests:
PASS: build python package, build non-package python
PASS: SOURCES.txt present in .egg-info in python package
Partial-Bug: https://bugs.launchpad.net/starlingx/+bug/1955648
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: Ia318aa0ca6825adfa3d23159691486067d96d475