Commit Graph

16 Commits

Author SHA1 Message Date
Jim Gauld 443681e209 Support dockerd in-service patching with EXAMPLE_DOCKER script
This adds the EXAMPLE_DOCKER in-service patching script.
Packaging currently for CentOS, but script itself is generic.

The docker.service has required patching, so this supports future
patching.

Closes-Bug: 1996916
Depends-On: https://review.opendev.org/c/starlingx/utilities/+/865731

Test Plan:
PASS: CentOS: Apply/remove designer in-service patch including
      EXAMPLE_DOCKER and verify docker.service restarts.

Signed-off-by: Jim Gauld <james.gauld@windriver.com>
Change-Id: I2c630eac88da030af69240a2badd11f06cbd5475
2022-11-27 18:51:12 +00:00
Jim Gauld 56e4a7de45 Update kubelet patch restarting script to check running version
This adds a version check to kubelet patch restarting script.
This will only restart kubelet if the running kubelet is v1.21.8.

This script requires modification depending on specific kubelet
versions that are actually being patched.

TESTING:
- PASS: Verified restart of kubelet and isolcpus_plugin services
        with designer patch install and remove for only v1.21.8

Story: 2008760
Task: 44541

Signed-off-by: Jim Gauld <james.gauld@windriver.com>
Change-Id: I335f2a2e088ead55d32749c07e217a96d53c09a3
2022-03-02 17:32:15 -05:00
Jim Gauld 426486ce05 Patch script for restarting kubelet and isolcpus_plugin services
This provides an example patch script for restarting kubelet and
isolcpus_plugin services.

TESTING:
- PASS: Verified restart of kubelet and isolcpus_plugin services
        with designer patch install and remove.

Story: 2008760
Task: 44541

Signed-off-by: Jim Gauld <james.gauld@windriver.com>
Change-Id: Idf624051b7238f39c4238ad72a7d7ffe14395b8b
2022-02-28 17:06:34 -05:00
Chris Friesen 6a019e60c3 add dcmanager-audit-worker to sample restart script
We've added a new distributed-cloud process, so update the sample script.

Story: 2007267
Task: 42000
Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
Change-Id: I16522744c9526e134577bda80cf91a8308eee889
2021-03-04 19:01:05 -05:00
Don Penney adaaba0c21 Add auto-version for remaining stx/update packages
Update remaining StarlingX packages with hardcoded TIS_PATCH_VER to
use PKG_GITREVCOUNT where possible, with offsets as needed to ensure
the version is incremented above the hardcoded version.

Change-Id: I877a6c0802a707863a3b6c7d430146431e10a3ad
Story: 2008455
Task: 41459
Signed-off-by: Don Penney <don.penney@windriver.com>
2020-12-17 13:17:58 -05:00
albailey 73c948f9e3 Add an example restart script for distributed cloud
This is the type of script that can be invoked when
applying designer patches to test distributed cloud changes.

Change-Id: I3c743bf550e28f54f5dd4b1100ef561573e88e1a
Story: 2008137
Task: 41178
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-11-02 16:25:57 -06:00
Bart Wensley f518c20323 Update kubernetes patch creation script
Update the kubernetes patch script to include
apply-active-release-only metadata. This will ensure the patches
that contain the kubernetes RPMs cannot be applied to an imported
platform load, which could upversion kubernetes (during an
upgrade) to a version that is not supported by the running load.

Change-Id: I2987f743f7708abc26ab2f67173a7e1cb9b20a4f
Story: 2008055
Task: 40735
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2020-08-24 14:11:02 -05:00
Bart Wensley 6d1cd07e39 Update scripts that build k8s upgrade patches - part 2
Updating scripts used to build k8s upgrade patches to handle
current kubernetes version (1.18.1). My previous commit
missed changes to the preapply/preremove scripts.

Change-Id: I70b2796f625ac79df1de08e4e802d70e3e33d36a
Story: 2006781
Task: 38479
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2020-04-21 12:41:38 -05:00
Bart Wensley df3aea5756 Update scripts that build k8s upgrade patches
Updating scripts used to build k8s upgrade patches to include
additional required package (playbookconfig) and to handle
current kubernetes version (1.18.1).

Change-Id: I768466098842fa8d489bf91318ef2c29963ef446
Story: 2006781
Task: 38479
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2020-04-16 07:11:31 -05:00
albailey e3be9a2776 Update flake8 to verify patch scripts
To prevent the warning about a newer version of pip
available, the following env setting was added

  PIP_DISABLE_PIP_VERSION_CHECK=1

To prevent sub-calls to tox from using the default pip
cache location, rather than whatever a user may override
using xdg env variables, the following has been added:

  passenv =
      XDG_CACHE_HOME

The python patch scripts are now validated by flake8.
All flake8 tox targets are triggered from a single zuul job.

Story: 2004515
Task: 38581
Change-Id: I105512edbd3da15480355e30c0dd14933584a47b
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-01-31 09:40:27 -06:00
Bart Wensley defa24cbaa Create sample scripts for generating k8s upgrade patches
Provide a make_kube_patch.sh script that will build patches
that can be used to upgrade kubernetes. Also includes sample
preapply/preremove scripts that will be included in the
patches.

Change-Id: Ifab05e9d407d9a7c3d8c519c90add1b3857ecdf2
Story: 2006781
Task: 38479
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2020-01-29 10:23:47 -06:00
Al Bailey 16b393f3ab Cleanup openstack components from patch scripts and tests
There were several example patch templates that demonstrated
how to patch some of the openstack processes.
Most of those openstack processes have been removed from bare
metal, so these scripts have been updated or removed.

Story: 2004764
Task: 30343
Change-Id: Ie6339d9f2dbf12e7d1a2b689676cca866b844a83
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-04-04 09:39:18 -05:00
Eric MacDonald eca8e103b6 Remove Resource Monitor ; aka rmon, from the load
All rmon resource monitoring has been moved to collectd.

This update removes rmon from mtce and the load.

Story: 2002823
Task: 30045

Test Plan:
PASS: Build and install a standard system.
PASS: Inspect mtce rpm list
PASS: Inspect logs
PASS: Check pmon.d

Depends-On: https://review.openstack.org/#/c/643739
Change-Id: I1cee4a534171b3c5fa93f3cbc04beaeaf744d161
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-03-17 11:45:33 -04:00
Eric MacDonald f7f8cc042f Mtce: Add new Link Monitor daemon to Mtce example patch rpm
This update adds the new Link Monitor 'lmond' process to the
list of processes in the EXAMPLE_MTCE patching rpm so that
when maintenance is patched lmond will be restarted like all
the other mtce processes.

Change-Id: I717aaab99ad058a5b77a555768201d7cf471b579
Story: 2002823
Task: 28635
Depends-On: https://review.openstack.org/#/c/633264
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-01-28 12:29:16 -05:00
Eric MacDonald fdc2cc4ade Collectd+InfluxDb-RMON Replacement(ALL METRICS) P1
This update introduces a non-reboot patch example script for a service
whose patch modified its service file thereby requiring a system
daemon-reload as a precursor to the service process restart.
This new RPM was introduced in support of no-reboot patching of the
'influxdb' and 'collectd' processes ; so those are the default processes
used in this script.
Note that there is nothing that prevents a designer from using this as a
more general example script for any service that requires the same
patching operations after replacing the default process names with their
own.

Change-Id: I9f261509f16490f986722b47b0f92db4ef735609
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-03 11:00:35 -04:00
Dean Troyer 527e098821 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:37:12 -07:00