Commit Graph

187 Commits

Author SHA1 Message Date
Zuul 7b1a5ec19f Merge "Enable bionic/stein and disco/stein functional tests" 2019-04-25 13:14:53 +00:00
Frode Nordahl 07e40a2927 Enable bionic/stein and disco/stein functional tests
Change-Id: I1e95d131193225048683690d2d80012469bb64d7
2019-04-24 15:47:47 +00:00
melissaml 5bf4abf5b9 [Trivial Fix] delete dumplicate words utils.py
Change-Id: I3eebcde748ecf7795219f6a695b114629901c6a2
2019-04-24 15:44:56 +00:00
Zuul 2e1fc7090b Merge "Fix detection of already initialised lxc storage pool" 2019-04-24 13:20:29 +00:00
Alex Kavanagh 4bf72620c3 Fix detection of already initialised lxc storage pool
The related bug was caused because the charm did not detect when
the lxc storage had already been set up using the `lxc storage`
command which is used in the 3.x series, rather than the old way
with the 2.x series.

Also fixes issue on xenial where linux-image-extra-* has been renamed to
linux-modules-extra-* from from -4.4.0-145-generic onwards.  Otherwise,
the install fails on xenial.

Change-Id: If8bdad6f5641ee21fc7860dceeb4c3facbaecc76
Closes-Bug: #1825393
2019-04-23 21:35:42 +01:00
OpenDev Sysadmins 820da96142 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:32:27 +00:00
Zuul 77e3b68731 Merge "Update series metadata" 2019-04-08 10:31:42 +00:00
Chris MacNaughton 47cd8e8f28 Sync charm-helpers to enable Ubuntu Disco
Change-Id: Ifebdc397e14aa67b0e5d00e1c86592b4e14b6088
2019-04-05 17:14:59 +02:00
Frode Nordahl d785c4c1df Update series metadata
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata.  Dev release tests are enabled separately
because of chickens and eggs.

Change-Id: Id14e77f4b03c1324b0fff305476672b55d607109
2019-04-05 07:56:23 +02:00
Chris MacNaughton ade8687ad8 Sync charm-helpers for Stein release
As a part of the Stein release, we need to ensure
that charmhelpers is up to date.

Change-Id: I322710380622515e279b5f1c7cdbddfe7d7d3140
2019-04-04 10:24:06 +02:00
Sahid Orentino Ferdjaoui 6d0022b967 update readme to refer 'juju config' + fix report bug link
Change-Id: I6a3e0318470024ec82c5433838b9f94a0dbdfbea
Closes-Bug: #1769763
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-03-11 15:02:40 +00:00
Pete Vander Giessen 21335bc211 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Ifcfd80384205072c3c195e2a1261e788be4d0cd6
2019-03-07 17:11:50 -05:00
Ryan Beisner 2996db663f
Update pre-install hooks to fail on error
The pre-install operations may fail, yet that failure is not
elevated to the user. This masks the failure and makes early
package install issues difficult to troubleshoot.

If the basic pre-install script fails, the charm should not
proceed to later hooks as the requirements may not be met.

Hashbangs for bash should specify -e (errexit) on all of the
pre-install bash scripts.

Change-Id: I6178e2cb6665b7a4bdbe66a63b29616067932352
Closes-bug: #1815243
Partial-bug: #1815231
2019-02-08 15:52:20 -06:00
Corey Bryant 0cc0325d85 Sync charm-helpers
Change-Id: Ie4af48e8a8c44e5a5c3f90ce7ee0529ada0351c3
2019-01-11 14:37:54 +00:00
Zuul 8f62a48501 Merge "Dumplicate words was deleted in config.yaml" 2019-01-09 10:38:30 +00:00
Zuul 25b2e6be99 Merge "[Trivial Fix] delete dumplicate words config.yaml" 2019-01-09 10:29:58 +00:00
Zuul cdc86c0596 Merge "fix typos in the docstring" 2019-01-09 09:24:49 +00:00
Corey Bryant c4bc780f60 Sync charm-helpers
Change-Id: I33aea91461d6122d1c45b147544c4ab3247b21a7
2019-01-08 15:17:54 +00:00
inspurericzhang ac3e827f0d [Trivial Fix] delete dumplicate words config.yaml
Although it is trivial mistakes, it affects reading.

Change-Id: I5226a9604c30d440a6f3ba99bef6b4fd63cd6438
2019-01-07 11:24:45 +08:00
zhouxinyong 9d7ce0ba91 Dumplicate words was deleted in config.yaml
Change-Id: If37d26c9408f3e00b7ed5cb23eacdb4416df34c3
2019-01-07 09:09:48 +08:00
melissaml e046a78f0b fix typos in the docstring
Change-Id: I14734341d46afc21910f468480403fbd27f10eb6
2018-12-22 03:54:25 +08:00
Zuul bb95b67df6 Merge "Sync charm-helpers" 2018-11-08 15:49:59 +00:00
Zuul f8031dc0f7 Merge "Update func tests and sync charm-helpers" 2018-11-08 11:06:23 +00:00
Ryan Beisner c2ced81ad6
Sync charm-helpers
Change-Id: I04fd37042b1510193a9b2f50c36cf97d880813cc
2018-11-07 15:34:52 -06:00
Ryan Beisner ff0ee580b8 Update func tests and sync charm-helpers
dev-basic-cosmic-rocky stays due to:
https://bugs.launchpad.net/charm-lxd/+bug/1801349<Paste>

Change-Id: I4d00957e8092b1fefc71e337237aefb38b292914
Related-Bug: #1801349
2018-11-06 13:13:44 +00:00
Doug Hellmann e2a5aec2cd
fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ib824a32b3135ccc6a6d64f41f5172838677b0189
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 12:13:51 -05:00
Ryan Beisner 7b9ed48f9e
Fix lint in unit tests re: py3-first and py2 compat
Change-Id: Icdcbeaffac1b001dcffbbf9376ef2b90c373f170
2018-11-01 22:39:54 -05:00
David Ames 8692aa9fb6 Series Upgrade
Implement the series-upgrade feature allowing to move between Ubuntu
series.

Change-Id: I9efe27463471fdc99f794931ee03db0bd1e06fbd
2018-10-23 10:26:19 -07:00
Liam Young a624085341 Tests dir no longer need copy of charmhelpers
Charmhelpers is now installed via pip for unit tests so stop
'Make sync' from pulling it down.

Change-Id: Idab872a125d4e6be43db586e763b7bcd514fd730
2018-10-10 12:40:49 +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
Corey Bryant e88e36dc2c Switch default smoke test to bionic-rocky
Change-Id: I508d16837ef41d4b83b40e608ae75de11d212bdd
2018-09-24 19:28:40 +00: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
Doug Hellmann c3fd3ba7b0 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id896449f96742683def3844df36a4b5b0d69aee2
Story: #2002586
Task: #24317
2018-09-11 13:15:49 -04:00
Ryan Beisner 66857d4884 Update functional test definitions
Change-Id: If6944e42d9e3a97fab882bf61ea5cb30f9650db4
2018-07-18 18:36:39 -04:00
Ryan Beisner 17e5d9614d Update series metadata
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata.  Dev release tests are enabled separately
because of chickens and eggs.

Change-Id: I1a3c0cedca1c85641c2111baae44e75aad17fd15
2018-07-11 14:05:37 -05:00
Vu Cong Tuan 81e9f66574 Add py36 testenv
Python 3.6 is installed by default in Ubuntu 18.04 LTS.
Therefore, according to Transition Plan [1],
it'll be handy to have py36 testenv.

For more details, please check Python2 Deprecation Timeline [2]
and Python3-first Goal - Completion Criteria [3].

[1] https://wiki.ubuntu.com/Python/Python36Transition
[2] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html
[3] https://review.openstack.org/#/c/575933/8/goals/stein/python3-first.rst@42

Change-Id: Ied95af0b15b9adea4e942d01a4148d7faf28fda5
2018-06-28 08:18:08 +07: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
Corey Bryant d545eb292e Don't install criu for arm64/s390x prior to artful
The criu package doesn't exist for arm64/s390x prior to artful,
causing an install hook failure. Let's not attempt to install
it when that is the case.

Change-Id: If0cc517d9e607604e427aab385fabd8a9a193fdf
Closes-Bug: #1748235
2018-05-04 15:15:12 +00:00
Ryan Beisner c17459aeea Update tox.ini to stop using unverified package
As of pip 10.0, --allow-unverified is not permitted.

Use of the flag in this repo was previously used to force
installation of python-apt to accommodate certain unit tests.

The unverified package, python-apt, is no longer necessary
for test execution.

Related-Bug: #1760720

Change-Id: Ic1e032c4fde7987511dfce143084b12530af8d19
2018-04-03 16:24:02 +00: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
Ryan Beisner e06c233628 Sync charm-helpers
Change-Id: I2d870a1683ea5fdbebc4d8834c23812f90ce311e
2017-11-27 11:33:06 +00:00
Liam Young efd2dbcdd0 Install python-apt before hooks run
Previously this charm had relied on python-apt being installed by
the principle. As charms migrate to py3 this is no longer a safe
assumption and actually never was. This change ensures that
python-apt is installed before immediatly. This follows the same
pattern

Change-Id: I21ca95a9f2e410a52a7b64c99fad85749d52473a
2017-11-27 09:00:36 +00:00