Commit Graph

59 Commits

Author SHA1 Message Date
Frode Nordahl 07e40a2927 Enable bionic/stein and disco/stein functional tests
Change-Id: I1e95d131193225048683690d2d80012469bb64d7
2019-04-24 15:47:47 +00:00
Ryan Beisner e7b36212fd Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: I6d4bf06f4e10bf1263a3b4de74303bd8586a485b
2018-10-03 13:09:59 -05:00
Zuul 01eeeff851 Merge "Sync charm helpers and enable rocky func test" 2018-09-20 15:00:00 +00:00
Ryan Beisner 72ada2bc20 Sync charm helpers and enable rocky func test
Change-Id: I898b4f28f8b65a7ba3b244ca6d0e27405a4e9ac5
2018-09-20 12:28:01 +02:00
Ryan Beisner b31cbb9ef5 Add cosmic
Add a tactical change which is already merged into charm-helpers.

This needs to go into all charms to solve the chicken:egg issue
where cosmic is untestable until this change exists.

Reference:

4835c6c167

Change-Id: I6e3ef7a281c853a04a090b931562e8389d7b655f
2018-09-19 13:27:36 +02:00
Chris MacNaughton 4d7b3e9240 Remove old nova-compute / mysql relation and patch for nova-lxd bug
This review is modified to include a patch to resolve bug #1793137
which is due to a bug in nova-lxd where the wrong pool name (lxd) is
used with zfs if lxd is new enough that the storage.zfs_pool_name key
is missing from the config.  This is the case on bionic and snap
installed lxd.

Closes-Bug: #1713807
Related-Bug: #1793137
Change-Id: I1123d9882bdb00e9183424b363fc3d1ff25f2346
2018-09-18 14:46:58 +02:00
Ryan Beisner 66857d4884 Update functional test definitions
Change-Id: If6944e42d9e3a97fab882bf61ea5cb30f9650db4
2018-07-18 18:36:39 -04:00
Zuul 50927d2961 Merge "Enable Bionic as a gate test" 2018-05-11 09:01:56 +00:00
Ryan Beisner 505954c2ff Remove deprecated functional test targets
Change-Id: I0002afbc8dede513253735e92e9480c706930b4c
2018-05-09 16:36:21 -05:00
David Ames 2a4ada192d Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I45fec42fedc69430c3dbbdc752b7301efc168a8e
2018-05-09 09:34:01 -07:00
James Page df6f14b335 Enable xenial/queens amulet tests
Update functional tests to support keystone v2/v3 helpers.

Enable basic xenial-queens functional gate.

Change-Id: I26d0bf1d2635388e295807ecaf6949cf63309c25
2018-02-28 14:54:16 +00:00
Ryan Beisner 7d5d65b15e Sync charm-helpers
Change-Id: I416f1a910386a5edbc868668710c509e6316117c
2018-02-21 14:09:05 -06:00
Ryan Beisner 8257e3dd30 Sync charm-helpers
Notable issues resolved:

openstack_upgrade_available() broken for swift
https://bugs.launchpad.net/charm-swift-proxy/+bug/1743847

haproxy context doesn't consider bindings
https://bugs.launchpad.net/charm-helpers/+bug/1735421

regression in haproxy check
https://bugs.launchpad.net/charm-helpers/+bug/1743287

Change-Id: Ieb48079184f507e4513dde20e32b3c7051de7c04
2018-01-19 12:09:20 +00:00
Ryan Beisner c048ce6240 Add Bionic and remove Zesty series and tests
Bionic, being the next LTS, is important to enable for dev
and test as early as possible ahead of 18.02.

Zesty goes EOL in Jan 2018. The next stable charms release (18.02)
will not provide Zesty series support, as it was an interim
(non-LTS) release.

Change-Id: Ie342df2128fbdf9e7d590a0b909cf3c09a87d3af
2017-12-05 05:28:50 +00:00
Andrew McLeod c6ae48be4a Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: I2af5a7bdcb956889f9e7140e67ec51a969eee379
2017-11-18 13:21:37 +13:00
Ryan Beisner f6398d7d65 Sync charm-helpers
Change-Id: I9e8e57dbc759aeda46888313fe2ab3cf973e28ed
2017-08-24 16:55:35 -05:00
Ryan Beisner abc2c452e7 Remove deprecated series metadata and tests
Change-Id: I6b20a8fe72658f3f93e97469c3c950695553e8ea
2017-08-23 16:07:12 +00:00
Andrew McLeod 1161c9ea3f Modify tests.yaml which specifies bundletester config params
with the following key:value pairs:

- reset_timeout: 600

Change-Id: I182ce322361bf59cf1a1c663f5563627e9df3223
2017-08-09 14:26:18 -06:00
Jenkins 01f46a4356 Merge "Migrate to LXD storage pools" 2017-07-05 08:33:05 +00:00
Chris MacNaughton 6df877339c Migrate to LXD storage pools
We need to continue with the previous style of managing storage
until zesty or a specified -updates channel LXD

This additionally reinforces our suggested deployment with ZFS
for a deployment, rather than using LVM as the defualt in
testing.

Closes-Bug: 1676742
Related-Bug: 1573681
Depends-On: I5c38766c4be66d63ef4a07eccc780fcab5973d49
Change-Id: I3ddbd11382c34ff9200e721fa3c90fe67bdce534
2017-07-04 13:37:30 +02:00
Alex Kavanagh 62860678f4 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: I9176ea3be01146b18888266ba53a9d37439ea492
Related-Bug: #1659575
2017-04-27 16:18:50 +01:00
David Ames 723b09e342 Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- Turn on Xenial-Ocata Amulet test definitions.
- Sync charm helpers to get Juju 2.x amulet compatibility.
- Keeping Zesty-Ocata Amulet test definitions turned off until the
  metadata.yaml changes propagate to the charm store.
- Resync tox.ini to resolve amulet test failures.

Change-Id: I3cbc8f411dc9a4cfa6187be280dc2c43be64b611
2017-03-22 11:24:33 +00:00
David Ames 60692dee66 Pre-release charm-helpers sync 17.02
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I1b7e6a7281eca80ffbb042f012e0eec0c15646ec
2017-02-14 14:58:19 -08:00
Ryan Beisner ef5a16818b Update Amulet defs, series metadata and c-h sync
- Sync charm helpers if applicable.

- Fix test executable hashbags for virtualenv prep.

- Add Yakkety-Newton Amulet test definitions.

- Prep Xenial-Ocata Amulet test definitions (not yet enabled).

- Prep Zesty-Ocata Amulet test definitions (not yet enabled).

- Add Zesty charm series metadata.

- Remove Precise charm series metadata if present.

- Remove Precise Amulet test definitions if present.

- Add CS_API_TIMEOUT & CS_API_URL to tox.ini to control
  charmstore interaction in Amulet tests

- Create flavors to fix Newton+ Amulet tests.

Change-Id: I151692df2149fa0c1b882230508e9db760a277a0
2016-12-01 19:03:58 +00:00
James Page aa8f652756 Guard enablement of ext4 mounts in containers
Its not possible to enable usernamespace ext4 mounting when LXD
is being run from inside a container; leverage charm-helpers
is_container function to guard writes to the /sys filesystem.

Change-Id: Ie479dcf45cb4834308a055dde22d919830c60671
Closes-Bug: 1635659
2016-11-09 11:41:29 +00:00
Ryan Beisner f389556225 Additional amulet definition updates
- Re-enable bundletester reset boolean

- Other updates for Newton amulet tests

Change-Id: I843be5202ee6e574362a31beba808f4630a38aa4
2016-10-10 21:14:41 -05:00
Ryan Beisner f4d71ccdc0 Update amulet test definitions for Newton
- Remove Precise-Icehouse Amulet test definitions if they exist.

- Add Xenial-Newton Amulet test definitions.

- Add Yakkety-Newton Amulet test definitions.

- Use the percona-cluster charm in tests instead of the mysql charm.

Change-Id: I45e7fd67a0d1eed5f5279ff45e351c513229726e
2016-10-10 07:21:25 -05:00
David Ames 7737169846 Pre-release charm-helpers sync 16.10
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: Iabac8b8a886e8721a96cb06c13de15dd63f362c1
2016-09-30 09:06:08 -07:00
James Page b48bf6c604 Add support for application version
Juju 2.0 provides support for display of the version of
an application deployed by a charm in juju status.

Insert the application_version_set function into the
existing assess_status function - this gets called after
all hook executions, and periodically after that, so any
changes in package versions due to normal system updates
will also be reflected in the status output.

This review also includes a resync of charm-helpers to
pickup hookenv support for this feature.

Change-Id: Iecfdb372e21d1e23cefaa5f972008fc34d65b143
2016-09-21 10:30:19 +01:00
Liam Young 5bfe133362 Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: I416986b04b84dcd4334f83dce623adb678b70370
2016-07-21 14:25:05 +00:00
Ryan Beisner f2b4efc96f 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: I892dfad152eff14d7e67313197c61dacc4a9eca2
2016-07-20 21:54:09 +00:00
David Ames 70d0ed2cf9 Pre-release charm-helpers sync
To begin release testing get each charm up to date with lp:charm-helpers

Change-Id: Ie7f11bf40fd0910c1d1332463def6274417d2462
2016-07-15 10:58:09 -07:00
James Page 980f8179f2 Resync charmhelpers for licensing change
The charm-helpers project have re-licensed to Apache 2.0
inline with the agreed licensing approach to intefaces,
layers and charms generally.

Resync helpers to bring charmhelpers inline with charm
codebase.

Change-Id: Idf85c8e79caa47182e858c6a840f714a4c371806
2016-07-06 16:35:41 +01:00
James Page 4698744a59 Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

Change-Id: I2ae8c26a2a486ac39ee386d2c0ff96ef186edf86
2016-07-01 17:30:16 +01:00
Chuck Short 994b52de3f Switch to using charm-store for amulet tests
All OpenStack charms are now directly published to the charm store
on landing; switch Amulet helper to resolve charms using the
charm store rather than bzr branches, removing the lag between
charm changes landing and being available for other charms to
use for testing.

This is also important for new layered charms where the charm must
be build and published prior to being consumable.

Change-Id: I1bcb20ab061fa639cc1116d2fe0bbf4c5a4464bc
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-06-27 13:49:33 +00:00
Chuck Short a91d72db4a Drop check for LVM thinpool name
On more recent versions of LXD, storage.lvm_thinpool_name
is no longer returned in the configuration data when a
thinpool is created.

Change-Id: I3e9aa4158fd4f23afee02d5ee6ad7296e8f5e505
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-06-27 09:48:53 +01:00
Paul Hummer 0e87f8dff4 Rename block-device -> block-devices
Add support for block-devices, but still only accept one block device.

Add tests for parsing the device block list.

Change-Id: I78fe3b9e617a7da75145a2695bee312cf3685246
2016-04-18 21:21:48 +01:00
Jenkins 0ed13c080a Merge "Add support for zfs in the charm." 2016-04-13 16:43:14 +00:00
Paul Hummer d9b7157396 Add support for zfs in the charm.
Change-Id: I6df55aee1c814ba44a30ac73a48ce95073e1a4ad
2016-04-12 12:32:07 -06:00
Liam Young 7535ff1b74 Charmhelper sync before 1604 testing
Change-Id: I0ea7b401705b257a6e98b4166298973c4ed29b08
2016-04-12 14:08:07 +00:00
Paul Hummer fa6301fe9c Update tests to run on xenial.
Change-Id: I1952de7f90dd682691bf68f31d7723776c867b33

lol

Change-Id: I510ff9adf0d3c72b0ab6d96ffd586686733a5066
2016-04-11 14:38:22 -06:00
Paul Hummer 2b42780d52 Fix lxd thinpool creation.
Force creation of the lxd thinpool.
Re-enable lvm tests.
Ignore charm temp and pyc files.

Change-Id: I8887f3231e789ab58c548ba583740035151097aa

Fix lxd thinpool creation.

Force creation of the lxd thinpool.
Re-enable lvm tests.
Ignore charm temp and pyc files.

Change-Id: I8887f3231e789ab58c548ba583740035151097aa

Add simplejson to requirements.

Change-Id: I2bc3992a020892fbd5af139f538d6e2069496ef2

Add unit tests

Change-Id: Iaeaa554eb05e2dd015ea699741a3d4d378e7dbc1

Fix lint.

Change-Id: I5e8a2b94ed434cf5338eb3925cd3a7342cc85360

Unify both Makefile and tox calls.

Change-Id: I0c8b35e5d777ea221a34521a258e26c4029fdccd
2016-03-23 14:41:04 -06:00
Ryan Beisner 0437ef285b Disable Xenial test (lvm failing) 2016-02-18 21:27:22 +00:00
Ryan Beisner 41148549c8 Tidy lint 2016-02-18 19:58:48 +00:00
Ryan Beisner 54b243d91d Disable failing tests, pending triage 2016-02-18 19:33:40 +00:00
Ryan Beisner 01c498dbac Add lvm checks 2016-02-18 16:36:36 +00:00
Ryan Beisner 636af8358b Add lxc config validation 2016-02-18 15:45:58 +00:00
Ryan Beisner d77e1bcd94 Remove brittle rel data check for n-c-c 2016-02-18 05:19:58 +00:00
Ryan Beisner 02f02a623a Update n-c-c svc check 2016-02-18 04:26:56 +00:00
Ryan Beisner bda1bd2f17 Enable Xenial amulet test target 2016-02-18 03:23:00 +00:00