Commit Graph

25 Commits

Author SHA1 Message Date
Davlet Panech 414f61b9df 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: I0d13874c1d3018164d6afcd2e2ff551b4c7618b1
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2023-04-28 12:38:51 -04:00
Sharath Kumar K ec62232936 Tox and Zuul job for the bandit code scan in starlingx/metal
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/metal 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 Batch4 change.

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

Change-Id: I7b91a51e0e411b46670f84c2b2a6c7749f9d0521
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-29 08:24:46 +00:00
Bin Qian 932d7df90a Adding job to upload commits to GitHub
Add job to publish metal repo to GitHub

Change-Id: Ic122ad2490ae5d13dfd7a0b937d854ca46d861b3
Story: 2007252
Task: 38685
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2020-02-06 11:34:00 -05:00
Al Bailey e68db45a2e Add pylint checks for python files in metal
Created a pylint.rc file for running pylint
Added a pylint task to zuul

Targets the following python files:
 - redfish docker code
 - hwmond_notify
Other python components in metal are not being included
because they are being removed in later commits.

Story: 2004515
Task: 37956
Change-Id: I782672c366e56d1f1597d40f5754444b2fa76b9e
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2020-01-03 13:27:00 -06:00
Al Bailey c0e97fcb36 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: I02e92cd2d17207b5e09a082647d4da0f5e7ed426
Partial-Bug: 1848557
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-10-17 12:58:08 -05:00
Al Bailey f049bfa5f1 Minor zuul and tox cleanup related to package re-org
The utilities repo is referenced by metal.

The inventory tox.ini is not being triggered by zuul,
but would have failed if run locally.

Change-Id: I4cd044d8ad03fefa19189e790e4b87222bebc459
Story: 2006166
Task: 36532
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-09-09 10:35:11 -05:00
Andreas Jaeger ebe7600ff4 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: I3b20425c0083e3cae3c2150fecc4e603c70b1eb6
2019-08-21 12:58:43 +00:00
Al Bailey 5b9ae3a5ff 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: Ibad252c69c19d425fe3c9f9b85e773286b3e3c43
Partial-Bug: 1840292
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-08-15 13:50:14 -05:00
Dean Troyer c84ce08dc7 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
Change-Id: Id3f05219865a595a2a9f36e83a4ad6bbfd0e16fc
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-22 16:42:03 +00:00
OpenDev Sysadmins 2a05b8c09a 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:33 +00:00
Martin, Chen 9af70ae48e [devstack] python-inventoryclient utility in stx-metal
Install and cleanup python-inventoryclient

Task: 29246
Story: 2003161

Depends-on: https://review.openstack.org/#/c/641894/

Change-Id: I9ad9cbba78647044d42859e94b82ce71c23da5e2
Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
2019-03-26 15:44:51 +08:00
Dean Troyer 5b31777212 Switch to new DevStack base job
Rename stx-devstack-metal to flock-devstack-metal
and inherit from flock-devstack-base

Change-Id: I7bb8a5fe4865def69e80a3c5347ee31b06073e22
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-03-25 09:28:52 -05:00
Dean Troyer 4dece4daf8 Enable Barbican DevStack plugin
* Enforce presence of Barbican in DevStack configuration
* Add Barbican and python-barbicanclient to stx-devstack-metal job

Change-Id: I3df338785b2352ec9e9f7c1387f2fbb47bb7baca
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-03-20 15:52:55 -05:00
Martin, Chen 6ccf0b68c0 [devstack] inventory service in stx-metal
Install and cleanup utility inventory-dbsync,
inventory-dnsmasq-lease-update and services
inventory-api, inventory-conductor, inventory-agent

Task: 29245
Story: 2003161

Depends-on: https://review.openstack.org/#/c/642305/

Change-Id: I62867f95285df9a6e5bb8c429e88d007f6db0f02
Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
2019-03-20 01:42:18 +08:00
Dean Troyer 732e31b381 Enable the plugin tests
The preceeding 4 reviews all needed to be in place in order for
the devstack run to complete.  Enable it now.

Change-Id: I139c862b8edbe7214ad11b9820e400b7e613bd61
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-28 23:40:52 -06:00
Dean Troyer f1c8043abf Set a fixed install dir and simplify the install process
* Install build artifacts to a fixed dir rather than attempting
  to infer a location based on the Python binary location.  That
  was intended to work seamlessly in venvs, we'll burn that bridge
  when we come to it, for now just put it all in
  $DEST/usr/{include|lib}.  This also removed the need for
  root access for these files to allow the build steps to be performed
  on laptops that may not otherwise run DevStack.

* Install systemd unit files directly to /etc/systemd/system
  and skip the requirement to copy them a second time

* Add the declarations to settings for the devstack playbook to
  handle plugin precedence order properly.

Change-Id: I5d68465384e000c05eb650a8358b70f7a7a6c293
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-28 22:34:47 -06:00
Dean Troyer 5133f09a0f Add devstack job and fix linters
Add the base DevStack job and make sure bashate runs on
the devstack plugin files.

Begin to re-structure the plugin to match the common structure.

Add devstack/build.sh and split out the build steps into
separate functions in devstack/lib/stx-metal

This is complete, further work to be done in follow-up changes.

Change-Id: I05f6df758e18f182fb0a05731eddc6cb7f599e51
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-02-07 11:28:14 -06:00
Dean Troyer 5558276784 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: Ib41f10ce72eb283d4edbeb1ecc0543403295d7bf
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-10-11 08:21:53 -05:00
Dean Troyer 6e8731e572 Add publish job for docs
Also set the theme to alabaster until starlingxdocs is ready

Change-Id: I6a113b9fddb64792b5454b3ef0ef866ef9f74fc6
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-10-06 14:23:21 -05:00
Dean Troyer 56b739594d Add api-ref job
Change-Id: I8b41c1ecc9ee22aacc55e8413e539ff7b7879a30
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-09-28 11:00:48 -05:00
Dean Troyer a2dc830d33 Add some jobs for docs and releasenotes
* Use build-openstack-docs-pti job template for docs
* 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.
* Create a release summary note.

Change-Id: I5a610cfe271707fd704248ede0db75be6d031121
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-09-13 20:59:12 -05:00
Sun Austin 90ce692186 pep8 job enable and fix pep8 reported issue
use flake8 as pep8 tools
enable check and gate for pep8(voting)
Fix below flake8 issues:
    E127 continuation line over-indented for visual indent
    E211 whitespace before '('
    E222 multiple spaces after operator
    E302 expected 2 blank lines, found 1
    E501 line too long (101 > 79 characters)
    E502 the backslash is redundant between brackets
    F401 'platform' imported but unused
    W391 blank line at end of file

Change-Id: Idfb953e52c8ee35c2adefdf0e4143a381c7f49e2
Story: 2003426
Task:  24596
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-09-06 09:45:51 +08:00
Sun Austin fedb95ba79 Fix linters issues and enable tox/zuul linters job as gate
Fix below linters issues
 E001 Trailing Whitespace
 E003 Indent not multiple of 4
 E006 Line too long
 E011 Then keyword is not on same line as if or elif keyword
 E020 Function declaration not in format ^function name {$
 E040 Syntax error: syntax error near unexpected token `;'

ignore cases are added in tox setup
 E006 Line too long
 E010: do not on the same line as for

Story: 2003368
Task: 24427

Change-Id: I6acf64271a4e608be8bc8fa965cac4fa31e0c05b
Signed-off-by: Sun Austin <austin.sun@intel.com>
2018-09-05 09:02:25 +08:00
Dean Troyer 9215d018dc Remove non-voting gate job
Change-Id: I06b95f9c4ce0591b7437b0ba407cf785a491f2f6
2018-06-29 14:31:56 -05:00
Dean Troyer 3d9425425a Add default test framework
Change-Id: I18bfbf72a120b6832fbc52e630cb3c96daa663b1
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-06-11 18:51:02 -05:00