10 Commits

Author SHA1 Message Date
Leonardo Fagundes Luz Serrano
a04fa768cd Add python-ldap deps for zuul test
Zuul tests are failing to build python-ldap due
to some missing binary pkg dependencies [1].
Added them using bindep following the solution
on the gui repo [2, 3]

[1] https://zuul.opendev.org/t/openstack/build/8356394372e24999b27e1a0251e1d919
[2] https://review.opendev.org/c/starlingx/gui/+/894397
[3] https://review.opendev.org/c/starlingx/gui/+/885834

Test Plan:
pass: tox --notest -epylint -vv --skip-missing-interpreters=false

Closes-Bug: 2036280

Change-Id: Ic1f38573d3ea344b3724bfd92a167bd209ebcea0
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
2023-09-15 18:41:49 +00:00
Davlet Panech
41e11f4008 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: I62f60a26ee662814d9a21398aa138956da2fc53a
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2023-04-28 12:38:53 -04:00
Heron Vieira
d03a0fdccc Unit tests for K8s-coredump handler
Add unit tests for the solution and fix warnings
raised by the test suite.

Test Plan:
PASS: Run tox with all the test suite (pytest, flake8,
      pep8, bandit, cover, pylint)

Story: 2010261
Task: 47117

Depends-On: https://review.opendev.org/c/starlingx/utilities/+/869392

Signed-off-by: Heron Vieira <heron.vieira@windriver.com>
Change-Id: Ie0735e32f37f99197dba15d3f1f2b39dbf1c222c
2023-02-13 16:56:32 -03:00
Isac Souza
958237c229 Refactor ceph-manager code to use sysinv-api instead of RPC
The monitor module of ceph-manager has support for executing
certain actions during an upgrade. This code is intended
to support alarm filtering or other actions necessary to
migrate ceph-related code from one version to another.

The code currently uses an RPC call to conductor in order
to fetch upgrade information from sysinv. This patch changes
ceph-manager to use the REST API instead of an RCP. The main
reason for this migration is a planned change on sysinv to
use ZeroMQ for RPC, instead of RabbitMQ. This change on
sysinv would require changes on ceph-manager to use the new
protocol. Using the REST API has other advantages over RPC,
such as decoupling and resilience.

Story: 2010087
Task: 46225

Test Plan:
1. Unit tests for the new code
2. Installed the new code and verified the code works by
   forcing the upgrade check to run (with and without an
   active upgrade)
3. Fresh installation of ISO

Signed-off-by: Isac Souza <IsacSacchi.Souza@windriver.com>
Change-Id: Ifd763825cd184192f100a119db6c3aee92708706
2022-10-07 20:39:58 +00:00
Thiago Brito
c213a3832d Add flake8-import-order and use python3.9 on tox
Improving the code quality of utilities by adding the flake8 check on
zuul and adding the flake8-import-order plugin to standardize imports.
Also, defaults testenv to python3.9 configuration that should be used
for now on with the debian migration.

Story: 2010100
Task: 45671
Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I007302bdfb873aed4ebb7b9023db2461282b9fba
2022-09-13 21:49:41 +00:00
Thiago Brito
5d0b69af84 Refactoring novaClient instantiation and unittests
And adding infra for unittest execution.

Partial-Bug: 1951579
Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I58cefac9076db52333b41633bf2cbaa5441dc98c
2022-01-25 19:27:36 -03:00
Chen, Haochuan Z
6829ac785f Enable bandit for utilities
Story: 2008929
Task: 42530

Change-Id: Id63488414ae16b384549fcf8cbd9805b5b1a81ad
Signed-off-by: Chen, Haochuan Z <haochuan.z.chen@intel.com>
2021-06-17 01:45:52 +00:00
Bin Qian
bf67104914 Adding job to upload commits to GitHub
Add job to publish utilities repo to GitHub

Change-Id: Id80bcedc6f452a91150d04e6d6934dc14da00dbf
Story: 2007252
Task: 38705
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2020-02-07 09:51:33 -05:00
Al Bailey
09f63f7cc9 Adding pylint target to utilities for zuul validation.
This target cannot be included as part of openstack-tox-linters
because the required-projects for pylint are config and fault.

No code changes are submitted as part of this review.
The suppressed errors can be un-suppressed as the code
gets cleaned up in later reviews.

Change-Id: Ica70f77e6cab8cea8647950428701146faf38c2d
Story: 2004515
Task: 36667
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-09-19 13:44:36 -05:00
Al Bailey
d7051e8c55 Adding zuul jobs for new repo
This job adds a single linters tox target.

The linters target is an aggregation of linters for
this repo including:
 - flake8
 - bashate

Other linters such as yamllint can be added to this
repo by later commits.

Certain bashate and flake8 codes are suppressed. They
can be enabled by later commits.

This commit also adds basic contributing and hacking docs.

Change-Id: I3d12e16b09d94a5eb1f6ea5e7e77f78bc082af84
Story: 2006166
Task: 36536
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-09-09 13:43:49 -05:00