Commit Graph

19 Commits

Author SHA1 Message Date
Wei Zhou
536147855a Backup and Restore Support for containerized StarlingX
Define a constant for /opt/platform/armada/<version>

Story: 2004761
Task: 30522

Change-Id: Ie9958b654abbe0477ab7835633e8884de0e91c57
Signed-off-by: Wei Zhou <wei.zhou@windriver.com>
2019-04-16 09:49:38 -04:00
Dean Troyer
c72cf50c08 Update py35 jobs to py37
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>
2019-03-14 17:19:36 -05:00
Al Bailey
b39f383007 Adding unit tests to tsconfig and clean it up a bit
Adding simple unit tests to tsconfig.
- test the behaviour when build.info is not present
- test the behaviour when platform.conf is not present
- test the behaviour when both files are found

This works in py27 and py35.
Coverage for tsconfig is 100%

Added requirements.txt and test-requirements.txt

Added a setup.cfg file so that the wheel can be
built in universal mode (python 2 and 3)

Properly set some of the setup.cfg variables.

These unit tests are wired into zuul.

Story: 2004515
Task: 29783
Change-Id: Ifb4f5403592ccc9223659bb188055ffeccc113b5
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-03-04 19:16:05 +00:00
Zuul
574032c4fb Merge "Configurable Host HTTP/HTTPS Port Binding" 2019-02-07 19:05:54 +00:00
Tao Liu
164380898a Configurable Host HTTP/HTTPS Port Binding
Add http_port to tsconfig and update patch URL

Story: 2004642
Task: 29263
Depends-On: https://review.openstack.org/#/c/634237/

Change-Id: Ic34a66ae90d345b16922fa6031631dfb04f67afa
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-01-31 10:00:22 -06:00
David Sullivan
b1b3093b95 Platform process pinning
Add INITIAL_CONFIG_COMPLETE_FLAG to tsconfig. This is used by the
affine-tasks script in worker-utils.

Change-Id: I07cc212a3535c7f3715fe381747cfda1140bde90
Story: 2002843
Task: 29125
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
2019-01-30 20:45:54 +00:00
Tao Liu
7ac96439f4 Change compute node to worker node personality
Replace patch compute references to to worker.
Replace the compute configuration flags in tsconfig.

Tests Performed:
Non-containerized deployment
AIO-SX: Sanity and Nightly automated test suite
AIO-DX: Sanity and Nightly automated test suite
2+2 System: Sanity and Nightly automated test suite
2+2 System: Horizon Patch Orchestration

Kubernetes deployment:
AIO-SX: Create, delete, reboot and rebuild instances
2+2+2 System: worker nodes are unlock enable and no alarms

patch_build.sh with the following options:
'--worker', '--worker-lowlatency",
'--controller-worker'
'--controller-worker-lowlatency'

Story: 2004022
Task: 27013

Depends-On: https://review.openstack.org/#/c/624452/

Change-Id: If6f7bb6a73db54203941a9657f9152453d270e86
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2018-12-13 13:05:05 -05:00
Sun Austin
53f6f3bcb6 Update config to set values as string, rather than unicode
A prior update config for python2/3 compatibility resulted
in config values being set as unicode rather than strings. This
ended up breaking patching on IPv6 systems, as the lib,
if_nametoindex function used by patching in configuration of its
multicast addresses does not properly handle unicode.
As a result, the patching daemons were unable to communicate with
each other.

This update to tsconfig/config casts the values as str() to
restore it to the previous behaviour.

Closes-Bug:1800195

Change-Id: Ie7ac29728e81d2e5fcb80cde34d723c1480566d0
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-11-02 09:41:29 +08:00
Don Penney
0b5dcff8c6 Add hooks for python wheel generation
This update adds hooks to the spec files for the following packages
to generate wheels for the python modules:
- cgcs-patch
- patch-alarm
- requests-toolbelt
- tsconfig

Change-Id: Ibdae0a338a1af493ac522757b61bbd6df1da941e
Story: 2003907
Task: 27529
Signed-off-by: Don Penney <don.penney@windriver.com>
2018-10-24 17:13:19 +00:00
chenyan
a539b771cf Fix StringIO and ConfigParser import issue for Python2/3 compatible code.
Use io.StringIO to replace StringIO.StringIO, and use unicode as StringIO()
  can only handle unicode strings.

Story: 2003429
Task: 24618

Change-Id: Ie2ced7bba00d11b1698422cbe495abc0fbab7637
Signed-off-by: chenyan <yan.chen@intel.com>
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-09-07 10:36:01 +08:00
Bart Wensley
68b217a460 Update tsconfig SW_VERSION to dummy value when running unit tests
This is being done to allow unit tests to remain unchanged when
the release version changes. Without this change, the
controllerconfig unit tests were verifying hardcoded release
numbers which changed each release.

Story: 2003360
Task: 26214

Change-Id: Ic5411ac4e9c7be9de329fa99dd438aeba1914fbd
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2018-09-06 12:20:02 -05:00
Don Penney
2885d09ed2 Add pylint support
This update adds pylint to tox and zuul for stx-updates and resolves
most warnings and errors, with some disabled for future resolution.

Change-Id: Ic853202e4793bf89d687b50cbd740d364db85189
Story: 2003371
Task: 24832
Signed-off-by: Don Penney <don.penney@windriver.com>
2018-08-24 09:19:44 -05:00
Don Penney
ae0314279f Resolve bashate and pep8 warnings
This update addresses existing bashate and pep8 warnings in
cgcs-patch, patch-alarm, and tsconfig. The bulk of these updates
are style and spacing changes, such as whitespace style conventions.

Story: 2003371
Task: 24433

Change-Id: I44b26d24788907bac0730a952d70ed4bafb87d90
Signed-off-by: Don Penney <don.penney@windriver.com>
2018-08-08 19:36:58 -05:00
Zuul
ade7146599 Merge "Add various config complete file flag to tsconfig" 2018-07-26 15:28:58 +00:00
Eric MacDonald
0f5021d39d Add various config complete file flag to tsconfig
Story: 2002882
Task: 22845

Change-Id: I03beab02aee1f47d5e66570c74a2eadf75e52da0
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-25 20:58:52 +00:00
Wei Zhou
52da240b07 Add paths required for external Ceph to tsconfig
Story: 2002820
Task: 22737

Change-Id: I0c68ec9a775f0de11c6d3dea102dcf874c5d8060
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-25 20:58:33 +00:00
Stefan Dinescu
7d50c2c36a Restore proper iscsi target config file
Add RESTORE_SYSTEM_FLAG in tsconfig

Story: 2002824
Task: 22741

Change-Id: I3d79d89330150632e1b71b76d44bb0226a1661c3
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-20 15:17:01 -04:00
jmckenna
c172f502b1 Spectre/meltdown kernel options controllable by customer
Implements customer configuration of kernel options to control
spectre/meltdown related kernel options.  Default (with "nopti
nospectre_v2" options) can be changed to "" using

system modify -S spectre_meltdown_all

Change-Id: I6e86cfca126a1864ab27989e7027ae990716a29d
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-03 11:01:12 -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