Commit Graph

10 Commits

Author SHA1 Message Date
Alex Kavanagh 50fd97c4ee 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: Ic9e267db4934cb95125eebb2ff3b1ca09d64e003
2022-02-17 12:30:16 -05:00
Liam Young d70c741ca7 Fix up amulet for queens
Switch to use Keystone v3 clients for Queens and setup
domains etc for new demo user.

Change-Id: I4a90a28212ec6e1a8e9f348b1318722141f35d2c
Requires: https://github.com/juju/charm-helpers/pull/119
2018-02-25 16:06:08 +00:00
Liam Young a94fa1d584 Fix writing text after py3 conversion
During the recent py3 conversion of the charm a couple of places
where the charm writes text in binary mode were missed. This
fixes that problem. Without this fix the charm errors with:

"TypeError: a bytes-like object is required, not 'str'"

Change-Id: I5c2af1dce12092c1ba1be4b4ad9a50261000e886
2017-11-22 15:40:47 +00:00
Liam Young 1ce182bce7 Mark charm blocked for invalid migrations settings
Previously if enable-live-migration was true and migration-auth-type
was anything other than "ssh" then migration setup would be invalid.
The change puts the charm in a blocked state to make it clear that
the migration settings are not valid.

Change-Id: I796b54e9a08e8eab5c2b316a2aff0b29ee7e6bd9
Closes-Bug: #1431685
2017-09-25 09:28:23 -04:00
Billy Olsen 12396779b5 Add ceph-pool-weight option for calculating pgs
Provide the weight option to the Ceph broker request API for requesting
the creation of a new Ceph storage pool. The weight is used to indicate
the percentage of the data that the pool is expected to consume. Each
environment may have slightly different needs based on the type of
workload so a config option labelled ceph-pool-weight is provided to
allow the operator to tune this value.

Closes-Bug: #1492742

Change-Id: Ia9aba8c4dee7a94c36c282273a356d9c13df7f75
2016-07-14 08:04:33 -07:00
David Ames f2eb3bf2ec Add apparmor support
Fixes to nova-network and nova-api service restarts
Charm helpers sync to bring in the AppArmorContext class
Create specific service ApiAppArmorContexts
Add service specific templates for apparmor profiles
Add aa-profile-mode in config.yaml
Apply the apparmor profile as requested: disable, enforce, complain
Add aa-profile-mode change test to amulet
Charm-helpers sync to pull in AA Profile context changes

Change-Id: I18aff4bfe131010521ea9ff544c6bf76f888afa6
2016-07-13 14:37:11 +01:00
James Page fda0a0da41 Revert "Add apparmor template for nova compute services"
Reverting initial support for AppArmor as this change had
some un-intended side-effects and the profiles still need
further work.

This reverts commit b08fe04906.

Change-Id: I8538b491bc0c6bd3ad02ac0b1d4fda190b137c41
2016-04-13 14:37:57 +01:00
David Ames b08fe04906 Add apparmor template for nova compute services
Charm helpers sync to bring in the AppArmorContext class
Create specific service ApiAppArmorContexts
Add service specific templates for apparmor profiles
Add aa-profile-mode in config.yaml
Apply the apparmor profile as requested: disable, enforce, complain

Change-Id: I886520d9e8296d2fcf0305dd021270c8530d2813
2016-04-11 10:14:01 -07:00
James Page 5ae65ad14f Resync charm-helpers
Change-Id: I101a9f7a03542d0e9dc466c63851848e80ac9931
2016-03-02 12:09:54 +00:00
uoscibot 843b45528b Adapt imports and metadata for github move 2016-02-29 10:49:19 +00:00