27 Commits

Author SHA1 Message Date
Scott Little
b0b7700bd9 Set PLATFORM_RELEASE=19.09
Depends-On: I96392f293883d5583e51abfca8cac8e4c3d187a1
Depends-On: Ibe6121c430eccf84698be67d587ebc7ac7c40755
Change-Id: I9325f57a85bcea7274dfb7ab41898b5c48d294a3
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-09-04 16:47:25 -04:00
Kristine Bujold
adce620655 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
Depends-On: I4c55186f939675cc2c3dc871ad03699d95c6091b
Change-Id: I96392f293883d5583e51abfca8cac8e4c3d187a1
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2019-09-04 16:46:53 -04:00
Eric Barrett
55a26be559 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

Depends-On: I79eed868c5b42e2545ccf0c11dbbbea4336b9b19
Change-Id: I4c55186f939675cc2c3dc871ad03699d95c6091b
Story: 2004515
Task: 29303
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
2019-09-04 16:46:24 -04:00
Don Penney
ee342d3a7b 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.

Depends-On: I2c59e5caefd68638c9e6063bf08d30577eb75e9a
Change-Id: I79eed868c5b42e2545ccf0c11dbbbea4336b9b19
Story: 2005939
Task: 34783
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-09-04 16:46:04 -04:00
Don Penney
d535b38e0f 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.

Depends-On: I39336822c32463855e58ed1ef4b7214494a3eaa9
Change-Id: I2c59e5caefd68638c9e6063bf08d30577eb75e9a
Partial-Bug: 1834216
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-09-04 16:45:45 -04:00
Mario Alfredo Carrillo Arevalo
cfe091f81a Add files for tsconfig deb packaging
Add control and rules files to generate tsconfig deb following
StarlingX/MultiOS/Debian Wiki.

Story: 2004792
Task: 30177

Depends-On: Ib6fdf7aaad5ed91be091b7f1f63365895a8aea7d
Change-Id: I39336822c32463855e58ed1ef4b7214494a3eaa9
Signed-off-by: Mario Alfredo Carrillo Arevalo <mario.alfredo.c.arevalo@intel.com>
2019-09-04 16:45:17 -04:00
Saul Wold
925615fbe3 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.

Depends-On: I58dc94eaac98a87509f57fdd2126188a6917569c
Change-Id: Ib6fdf7aaad5ed91be091b7f1f63365895a8aea7d
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2019-09-04 16:44:55 -04:00
Wei Zhou
e06a8260c1 Backup and Restore Support for containerized StarlingX
Define a constant for /opt/platform/helm/<version>

Story: 2004761
Task: 30522
Depends-On: I2641c0961f5dff114cb612695b76ac72a80c7554
Change-Id: I58dc94eaac98a87509f57fdd2126188a6917569c
signed-off-by: Wei Zhou <wei.zhou@windriver.com>
2019-09-04 16:44:37 -04:00
Teresa Ho
3531ceb29b 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/
Depends-On: If679cd0742cdf53b27db5f9c94b4c705c46b07ef
Change-Id: I2641c0961f5dff114cb612695b76ac72a80c7554
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
2019-09-04 16:44:18 -04:00
Dean Troyer
eadd2f6c9e Followup opendev cleanup and test jobs
Depends-on: https://review.opendev.org/654006
Depends-On: Ie9958b654abbe0477ab7835633e8884de0e91c57
Change-Id: If679cd0742cdf53b27db5f9c94b4c705c46b07ef
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-09-04 16:43:53 -04:00
Wei Zhou
70c2953a6f Backup and Restore Support for containerized StarlingX
Define a constant for /opt/platform/armada/<version>

Story: 2004761
Task: 30522
Depends-On: I99b6fdb4fe319e51fc5bf0a2d33e67c57bfec01f
Change-Id: Ie9958b654abbe0477ab7835633e8884de0e91c57
Signed-off-by: Wei Zhou <wei.zhou@windriver.com>
2019-09-04 16:43:30 -04:00
Dean Troyer
bf46dfed04 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.

Depends-On: Ifb4f5403592ccc9223659bb188055ffeccc113b5
Change-Id: I99b6fdb4fe319e51fc5bf0a2d33e67c57bfec01f
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-09-04 16:43:11 -04:00
Al Bailey
c79b3137c5 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
Depends-On: Ic34a66ae90d345b16922fa6031631dfb04f67afa
Change-Id: Ifb4f5403592ccc9223659bb188055ffeccc113b5
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-09-04 16:42:49 -04:00
Tao Liu
5b58b67073 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/
Depends-On: I07cc212a3535c7f3715fe381747cfda1140bde90
Change-Id: Ic34a66ae90d345b16922fa6031631dfb04f67afa
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-09-04 16:42:29 -04:00
David Sullivan
0febd26808 Platform process pinning
Add INITIAL_CONFIG_COMPLETE_FLAG to tsconfig. This is used by the
affine-tasks script in worker-utils.

Depends-On: If6f7bb6a73db54203941a9657f9152453d270e86
Change-Id: I07cc212a3535c7f3715fe381747cfda1140bde90
Story: 2002843
Task: 29125
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
2019-09-04 16:41:59 -04:00
Tao Liu
6f09c07429 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/
Depends-On: Ie7ac29728e81d2e5fcb80cde34d723c1480566d0
Change-Id: If6f7bb6a73db54203941a9657f9152453d270e86
Signed-off-by: Tao Liu <tao.liu@windriver.com>
2019-09-04 16:41:27 -04:00
Sun Austin
2a80bd3a31 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

Depends-On: Ibdae0a338a1af493ac522757b61bbd6df1da941e
Change-Id: Ie7ac29728e81d2e5fcb80cde34d723c1480566d0
Signed-off-by: Sun Austin <austin.sun@intel.com>
2019-09-04 16:40:51 -04:00
Don Penney
100631e4b2 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

Depends-On: Ie2ced7bba00d11b1698422cbe495abc0fbab7637
Change-Id: Ibdae0a338a1af493ac522757b61bbd6df1da941e
Story: 2003907
Task: 27529
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-09-04 16:38:41 -04:00
chenyan
d12717e718 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

Depends-On: Ic5411ac4e9c7be9de329fa99dd438aeba1914fbd
Change-Id: Ie2ced7bba00d11b1698422cbe495abc0fbab7637
Signed-off-by: chenyan <yan.chen@intel.com>
Signed-off-by: Sun Austin <austin.sun@intel.com>
2019-09-04 16:38:15 -04:00
Bart Wensley
e388fce523 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
Depends-On: Ic853202e4793bf89d687b50cbd740d364db85189
Change-Id: Ic5411ac4e9c7be9de329fa99dd438aeba1914fbd
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2019-09-04 16:37:46 -04:00
Don Penney
e862aae48a 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.

Depends-On: I44b26d24788907bac0730a952d70ed4bafb87d90
Change-Id: Ic853202e4793bf89d687b50cbd740d364db85189
Story: 2003371
Task: 24832
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-09-04 16:37:21 -04:00
Don Penney
38a86ab5e4 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
Depends-On: I03beab02aee1f47d5e66570c74a2eadf75e52da0
Change-Id: I44b26d24788907bac0730a952d70ed4bafb87d90
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-09-04 16:34:56 -04:00
Eric MacDonald
6fe8cbfe9e Add various config complete file flag to tsconfig
Story: 2002882
Task: 22845

Depends-On: I0c68ec9a775f0de11c6d3dea102dcf874c5d8060
Change-Id: I03beab02aee1f47d5e66570c74a2eadf75e52da0
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2019-09-04 16:34:05 -04:00
Wei Zhou
35a8568c51 Add paths required for external Ceph to tsconfig
Story: 2002820
Task: 22737

Depends-On: I3d79d89330150632e1b71b76d44bb0226a1661c3
Change-Id: I0c68ec9a775f0de11c6d3dea102dcf874c5d8060
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2019-09-04 16:33:40 -04:00
Stefan Dinescu
11c03e2ea0 Restore proper iscsi target config file
Add RESTORE_SYSTEM_FLAG in tsconfig

Story: 2002824
Task: 22741

Depends-On: I6e86cfca126a1864ab27989e7027ae990716a29d
Change-Id: I3d79d89330150632e1b71b76d44bb0226a1661c3
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2019-09-04 16:33:21 -04:00
jmckenna
33f20f664b 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

Depends-On: I792791f64de0ddc672a617ce17c9e7faaed4805c
Change-Id: I6e86cfca126a1864ab27989e7027ae990716a29d
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2019-09-04 16:32:35 -04:00
Dean Troyer
768849b872 StarlingX open source release updates
Change-Id: I792791f64de0ddc672a617ce17c9e7faaed4805c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-09-04 16:32:20 -04:00