Commit Graph

29 Commits

Author SHA1 Message Date
Nobuto Murata c4209b3965 Allow ceph device scrape-health-metrics
Ceph has a function to collect health metrics through smartctl or nvme
command out of the box. And it relies on sudo spawned from the ceph-osd
process so it needs to be considered in the apparmor policy.

[/etc/sudoers.d/ceph-smartctl in ceph-base package]
> ## allow ceph daemons (which run as user ceph) to collect device
> ## health metrics
>
> ceph ALL=NOPASSWD: /usr/sbin/smartctl -x --json=o /dev/*
> ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/*

Also sync charmhelpers and mock platform info

Closes-Bug: #2031637
Change-Id: I981a5db0fd49eca83aa8a619f0cbd0d34a533842
2023-11-06 20:18:36 +01:00
Luciano Lo Giudice d13e6ba384 Unpin tox version
This unpinning is meant to solve the issues with tox 4.x breaking all
the virtualenv dependencies. Also, re-sync from release-tools.

Change-Id: I673c4b96de74f83d8fd3c0657c7ab0477fc4e9dc
2023-01-11 12:28:59 +09:00
Corey Bryant 856dffb486 Sync charm-helpers for zed support
Change-Id: I266226c771282194f809120be0271012705cb4bd
2022-09-26 19:01:37 +00:00
Zuul 99ef6cb306 Merge "Enhance the 'add-disk' action for disk replacement" 2022-02-22 07:45:04 +00:00
Luciano Lo Giudice 65207967cf Enhance the 'add-disk' action for disk replacement
As part of the task to improve disk replacement, the 'add-disk' action
needs some changes. This includes:
- Creating 'bcache' devices to accelerate disk access.
- Creating caching partitions of a specified size.
- Recycling previously deactivated OSD ids.

Change-Id: Id5027f30d51c23d2be4c34f82867d65a50b35137
Depends-On: I43d0a0bc11664c37532c0117711affc93c9d1ad1
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/675
2022-02-18 12:43:46 -03:00
Alex Kavanagh c3e89c09bd Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I83118e15ff91480370182b404b3d3b7d24b5c67c
2022-02-17 12:30:03 -05:00
Hervé Beraud 4cbac58ba1 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: Ib658c7f61fe4aceafc1919e366d24ce81ec1dd63
2021-12-15 09:39:12 +00:00
Corey Bryant f2d704a14d Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39
* charms.ceph sync

Change-Id: I4d517c40a4450ef1395dd0240513eeebc069384c
2021-11-17 13:46:25 -05:00
Aurelien Lourot e5ac333a97 Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: Ic2f5c854e7d6f2200941e828c1665bce0970f02b
2021-07-22 14:52:25 +02:00
Alex Kavanagh 613c0b82d7 Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: I77b76a839d4bfcf5fe84fa3d995911586bf23476
2021-05-03 16:02:54 +01:00
Alex Kavanagh cf2948f8f0 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I773d5f9f699af1a2ea7be543c4e58e0f7bc4433a
2021-04-09 08:42:26 -07:00
Alex Kavanagh 73a95c0887 Updates for testing period for 20.01 release
* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: Iffb92ef062f307bc9b2b27e217431b2fc122acfc
2021-01-12 15:28:53 +00:00
Aurelien Lourot e2b1de70f0 Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: I750963a14adbe775f723c973db023456f193f752
2020-12-11 13:54:22 +01:00
Alex Kavanagh 1adefd359b Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Required additional fix:

* Also sync section-ceph-bluestore-compression template

Change-Id: I621c3a0e4e3594808b4c6ec298ed79aada44bae0
2020-09-28 18:48:15 +01:00
Frode Nordahl 0ca99c2fc3
Unpin flake8, fix lint
Change-Id: I7f47c1dac0761101980ebba3f9aab8732cb0d1ce
2020-08-26 16:29:47 +02:00
Ryan Beisner 4c21a984c6
Sync charm/ceph helpers, tox, and requirements
Change-Id: I7a2ebaa43184420812b6f348039dd37de47d2488
2019-10-02 11:49:01 -05:00
Chris MacNaughton ea2b93ed08 Retarget Zaza to master now that split has landed
This change is required as Zaza underwent a split of the openstack
tests from the Zaza project, so we had to track the working branch
until that change landed. As it has landed, it is now time to use
Zaza from master again

Change-Id: I524cdb7fc1fc8a39c7f945e2f627d2d784e88aee
2019-05-24 08:49:18 +02:00
Chris MacNaughton b8f6265158 Migrate to split zaza - zaza.openstack
This change adds in zaza.openstack, as well as changing the
branch target of zaza to a branch with zaza.openstack
removed, allowing us to validate the new library

Change-Id: Ide3a4a0e05d88731bbf5c1c33475ad3d86b95e6f
2019-05-10 09:49:25 +02:00
Chris MacNaughton 09bd2289be Remove duplicate CharmHelpers
Because we have charmhelpers in-tree, adding it via
test-requirements.txt means we have duplicate modules

Change-Id: Ib3b14aa7cf6bcdc75dde9c9130beef2179767c6b
2019-05-08 12:23:10 +02:00
Chris MacNaughton 67ddea1e5a Migrate Zaza tests to independant OpenStack Charms specific library
Change-Id: Ia50a57c52c97208a014ea89e6c48be2fe6f9f36d
2019-04-26 14:05:41 +02:00
Chris MacNaughton 59dcfc4d06 Configure stestr directly
Change-Id: If015f76a839733e1876214c002ec2c9c75f2e12a
2019-03-06 16:05:50 +01:00
Nicolas Pochet dd47f6493f
Migrate tests to zaza
Depends-On: https://github.com/openstack-charmers/zaza/pull/93
Change-Id: I9a19960fdb239eb5a8d421f135285e89b8405267
2018-10-09 18:15:01 +02:00
Ryan Beisner 72b7a5b16f Update requirements
Change-Id: Ic9e43835bcc84441414f93dfd851c571c611fb19
2018-10-03 11:15:05 -05:00
Alex Kavanagh 4e1ecd55b8 Bring ceph-osd to Python 3
* Synced version of charm-helpers
* Synced version of charms.ceph to bring in Py3 compatible library
  methods.

Change-Id: I5ac45740f48a71d9cb0c5943472fc8590a723514
2017-11-17 12:13:54 +00:00
David Ames fff16b0059 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I20bd84a97d741c4303a60ef40568e59f6fc54f1b
2017-04-28 08:41:57 -07:00
Ryan Beisner fd15c0d586 Use bundletester for amulet test execution
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.

Rename amulet tests inline with gate-*, dev-* and dfs-*
naming standards.

Update README to refer to functional testing section of the charm
guide.

Change-Id: I618219551fc116c151cda4790c01aa9e86fa462a
2016-07-21 18:06:41 +00:00
James Page ba6397cac3 Update to charm-tools >= 2.0.0
The new release of charm-tools no longer ships the charm
command; update minimum version requirement and switch
to using charm-proof instead, unblocking current pep8
failures across all charms.

Also pin the version of requests to 2.6.0 until theblues
(indirect dependency of charm-tools) sort out its
requirements versioning.

Change-Id: I86b9094501dc1101bcad7038acd92f89ac71c95c
2016-03-23 09:30:16 +00:00
James Page 71b77dca86 resync requirements with openstack upstream 2015-10-30 15:05:27 +09:00
James Page ab2c851e5c Make things alot simpler 2015-10-30 12:37:15 +09:00