utilities/.zuul.yaml
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

217 lines
9.8 KiB
YAML

---
- project:
check:
jobs:
- stx-utilities-tox-linters
- stx-utilities-tox-pep8
- stx-utilities-tox-pylint
- stx-utilities-ceph-manager-tox-bandit
- stx-utilities-ceph-manager-tox-py39
- stx-utilities-ceph-client-tox-bandit
- stx-utilities-pci-irq-affinity-agent-tox-py27
- stx-utilities-pci-irq-affinity-agent-tox-py39
- stx-utilities-pci-irq-affinity-agent-tox-pep8
gate:
jobs:
- stx-utilities-tox-linters
- stx-utilities-tox-pep8
- stx-utilities-tox-pylint
- stx-utilities-ceph-manager-tox-bandit
- stx-utilities-ceph-manager-tox-py39
- stx-utilities-ceph-client-tox-bandit
- stx-utilities-pci-irq-affinity-agent-tox-py27
- stx-utilities-pci-irq-affinity-agent-tox-py39
- stx-utilities-pci-irq-affinity-agent-tox-pep8
post:
jobs:
- stx-utilities-upload-git-mirror
- job:
name: stx-utilities-tox-linters
parent: openstack-tox-linters
nodeset: debian-bullseye
- job:
name: stx-utilities-tox-pep8
parent: openstack-tox-pep8
nodeset: debian-bullseye
- job:
name: stx-utilities-tox-pylint
parent: tox
nodeset: debian-bullseye
description: |
Run pylint tests
required-projects:
- starlingx/fault
- starlingx/config
vars:
tox_envlist: pylint
- job:
name: stx-utilities-upload-git-mirror
parent: upload-git-mirror
description: >
Mirrors opendev.org/starlingx/utilities to
github.com/starlingx/utilities
vars:
git_mirror_repository: starlingx/utilities
secrets:
- name: git_mirror_credentials
secret: stx-utilities-github-secret
pass-to-parent: true
- job:
name: stx-utilities-ceph-manager-tox-bandit
parent: tox
description: |
Run bandit test for utilities ceph-mananger
nodeset: ubuntu-bionic
files:
- ./ceph/ceph-manager/ceph-manager/*
vars:
tox_envlist: bandit
tox_extra_args: -c ./ceph/ceph-manager/ceph-manager/tox.ini
- job:
name: stx-utilities-ceph-manager-tox-py39
parent: tox
description: |
Run py39 unittests for utilities ceph-mananger
nodeset: debian-bullseye
files:
- ./ceph/ceph-manager/ceph-manager/*
vars:
tox_envlist: py39
python_version: 3.9
tox_extra_args: -c ./ceph/ceph-manager/ceph-manager/tox.ini
- job:
name: stx-utilities-ceph-client-tox-bandit
parent: tox
description: |
Run bandit test for utilities python-cephclient
nodeset: ubuntu-bionic
files:
- ./ceph/python-cephclient/python-cephclient/*
vars:
tox_envlist: bandit
tox_extra_args: -c ./ceph/python-cephclient/python-cephclient/tox.ini
- job:
name: stx-utilities-pci-irq-affinity-agent-tox-py27
parent: tox
description: |
Run py27 unittests for utilities/pci-irq-affinity-agent
nodeset: ubuntu-bionic
files:
- ./utilities/pci-irq-affinity-agent/*
vars:
tox_envlist: py27
tox_extra_args: -c ./utilities/pci-irq-affinity-agent/pci_irq_affinity/tox.ini
- job:
name: stx-utilities-pci-irq-affinity-agent-tox-py39
voting: false
parent: tox
description: |
Run py39 unittests for utilities/pci-irq-affinity-agent
nodeset: debian-bullseye
files:
- ./utilities/pci-irq-affinity-agent/*
vars:
tox_envlist: py39
python_version: 3.9
tox_extra_args: -c ./utilities/pci-irq-affinity-agent/pci_irq_affinity/tox.ini
- job:
name: stx-utilities-pci-irq-affinity-agent-tox-pep8
parent: tox
description: |
Run flake8 checks for utilities/pci-irq-affinity-agent
nodeset: ubuntu-bionic
files:
- ./utilities/pci-irq-affinity-agent/*
vars:
tox_envlist: pep8
tox_extra_args: -c ./utilities/pci-irq-affinity-agent/pci_irq_affinity/tox.ini
- secret:
name: stx-utilities-github-secret
data:
user: git
host: github.com
# yamllint disable-line rule:line-length
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
ssh_key: !encrypted/pkcs1-oaep
- LCGDMW/3G9MvDqKqEaciq+Ik6WqZx+hBVNBYq54fRxh5BRWJtA07PRRBu+YQJaDwp2B/Q
PS3lENAR3gGU2Go5S9RwDtVvU4eLT1B+YdW6/clFAvc6a7G8WGu587DvJpnfq13GUNbVZ
EszEiSNsI49ykih+ZPSStYksgJr4XFOQy1sAMIINnUMCUbyfnmUwfsYu+mMb7pm/qQBoA
5rF6Co6DvlqPpDQHUeedv4CkLkmEvuMF0Mpzkkw5uj0ECQJONml6UNnYgcw9bJwsRHVsf
8qV1NvnTKm5aW06H67jbXs0XX/BxsHauGttGl/5GUj1SuMKKpJ9voyPBlGViGv6+T8yMJ
v9RVhN+42g3vbCHsDUNtWenjVoBVWg70C2a0efEu+EeIBapzXgSlQsKV4O5Ocy0jHEGX3
D/hKlOp4noRmjGZddCtAFcwRdIBbQVUNskA+UMNxdq6o/kjUz/p2Xr5YHbEflWK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