Commit Graph

33 Commits

Author SHA1 Message Date
Scott Little b0559bc151 Subdirectories 'tsconfig ' relocated to repo 'stx-config'
Story: 2006166
Task: 35687
Depends-On: I6c62895f8dda5b8dc4ff56680c73c49f3f3d7935
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Change-Id: I70b6d52a13836e16139a0ca3f42b9e91e06e43b6
Signed-off-by: Scott Little <scott.little@windriver.com>
Depends-On: I5618547e7e74b76d174f10897b1c747931738cd6
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-09-05 13:04:59 -04:00
Scott Little 50c22ee7a4 Set PLATFORM_RELEASE=19.09
Depends-On: Ibe6121c430eccf84698be67d587ebc7ac7c40755
Change-Id: I9325f57a85bcea7274dfb7ab41898b5c48d294a3
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-08-16 14:33:14 -04:00
Zuul 3baa5a696e Merge "Collapse the glance filesystem into platform" 2019-08-09 18:44:20 +00:00
Kristine Bujold 9c9be7ff38 Collapse the glance filesystem into platform
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>
2019-08-02 13:52:08 -04:00
Eric Barrett 0805514d60 Enable Unused Variable
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>
2019-07-19 10:28:00 -04:00
Don Penney a5e51f98c8 Add test framework for patch alarm manager
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>
2019-06-28 17:03:00 -04:00
Don Penney cd6927163f Update tox.ini files to use stein constraints
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>
2019-06-25 13:52:55 -04:00
Mario Alfredo Carrillo Arevalo 4d41130fe2 Add files for tsconfig deb packaging
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>
2019-06-11 15:24:03 +00:00
Saul Wold 9ab5317dca tsconfig: Move scripts into tsconfig
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>
2019-06-04 10:15:06 -07:00
Zuul 149a688a8a Merge "Backup and Restore Support for containerized StarlingX" 2019-04-24 15:04:59 +00:00
Zuul 0d4c98bd89 Merge "Update tsconfig for cluster-host interface" 2019-04-24 14:22:56 +00:00
Wei Zhou a0791d16ef Backup and Restore Support for containerized StarlingX
Define a constant for /opt/platform/helm/<version>

Story: 2004761
Task: 30522

Change-Id: I58dc94eaac98a87509f57fdd2126188a6917569c
signed-off-by: Wei Zhou <wei.zhou@windriver.com>
2019-04-23 11:35:25 +00:00
Dean Troyer 0a0475b815 Followup opendev cleanup and test jobs
Depends-on: https://review.opendev.org/654006
Change-Id: If679cd0742cdf53b27db5f9c94b4c705c46b07ef
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-20 09:24:53 -05:00
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
Teresa Ho 445686f1cf Update tsconfig for cluster-host interface
Updated tsconfig to read the cluster_host_interface instead of
infrastructure_interface parameter in /etc/platform/platform.conf.

Story: 2004273
Task: 30517
Depends-On: https://review.openstack.org/#/c/652713/
Depends-On: https://review.openstack.org/#/c/652773/

Change-Id: I2641c0961f5dff114cb612695b76ac72a80c7554
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
2019-04-15 21:28:41 +00: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