Use templates instead of individual jobs so that these
can be changed in one place.
Depends-On: https://review.opendev.org/677606
Change-Id: Ia769757efc3b2c9c09558e6696adfe9556bfba3c
Depends-On: Ibe6121c430eccf84698be67d587ebc7ac7c40755
Change-Id: I9325f57a85bcea7274dfb7ab41898b5c48d294a3
Signed-off-by: Scott Little <scott.little@windriver.com>
The filesystem /opt/cgcs is removed and its content moved under
/opt/platform.
Tested in AIO-SX, AIO-DX and Standard hardware labs.
Depends-On: https://review.opendev.org/674360
Partial-Bug: 1830142
Change-Id: I96392f293883d5583e51abfca8cac8e4c3d187a1
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
Flake8 currently ignores:
F841: local variable is assigned to but never used
Pylint currently ignores:
W0612: Unused variable warning
Enable them for more thorough testing of code
Change-Id: I4c55186f939675cc2c3dc871ad03699d95c6091b
Story: 2004515
Task: 29303
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
The Smart Package Manager (python-smartpm) is used by cgcs-patch
at runtime, but is not included in the package dependencies.
This update adds it to the spec as a Requires.
Change-Id: I3e9569e5845b3f5c6259887d423b2b9ec912e15e
Closes-Bug: 1836214
Signed-off-by: Don Penney <don.penney@windriver.com>
Running tox is giving a warning because the tox.ini is
using "find", but the find command is not whitelisted.
Change-Id: I38ece01f6135ebb38a94b9d835e2708a02b35805
Closes-bug: #1835386
Signed-off-by: junboli <junbo85.li@gmail.com>
The storyboard and gerrit doc link are error, and git library
redirect to the correct one, this change is to correct all them.
Change-Id: I282ff4b8a3649490a22db5eca972d40e2cc29452
Partial-Bug: #1835207
Signed-off-by: junboli <junbo85.li@gmail.com>
This update sets up the initial testing framework for
the patch-alarm module, with a basic test case.
Additionally, this restructures the tox.ini files. Now
that each python module has its own tox.ini and tests,
the top-level tox.ini can recursively use those. As well,
the Zuul setup can now split the jobs for each module.
Change-Id: I79eed868c5b42e2545ccf0c11dbbbea4336b9b19
Story: 2005939
Task: 34783
Signed-off-by: Don Penney <don.penney@windriver.com>
This update adds cgcs-patch test cases to cover all utility
functions in utils.py.
Adding the test cases showed a python3 issue with the if_nametoindex
utility function. In python3, this functionality is provided by the
socket module. In python2, however, the function must be loaded through
the libc library. In order to support the python3 test case execution,
and prepare for moving to python3, the wrapper wrapper function will
use the socket module function for python3 and the libc function
otherwise.
Change-Id: I42d4966154bf22607246060acf31c4792b0e2bbe
Story: 2005939
Task: 34776
Signed-off-by: Don Penney <don.penney@windriver.com>
This update sets up the framework for unit testing in
the cgcs-patch module, with some basic test cases.
Change-Id: I209076449353a23bb57e0eee397e614b7e89ad88
Story: 2005939
Task: 34756
Signed-off-by: Don Penney <don.penney@windriver.com>
This updates the upper-constraints.txt used by tox for
installing python modules to reference the stable/stein
constraints.
Change-Id: I2c59e5caefd68638c9e6063bf08d30577eb75e9a
Partial-Bug: 1834216
Signed-off-by: Don Penney <don.penney@windriver.com>
These LSB headers are non-functional but still required by OBS
and rpmlint. These sysvinit scripts are actually executed and
controled via the systemd unit files.
Change-Id: I0a6303cdf46120cbdeee65e2c3e556cd458146e0
Signed-off-by: Saul Wold <sgw@linux.intel.com>
the #!/usr/bin/env is not recommended for ensuring we get the
correct auto-dependency generation.
Change-Id: I87fdf44d38496ba2ff23e2f2f5836943e790f0c2
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Add control and rules files to generate tsconfig deb following
StarlingX/MultiOS/Debian Wiki.
Story: 2004792
Task: 30177
Change-Id: I39336822c32463855e58ed1ef4b7214494a3eaa9
Signed-off-by: Mario Alfredo Carrillo Arevalo <mario.alfredo.c.arevalo@intel.com>
The cgcs-patch module uses the python-crypto module for
patch signing support, but is missing an explicit dependency
against the module in the package.
Change-Id: Ic37d4bcd8d4988510a457ceb50956e0e0fa68351
Story: 2004764
Task: 33629
Signed-off-by: Don Penney <don.penney@windriver.com>
Flake8 currently ignores the following errors:
H237: module is removed in python3
H238: old style class declaration
Enable them for python2/3 compatibility
Change-Id: I4dd66c8ab388119b4abab83fda48a89e108f7821
Story: 2004515
Task: 29303
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
Currently the build system automagically copies the scripts directory
into tsconfig as part of constructing the source rpm. In order to
build with OBS (for multi-os), all the files need to be in the correct
directory level, in this case update/tsconfig/tsconfig.
Correct where devstack finds the tsconfig script
Tested with current build-pkgs from clean and verified contents of
both tsconfig RPM and SRPM where correct.
Change-Id: Ib6fdf7aaad5ed91be091b7f1f63365895a8aea7d
Signed-off-by: Saul Wold <sgw@linux.intel.com>
IPv6 does not support multicast messaging on the loopback interface.
Therefore to support patch agent to controller messaging when the
management network is associated with the loopback interface it
must operate using unicast messaging. This is sufficient since it
does not need to communicate with multiple process instances when
operating in this local mode.
Change-Id: I95efd06be9717a76ccbd543c1fd16408fd89dbeb
Closes-Bug: #1830779
Signed-off-by: Matt Peters <matt.peters@windriver.com>
This function does a number of things, specifically it handles the
DevStack USE_PYTHON3 switch transparently so we can run both major
Python versions.
The setup.cfg file in both cgcs_patch and tsconfig are really only
used by setup_dev_lib() right now, making the switch to use pbr
is beyond what I want to do here.
Change-Id: If91248303cba9e6056ac2bc4b7e8771cf193de01
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
The start function of the patch-alarm-manager init script
checks for a valid pidfile to see if the process is
already running. Unfortunately, the code has a couple
of typos that cause the check to fail if the "start"
is called when the process is already running.
This commit fixes the typos.
Change-Id: If46f03a5d042f949db9359d6ddd7f69790ccaf4f
Closes-Bug: 1827326
Signed-off-by: Don Penney <don.penney@windriver.com>
Update the centos_stable_wheels.inc to remove the patch-alarm
and requests-toolbar wheels, as they are not required for the
image build.
Depends-On: I6852620b05f58509c93877d9d8c5754e9aa64c0e
Change-Id: I7f5c84aea7b32cb4fcebfa60297e48a18b8f87ef
Story: 2005248
Task: 30372
Signed-off-by: Don Penney <don.penney@windriver.com>
This update introduces support for application dependencies on
specified software patches. This allows sysinv to query patch states
and to report application dependencies, to block removal of required
patches.
APIs introduced:
is_applied: Provide a list of patch IDs. Returns True if ALL patches
are in Applied (fully applied/installed) state, False if any are
not.
report_app_dependencies: Provide an app name-version string and list
of patches.
* Apps are dropped by reporting app name with no patch list / empty
list.
* Triggers sync with patch-controller neighbour (ie. standby
controller)
query_app_dependencies: Query for dict of app => patch list, for all
reported apps.
On patch removal, the patch-controller checks to see if the patch
being removed is required by any applications. Reject the removal,
if so.
* Provide backdoor --skipappcheck option to skip this dependency
check.
Change-Id: I6b0dcf3c88312677a95c7eb860cb3b30779554d0
Story: 2005248
Task: 30318
Signed-off-by: Don Penney <don.penney@windriver.com>
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>
This update removes pike and master wheel and/or image files,
as these have been replaced with stable/dev.
Change-Id: I3423e2f6a1d247fb1ebe3226c11ac6c0ed1a066f
Story: 2005248
Task: 30327
Signed-off-by: Don Penney <don.penney@windriver.com>
This update supports the migration to stable/dev build streams by
setting up the stable wheels.inc file.
Depends-On: Ib5dc9a7c1d8c37368d073e28d83eeb883766ee3f
Change-Id: I76f107bd58a6eee716aca69a1c03716b4f491df5
Story: 2005248
Task: 30150
Signed-off-by: Don Penney <don.penney@windriver.com>
Rename stx-devstack-update to flock-devstack-update
and inherit from flock-devstack-base-min
Story: 2005285
Depends-on: https://review.openstack.org/#/c/645808/
Change-Id: I2c4bd243636dd3a469de3bbda7cd42aff333798a
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
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>
The upstream OpenStack default node type changed yesterday
from Ubuntu Xenial to Bionic. We have a number of jobs pegged
directly to py35 which is no longer available in Bionic.
We can either pin the py35 jobs to Xenial nodes or update them
to py36 or py37. OpenStack is supporting both of those for the
Stein release, since StarlingX does not have any position on
Python 3 versions (yet!) I am suggesting we move straight to py37
and in the case of issues now make these jobs non-voting until
any incompatibilities are resolved.
Change-Id: I99b6fdb4fe319e51fc5bf0a2d33e67c57bfec01f
Signed-off-by: Dean Troyer <dtroyer@gmail.com>