Commit Graph

23 Commits

Author SHA1 Message Date
Davlet Panech e601f7ce3e Fix github mirroring for this repo
Updating the rsa ssh host key based on:
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

Note: In the future, StarlingX should have a zuul job and
secret setup for all repos so we do not need to do this
for every repo.

Needed to rename the secret, because zuul fails if like-named
secrets have diffent values in different branches of the same
repo.

Partial-Bug: #2015246
Change-Id: Iedfe334611d14e7e6b5a3b2108501d0b2fdf1e13
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2023-04-28 12:38:51 -04:00
Al Bailey 88b1d3b5c6 Update zuul jobs from python2 to python3
- removed the old and unused devstack job.
 - needed to update pylint to python3
 - needed to enable bindep to install the packages
required for installing mysqlclient

No test plan is provided, because the purpose of this
change is to determine if zuul is broken for this repo,
and then fix it.

Story: 2010531
Task: 47313

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I6655792d692644f2c6320b0ef1d66283e17d7bb3
2023-02-07 20:20:57 +00:00
Davi Frossard bd9e560d4b Remove sm-watchdog service since NFS is now stable
sm-watchdog was introduced as a workaround because of NFS hung. Another
clean fix is already provided, but the sm-watchdog was not removed.

Test plan:
[centos] build, install and unlock.
[debian] build, install and unlock.

Story: 2010087
Task: 46007

Signed-off-by: Davi Frossard <dbarrosf@windriver.com>
Change-Id: I29fffff4e8982dc504f104f49c6586f7c74527fb
2022-08-19 19:57:43 +00:00
albailey 57225bb34a Use newer flake8 to run on ubuntu-focal Zuul machines
flake8 2.5.5  fails on ubuntu-focal zuul machines running python3.8
with the following error:
AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'

The update removes the version constraint to use newer flake8.

The linters can be run in python3.
Pylint cannot be run in python3 because mysql-python is not
compatable, so a new zuul job for pylint is now added.

The flake8 errors that the newer version raises are all suppressed,
and some of them should be addressed by someone with familiarity in
this repo.

Change-Id: Ida6447728d4175173c02130cb04a6013e4f966f9
Partial-Bug: 1895054
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-09-16 13:01:03 -05:00
Sharath Kumar K 3b68098be4 Tox and Zuul job for the python code scan in starlingx/ha
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/ha folder.
Expecting this merge will enable zuul job for CI/CD of bandit scan.

Configuration files:
1. tox.ini for adding bandit environment and command.
2. test-requirements.txt for adding bandit version.
3. .zuul.yaml file for adding bandit job and configuring under
   check job to run code scan every time before code commit.

Test:
Run tox -e bandit command inside the fault folder to validate the
bandit scan and result.

Please note:
Changes will be implemented in batches and this is Batch3 change.

Story: 2007541
Task: 39621
Depends-On: https://review.opendev.org/#/c/721294/

Change-Id: I01f81d7c52c12432965106f9603e4db600381971
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-05 06:21:44 +00:00
Bin Qian a76ed3bebd Adding job to upload commits to GitHub
Add job to publish ha repo to GitHub

Story: 2007252
Task: 38611
Change-Id: I2553568011a156a191fe7edade25b6e166dc55ad
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2020-02-03 16:14:53 -05:00
Al Bailey 6260cb0b74 Turn off devstack as a zuul job
devstack is failing, most likely because StarlingX
uses postgres, and postgres was dropped in devstack by:
cf1c847191

I am not removing the devstack job declaration, or the devstack files
because in the future StarlingX could convert from postgres to
another DB backend, at which point we might want to revisit
using devstack.

Change-Id: I3adec4669d9181d71421f43905f86bf2e7e211c2
Partial-Bug: 1848557
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-10-17 16:08:14 -05:00
Andreas Jaeger 13e42caf7b Use Zuul templates
Use templates instead of individual jobs so that these
can be changed in one place.

Depends-On: https://review.opendev.org/677606
Change-Id: Ic70832ed4e4fba3343381f7ead611085c0849994
2019-08-21 12:54:55 +00:00
Al Bailey d7dc7b1eaa Fixing failing devstack zuul job
The glance devstack plugin is not working for us,
and is not needed for our devstack to work, so updating
the zuul job to use the "min" devstack version that is used
by other repos such as 'fault' and avoid setting up the
glance devstack plugin altogether.

Change-Id: Id16671961e10962530d2eaff28387b4b206e0a3b
Partial-Bug: 1840292
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-08-15 13:45:26 -05:00
Dean Troyer 08bff2798f 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
Depends-On: https://review.opendev.org/654024
Depends-On: https://review.opendev.org/654255
Depends-On: https://review.opendev.org/654256
Change-Id: Ie110350e44b0dd333f3b3969773e4ef21674381c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-21 14:31:33 -05:00
OpenDev Sysadmins d6620b86b2 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:52:24 +00:00
Shuicheng Lin 36e5052872 [DevStack] enable sm services
4 services are enabled: sm-daemon, sm-api, sm-watchdog, sm-eru.
The same sm services running in deploy environment.

Test:
pass stack.sh execution with sm services enabled

Story: 2003160
Task: 29239

Change-Id: Ibbe1757e37998ff1c620f66dd97fabf24c887c1f
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
2019-04-10 23:54:01 +08:00
Dean Troyer 0c8ca24e5b Add DevStack support
This builds, installs and cleans some of the SM components, plus adds
a DevStack job and a build.sh script to build components outside DevStack.

It uses the 'new' DevStack base job flock-devstack-base directly.

Also some interesting work-arounds were required to build sm-common and sm-db,
need to sort out the differences between CentOS 7.5 and Ubuntu Xenial.

Fixed a couple of occurrances of this error:
  sm_db_service_domain_neighbors.c:311:25: error: ISO C++ forbids
  comparison between pointer and integer [-Werror=permissive]
     if( '\0' != record->orchestration )
                        ^~~~~~~~~~~~~

02Apr2019 - Add new skips for flake8 after upstream release
03Apr2019 - Merge with https://review.openstack.org/#/c/647490/2, at this point
            there is not much reason to do this in two steps.

Change-Id: I33c44a764295e8e0a7ae4771ea02e950f06bf2a2
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-04 15:43:20 -05:00
Dean Troyer 3f59251726 Add api-ref and relnotes publish jobs
* Add pointers in the main doc to api-ref and releasenotes pages
* Add publish-stx-api-ref and publish-stx-releasenotes jobs
* Add search at bottom of api-ref and relnotes pages to trigger the jobs

Change-Id: I0791ab622ed187d8bdf93e5b848fa70a0d3e6c2c
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-10-11 08:16:45 -05:00
Dean Troyer b8a91c5ed6 Add publish job for docs
Also set the theme to alabaster until starlingxdocs is ready

Change-Id: Ie4e031c536836c558c26c8c87b09f3e04b207f83
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-10-06 14:14:27 -05:00
Al Bailey a6ab2ba896 Turn on pep8 voting
The purpose of this commit is to:
 - make this pep8 zuul job voting
 - convert from pep8 to flake8
 - add the bugbear plugin
 - suppress any tests that are currently failing
 - prevent fixed errors from being re-introduced

Further tasks will be required to un-suppress the
failing tests and make them pass

Story: 2002803
Task: 26833
Change-Id: I0421ebb3ce486c066f968052c38b733b3a145114
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2018-10-01 13:49:04 -05:00
Dean Troyer d9da97d9ef Add api-ref jobs
Change-Id: Ic73abaaac6e72a1dcc749be029844c2247551894
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-09-27 21:36:36 -05:00
Abraham Arce 6a4769ec68 [Doc] Release Notes Management
Baseline changes to comply with Release Notes Management
based in Reno [0] a release notes manager.

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

Story: 2003101
Task: 25748

Change-Id: I7d7fdfe38d6a22c0bb8195e9bc82c2df759d06c7
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-26 11:33:30 -05:00
Abraham Arce 208749ee3b [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
- Adding SPDX-License-Identifier: Apache-2.0

[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: 25745

Story: 2002813
Task: 25747

Change-Id: Idb2485cfc2e21e2f76d2fa24faefadbf146c4217
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 16:14:51 -07:00
Dean Troyer cd92cda225 Fix the name of the gate pipeline
Change-Id: Ie9314d95a901a09d434c79be12c108dda7201d2d
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-09-10 18:02:07 -05:00
Sun Austin 690bf3c5a1 enable gate and vote for zuul linters
Change-Id: I23677378a3bb32f6be712ad8d151784be9acdca0
Story: 2003365
Task: 24421
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-08-28 13:10:06 +08:00
Dean Troyer 8331e5a9bc Remove non-voting gate job
Change-Id: Ia4e4884b851bdbdd02f535977d8316fa395900cd
2018-06-29 14:30:44 -05:00
Dean Troyer 18aadcc9bf Add default test framework
Change-Id: Ie97032884de0d70dfc57d97ebd2055148fff1e38
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-06-09 08:56:58 -05:00