Commit Graph

25 Commits

Author SHA1 Message Date
Hugo Brito e6f666d09f Fix tsconfig/root constraints file in tox.ini
The constraints file used for tsconfig and root was removed.
We need to update the file to use the StarlingX Debian constraints file.

Test Plan:
PASS: Run tox for tsconfig and root dir

Closes-bug: 2055734

Change-Id: I3b2430008a8f6c76a41457b2e4ea01f7b529854c
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
2024-03-04 22:22:31 +00:00
Al Bailey 94034b91f9 Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

skipsdist and usedevelop are incompatible in tox 4.
Setting tox < 4 in .zuul.yaml rather than trying to
figure out why the sysinv component is not properly
installing in tox.

Partial-Bug: #1997255

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: If8e339d20e57e0830ea4ce27c098bacfef2f2ef8
2022-12-26 18:55:39 +00:00
Robert Church 7600300644 Ignore new shellcheck version (0.9.0) warnings
Ignore new warnings:
- SC2320: This $? refers to echo/printf, not a previous command.
- SC2317: Command appears to be unreachable. Check usage (or ignore if
          invoked indirectly).

Change-Id: I3d9e616c7a27b57b0f3f33d516c82bc13ba1faef

Signed-off-by: Robert Church <robert.church@windriver.com>
Change-Id: Idb260b1a75f1e1f0f99c95ad1cc41904539d2ce1
2022-12-17 14:54:10 -06:00
albailey 47b391782f Calling an additional shell lint command from zuul
The '.sh' files are examined by bashate but now the linters
command will also run a shellcheck on them.

The majority of the shellcheck errors that are failing
have been suppressed, and can be updated and fixed by
subsequent submissions.

Shell scripts that do not end in .sh will also be examined
by bashate and shellcheck.

Story: 2008943
Task: 42566
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: Ie5c58ec9391ed76bfe34b3544972306341fafcc4
2021-06-03 17:35:50 -05:00
albailey fc8b109ef0 Fix a random tox linters failure in bashate
There was a file that was missing a newline which would
cause bashate to fail.
However the bashate command was being run as a list of inputs
rather than as individual files, so that error was being ignored
unless that bad file was the last file processed.
This submission fixes the file, and ensures that tox linters
job will fail is any file has an error, regardless of what is
processed afterwards.

Change-Id: I7587b7017b6855aad63dfaeaea5ecca0bcfc21ea
Closes-Bug: 1890287
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-08-04 08:45:26 -05:00
Al Bailey 7890be45d2 Update list of skipped bandit plugins.
Adding a zuul job so that any new bandit failures
will be caught.

Switching bandit to run in python3.

B111 plugin was removed from bandit by:
PyCQA/bandit@d93eed5

Cleanup the list of bandit checks that need to be skipped
in order for this tox job to pass. Those checks can be
removed when the code is updated by future commits.

Story: 2004515
Task: 37744
Change-Id: I1809b1124a5a693d288fb7ea893f30c24487af36
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-12-04 09:20:46 -06:00
Scott Little f7a59a8dd3 Relocated some packages to repo 'platform-armada-app'
List of relocated subdirectories:

kubernetes/platform/stx-platform/stx-platform-helm
kubernetes/helm-charts/ceph-pools-audit
kubernetes/helm-charts/rbd-provisioner

Story: 2006166
Task: 35687
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Change-Id: I9fff4d9f973fea151812f516859b0c9ce190afb8
Signed-off-by: Scott Little <scott.little@windriver.com>
Depends-On: Ibca91cc733e27cd9fb4926b7151cfa8a7976a59d
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-09-05 16:18:14 -04:00
Scott Little 3077d0c656 Relocated some packages to repo 'stx-puppet'
List of relocated subdirectories:

puppet-manifests
puppet-modules-wrs/puppet-dcdbsync
puppet-modules-wrs/puppet-dcmanager
puppet-modules-wrs/puppet-dcorch
puppet-modules-wrs/puppet-fm
puppet-modules-wrs/puppet-mtce
puppet-modules-wrs/puppet-nfv
puppet-modules-wrs/puppet-patching
puppet-modules-wrs/puppet-smapi
puppet-modules-wrs/puppet-sshd
puppet-modules-wrs/puppet-sysinv

Story: 2006166
Task: 35687
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Change-Id: Ibc468b9d97d6dbc7ac09652dcd979c0e68a85672
Signed-off-by: Scott Little <scott.little@windriver.com>
Depends-On: I00f54876e7872cf0d3e4f5e8f986cb7e3b23c86f
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-09-05 16:18:03 -04:00
Scott Little fed963b207 Relocated some packages to repo 'openstack-armada-app'
List of relocated subdirectories:

kubernetes/applications/stx-openstack/stx-openstack-helm
kubernetes/helm-charts/garbd
kubernetes/helm-charts/nginx-ports-control

Story: 2006166
Task: 35687
Depends-On: I665dc7fabbfffc798ad57843eb74dca16e7647a3
Change-Id: I4baa9f3bb8868d56fe79199abc544739d22a466f
Signed-off-by: Scott Little <scott.little@windriver.com>
Depends-On: I520d1d7f890f298d59998cb15613efa2233e329a
2019-09-05 15:34:57 -04:00
Don Penney 27ba5a02a2 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: Ia3a145933e44aca016e84024dca4131dd778ecce
Closes-Bug: 1834216
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-06-25 14:45:54 -04:00
Dean Troyer 97ce4e8961 Followup opendev cleanup and test jobs
Depends-On: https://review.opendev.org/653964
Depends-On: https://review.opendev.org/653961
Depends-On: https://review.opendev.org/654013
Change-Id: I78959af02a0183d993b5a5609adb69e5464cc261
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-20 21:04:15 -05:00
Don Penney a91160daa2 Add puppet-lint support
This update adds the tox and zuul configuration to
run puppet-lint against the puppet manifests. The
initial update ignores all existing errors, which
will be cleaned up later.

Change-Id: I293abc2eac6bc6216cbbf6d939c1ba3474fb9384
Story: 2004515
Task: 28665
Signed-off-by: Don Penney <don.penney@windriver.com>
2018-12-24 13:50:20 -06:00
Al Bailey 634e513d62 Properly enable hacking checks for flake8
hacking and flake8 have compatability issues.
By specifying the version of hacking to be the same
as what other openstack components are using, we
clamp the version of flake8 and allow for reliable
hacking checks.

Change-Id: I8ab1543c030439903d99fffec1a9e3a264f20a80
Story: 2004515
Task: 28571
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2018-12-18 11:28:56 -06:00
Robert Church 30a23a36bc More updates for stx-openstack armada manifests
A few updates:
 - Enable yamllint on the application manifests
 - Fix truthy warnings from the linter
 - Fix indentation issue with the horizon conf section and the
   ceilometer db_sync section which invalidates the yaml formatting.
 - Disable the openstack-telemetry chart group as this will not work due
   to dependencies on panko which hasn't been fully integrated yet.

NOTE: Problems highlighted by yamllint in the manifests may not
necessarily be real issues as these are not actually guaranteed to be
standards-compliant YAML files until after they have been run through
the pre-processor (i.e. armada). The goal of using yamllint here is to
catch gross structural errors but any other errors may need to be
evaluated on a case-by-case basis and excluded from the linter after
validation with armada.

Change-Id: Ic604e61e0d6354d56a687c6876cd8d83cae75afc
Story: 2004005
Task: 27801
Signed-off-by: Robert Church <robert.church@windriver.com>
2018-11-14 13:37:40 -05:00
Robert Church 9a749f1d80 Enable StarlingX helm charts for stx-openstack app
Use an application RPM to build and collect application artifacts.

This follows the same mechanism that is used to build the openstack-helm
and openstack-helm-infra charts. The custom StarlingX charts are built
and the application specific armada manifests are included in the RPM.

This application RPM will be used to produce some of the required build
artifacts (custom helm tarballs + armada manifests) but is not intended
to be installed on the system. These artifacts are extracted later for
proper application packaging with additional required metadata.

Changes also include:
 - Update the README describing the new layouts for applications.
 - Move the nova-api-proxy chart from the common area to be included as
   a chart specific to the stx-openstack app.

Change-Id: I1140760d56035249324519be93bb913e18f394d9
Story: 2004005
Task: 27801
Depends-On: I57c5ec5f3565e9e585f0935af745e495699aa28c
Signed-off-by: Robert Church <robert.church@windriver.com>
2018-11-07 16:14:42 -05:00
Lachlan Plant 3a15f73bfb Create HELM chart for nova-api-proxy
New helm chart created for nova-api-proxy
New module added to helm overrides to configure nova-api-proxy.conf
Turned of yamllint for helm charts, openstack helm charts are yaml
files but not proper yaml syntax

Story: 2004007
Task: 26953

Change-Id: Ic45d6cb801e142ddd7fc7da1638ba0e65cbacc22
Signed-off-by: Lachlan Plant <lachlan.plant@windriver.com>
2018-10-30 13:33:52 -05:00
Dean Troyer 0b667cbf46 Docs need to build without upper-constraaints
We are using openstackdocstheme >= 1.26.0 which is well beyong
what is in stable/pike upper-constraints.txt.

Change-Id: I29a5b69784c791d84ab5e33e8077e010e8fdb9c8
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-10-22 16:14:02 -05:00
98k e814b66b12 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ib5574149623a8dd92dae34d1ec1cdd9999f31609
2018-10-05 10:32:42 +00:00
Abraham Arce 74c22d595c [Doc] OpenStack API Reference Guide
Baseline changes to comply with OpenStack API documentation
from OpenStack Documentation Contributor Guide [0]:

- [1] How to document your OpenStack API service

[0] https://docs.openstack.org/doc-contrib-guide
[1] https://docs.openstack.org/doc-contrib-guide/api-guides.html

Story: 2002712
Task: 26515

Change-Id: I7294ee2fec53bce8381f85854fd9c22abe7c5b74
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-21 16:08:09 -05:00
Abraham Arce 2440f88207 [Doc] Release Notes Management
Baseline changes to comply with Release Notes Management
based in Reno [0]:

* Use build-openstack-releasenotes job for release notes
  (We can't use the OpenStack releasenotes template as it includes
  publish jobs, stx needs its own)
* Add newnote tox environment as convenience for creating new release
  notes, re-using the releasenotes venv.
* Remove the unused 'true' tox environment if it exists.

[0] https://docs.openstack.org/reno/latest/

Story: 2003101
Task: 26514

Change-Id: I7fda1f84d336940dc8851eb053d451981e36bf4d
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-21 16:07:58 -05:00
Abraham Arce 6019a07f29 [Doc] Building docs following Docs Contrib Guide
Baseline changes to comply with OpenStack Documentation
Contributor Guide [0] starting with the following sections:

- Project guide setup
  - [1] sphinx-quickstart
  - [2] doc/source/ layout
- Building documentation
  - [3] tox -e docs
- Using documentation tools
  - [4] openstackdocstheme
- Use build-openstack-docs-pti job template for docs

[0] https://docs.openstack.org/doc-contrib-guide
[1] http://www.sphinx-doc.org/en/master/usage/quickstart.html
[2] https://docs.openstack.org/doc-contrib-guide/project-guides.html
[3] https://docs.openstack.org/doc-contrib-guide/docs-builds.html
[4] https://docs.openstack.org/openstackdocstheme/

Story: 2002708
Task: 26510

Story: 2002813
Task: 26509

Change-Id: I30a92b228540eebd0f991e0c90675bc12d925894
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-21 15:48:33 -05:00
SidneyAn 9b78d42e54 clear yamllint errors under stx-config
Listed below are the errors which were fixed as well as the actions
    [error] trailing spaces (trailing-spaces)
    --> delete spaces
    [error] too many blank lines (3 > 2)
    --> delete blank line
    [error] too few spaces after comma (commas)
    --> add space after comma
    [error] too many spaces inside brackets
    --> delete extra spaces
    [error] wrong indentation: expected XX but found XX (indentation)
    --> delete/add spaces to indente
    [error] line too long (97 > 80 characters) (line-length)
    --> change the line max length to 200
        cut the too long lines to 2 or 3 (by using '|-')
    [error] duplication of key "XXX" in mapping (key-duplicates)
    --> delete the duplication
    [warning] missing starting space in comment (comments)
    --> add blank after '#'
    [warning] truthy value should be true or false (truthy)
    --> lower case "False"/"True" to false/true

  Listed below are test cases done which run one controller and one compute in KVMs
    Test-Install           ----  success
    Test_create_instance   ----  success

  Now linters errors under stx-config is clear. Weee!!

Related commit: https://review.openstack.org/#/c/600473/

Story: 2003360
Task: 24411

Change-Id: Idc3c9304172be52c5d2fb2cbd862527066b72ecf
Signed-off-by: SidneyAn <ran1.an@intel.com>
2018-09-12 21:11:57 +08:00
SidneyAn 47ac546217 Fixing linters errors E010, E011, E020, E041,E043, E003, E001,E042
Listed below are the errors which were fixed as well as the actions
    taken to fix them:
    E010: do not on the same line as for
    --> let do and for in the same line
    E011: then not on the same line as if or elif
    --> let then and if or elif in the same line
    E020: Function declaration not in format ^function name {$
    --> fix the format to suit ^function name {$
    E041: Usage of $[ for arithmetic is deprecated for $((
    --> fix from $[ to $((
    E043: arithmetic compound has inconsistent return semantics
    --> do not use +=, ++, -=, --; use value=value+?  instead.
    E001: check that lines do not end with trailing whitespace
    --> delete trailing whitespace
    E003: ensure all indents are a multiple of 4 spaces
    --> add/delete spaces
    E042: local declaration hides errors
    --> let declaration and assignment in two lines.

    Listed below are test cases done which run one controller
    and one compute in KVMs
    Test-Install      ----  success

Related: https://review.openstack.org/#/c/600663/
         https://review.openstack.org/#/c/601221/

Story: 2003360
Task: 26213

Change-Id: I3ece37db3a326ea58bd344f43beefcbbbd4f0ad4
Signed-off-by: SidneyAn <ran1.an@intel.com>
2018-09-11 21:47:40 +08:00
Bart Wensley 1b8a492ee1 Enable zuul check and gate for unit tests
Enabling zuul check and gate for controllerconfig and
configutilities unit tests.

Story: 2003360
Task: 26216

Change-Id: I6e4807054b793937cef7d549d8bdec058ee26e1c
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2018-09-07 14:48:08 -05:00
Dean Troyer b3d4df1cc5 Add default test framework
Change-Id: I828864d3b686e303a6448b0f9c9136e947aaac0b
2018-06-08 20:06:21 -05:00