Commit Graph

82 Commits

Author SHA1 Message Date
OpenDev Sysadmins dd0aab7599 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:00 +00:00
Ryan Beisner 31954eb8de
Retire project
Leave README around for those that follow.

http://lists.openstack.org/pipermail/openstack-discuss/2019-February/003186.html
http://lists.openstack.org/pipermail/openstack-discuss/2018-November/000057.html

Change-Id: Iaaadef005d545c4e8234d11f6f8f11b3184efaa3
2019-02-27 10:31:07 +01:00
lijunjie 4b4d0dd922 Fix the misspelling of "openvswitch"
Change-Id: Ie1954081e932d708c7700a3f48b46314d9429c57
2018-12-27 16:36:30 +08:00
Zuul b1b6594e3d Merge "fix tox python3 overrides" 2018-10-12 10:52:30 +00:00
Ryan Beisner 1588111de8 Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Ief725b4464c3fa4fb17b60ecd3680c7e55305a9c
2018-10-04 16:22:19 -05:00
Doug Hellmann 87456700a5 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: I954643e47acc836ae82ab70bc286b65d3ac92217
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:40:04 -04:00
Liam Young d07c183e2b Pass all CS_ vars to tox env to pickup timeout
Change-Id: I38133ebd4f2064fa17c4baa43773f1311321023e
2018-09-20 11:18:47 +00:00
Doug Hellmann f6fa108754 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: I00eb414c591dbf6fb9682b256448c6831fed9cd2
Story: #2002586
Task: #24317
2018-09-11 13:17:21 -04:00
Ryan Beisner 97bb047009 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: I6cdd26814973b15f7c57b17039c95950ac1cbc68
2018-07-11 14:06:08 -05:00
Vu Cong Tuan fb53de70f0 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: I76f5923a03ec4539e07b061cd45ea739326903fd
2018-06-27 15:10:12 +07:00
Ryan Beisner 3d7dc0f298 Remove deprecated functional test targets
Change-Id: If1043f67406a262dd812e88c8788bce95fa16de7
2018-05-09 16:36:39 -05:00
Ryan Beisner 2705602eff 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: I22deb4616b7865f9fb4f621aeb74d49dc055471c
2018-04-03 16:24:50 +00:00
David Ames ac665b190e Rebuild to pull in charms.openstack
Pull in the fix for internal, public and admin certificates in
charms.openstack.

Change-Id: Ic5c421c8217996aa6263dd75f19b2606c59c5dbe
Closes-Bug: #1750915
2018-03-06 16:29:18 +01:00
Ryan Beisner 5f02c3f730 Rebuild for sync charm-helpers
Change-Id: I312a3b6f02ae7bfd35f6091ad8ead2883d9e2e5a
2018-02-21 14:02:57 -06:00
David Ames 2a77d0285d Rebuild for sync charm-helpers
Change-Id: Ia54d7d2f3ee5ab4cc0085ac379a148aca72320a0
2018-01-19 10:19:36 -08:00
Ryan Beisner edd11b675b 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: Ic308d952be4668bd61edc533aad7b6ab8463fa26
2017-12-05 05:29:15 +00:00
Andrew McLeod b2a277f321 Enable xenial-pike amulet test
Make default func27-smoke xenial-pike

Change-Id: I223109ca90ce305dbec48a2df1beda3464c3809c
2017-11-21 12:01:27 +13:00
Ryan Beisner b8b13b9d74 Update requirements for git charmhelpers
Change-Id: Idd1687a381730059e87ee56fea8f2fa51828dc95
2017-10-03 04:34:35 +00:00
Ryan Beisner a5141eb737 Add Artful dev series metadata
Change-Id: Ic0b7dc1b26d8f6e24b38a4cfb9296888ab93c075
2017-09-26 15:14:01 -04:00
Ryan Beisner dd87b2c64c Remove deprecated series metadata and tests
Change-Id: I640627c924271ff1d57e4aff334384235cbb9d07
2017-08-23 09:54:21 -05:00
Andrew McLeod e8e94596fb Modify tests.yaml which specifies bundletester config params
with the following key:value pairs:

- reset_timeout: 600

Change-Id: I294bfcd361929f6ca9e0811153fdaa49f2f6e1e9
2017-08-09 14:27:09 -06:00
David Ames 71ba0a2d14 Update tests to use keystoneauth1
With keystoneauth1 sessions the service catalog search function,
url_for takes argument interface, no longer named endpoint_type.
This change updates tests to use this argument name.

Change-Id: I37eec176ba55eb0fe37e3500d4b7bcf712333d37
2017-07-24 14:57:22 -07:00
James Page ea33816c5d Updates for pike b1
Add amulet tests for pike, leave disabled for now.

Charm helpers changes will be picked up during rebuild.

Change-Id: I5389c816464bc030a3070613d649644b951e81f4
2017-05-25 14:00:38 +01:00
Alex Kavanagh 1890f3ce55 Use charms.openstack charmhelpers test_mocks
Every reactive charm that uses charms.openstack and implements unit
testing needs to mock charmhelpers, as otherwise the tests blow up.
This patch uses the mocking of charmhelpers in charms.openstack so that
a charm layer can just import test_mocks and charmhelpers will be mocked
out along with setting up a default
charmhelpers.c.o.u.OPENSTACK_RELEASES so that when an OpenStackCharm()
derived charm class won't fail on definition.

Change-Id: Id6537afcd24840a008a537543a15cfe5fd278886
Related-Bug: #1693017
Depends-On: I5ac40617ee30e5f421ec16fc7592177a5e6aa166
2017-05-25 12:59:27 +01:00
David Ames 0cc4a23736 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I04fdfedcc7ee540b83045dfc1dbdca0a0a5784de
2017-04-28 08:42:41 -07:00
Alex Kavanagh 86e6ca60ab Fix alphanumeric comparisons for openstack and ubuntu releases
- fix up code where the alpha comparisons are done
- refactor the code so that it uses, rather than fights,
  charms.openstack features.

Change-Id: Ie3b7fdd53ee73c700b8515dce4bd114cab72269d
Related-Bug: #1659575
2017-03-29 21:27:30 +01:00
David Ames 809093bed3 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.

Change-Id: I31ed9225c0f21574db93758153df9caf5b980b34
2017-03-09 14:34:54 -08:00
Ryan Beisner 35be5a7b00 Update readme
Change-Id: I288d8fcd481c2bd40729d30b758ab3f7b79d8f53
2016-12-08 21:05:21 +00:00
Ryan Beisner 755deaa442 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).

- Remove Precise charm series metadata if present.

- Remove Precise Amulet test definitions if present.

Change-Id: I65882a92c431ada8d7b1f83f4844f1180f74be4c
2016-12-06 09:39:07 -08:00
Ryan Beisner 270f66adcd Update tox.ini for py27 requirement
Reactive source charms are Python3-only, but have py27 unit tests
declared in project-config.

The Tox tool recently changed behavior.  It used to pass when a tox
target was missing commands.  Now it fails in that case.

This commit places a py27 no-op shim to allow gate tests to pass,
effectively restoring the original behavior for these py3x-only repos.

Change-Id: I547c0ae0ac93fe7a9321a8d4d9a9711190dd5249
Partial-Bug: 1642981
2016-11-28 18:21:18 -06:00
Ryan Beisner 8647170d04 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.

- Remove in-tree charm-helper test code as it is expressed in
  test-requirements.

Change-Id: If4980b5215c46fd52c17266bfa216bc17d7af28f
2016-10-13 06:09:25 -05:00
James Page 0057ad5f4c Update service plugins for Newton
OpenStack Newton removes lbaas (v1) support; switch to using v2
when deploying newton or later.

Change-Id: Ied28f27247af43896c9babd9143a60d281b8b5a0
2016-10-12 21:48:25 +01:00
James Page f5a375e9bc Correct state for odl-controller relation
Drop the use of 'access' from the odl-controller relation; the
interface only sets connected and available.

Also assess status after the neutron-api-plugin-subordinate is
connected, as it does not provide any state.

Change-Id: I7b1793779a516c963f7459749aa02dc9ecef603d
2016-10-07 11:46:07 +01:00
Liam Young 6154ecaa72 Switch charm to new format
This charm was written in the defunct services framework and before
the layers for Openstack had been written. This change
updates the charm to use the reactive framework and removes code which
now resides in a shared layer.

Change-Id: I103551103fde5f502634e3b3896d69626e0b876a
2016-09-28 07:54:22 +00:00
James Page 3c7a586af4 Add charm series data to metadata.yaml
This optimizes the publication process to the charm store, and
ensures that the charm code and version is consistent across all
supported Ubuntu series.

Change-Id: Idd92affe9e012d3a5ac8263b1af57ef91f9e1044
2016-09-14 09:43:07 +01:00
Ryan Beisner 5305846109 Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Also create empty dirs with .keep files where necessary.
Some classic charms have actions and/or lib dirs, and some
do not. In all classic charms, flake will now check those
dirs to ensure lint coverage of existing or future content.

Change-Id: I0389f21af14c94a9d1579b41e588a0a7152f0490
2016-09-09 19:22:11 +00:00
Ryan Beisner 4cae90cdda 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: If68e119a2adcc3701e765c18f2a138a2cee81d6e
2016-07-21 21:48:54 +00:00
Liam Young 2b3c0150f5 Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: I9d91beef64db2e34afa0d0ebd08330cc86d4bf44
2016-07-21 14:20:42 +00:00
David Ames 1f9aab417f Pre-release charm-helpers sync
To begin release testing get each charm up to date with lp:charm-helpers

Change-Id: I416274c165555be070fc07d567435c85e29473b2
2016-07-15 10:39:09 -07:00
James Page f915a437ca 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: I25aa2f328c69a333a8f9b6c409867724ca463267
2016-07-13 09:11:36 +01:00
James Page 931b4b8bb1 Add Amulet functional tests
Add amulet tests; these are currently a copy of the
tests from the openvswitch-odl charm but do provide
some base level of functional verification of the
charm.

Enable test targets for currently supported releases
of OpenStack and Ubuntu.

Change-Id: I8486e30297b7d5e4bc9649ef94a6e447315bfbd8
2016-07-12 10:08:10 +01:00
James Page baf633e1d0 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: I1cf9e7d748536f5e34abaf29dd635413b30ecb1f
2016-07-06 16:37:11 +01:00
James Page 1166ba580e Resync charm helpers
Add support for OpenStack Newton and Ocata.

Rework version detection code to just match on major version for
OpenStack projects using semantic versioning.

Provide fallback version detection based on major.minor versions
for swift packages.

Rework config-flags support helpers.

Fix is_ip function to correctly detect both IPv4 and IPv6 addresses.

Change-Id: Iace7e2b97a78ed8251cdec51fa748153e69525ad
2016-05-27 12:28:04 +01:00
James Page ea0e452d0c Resync charm-helpers
Avoid use of 'service --status-all' which is currently
broken on trusty for upstart managed daemons; the change
moves to detecting how the daemon is managed, and then
using upstart status XXX or the return code of service XXX
status to determine whether a process is running.

Fixes for IPv6 network address detection under Ubuntu
16.04 which changes the output format of the ip commands
slightly.

Update the version map to include 8.1.x as a Neutron
version for Mitaka.

Change-Id: I56b59eb52ee442342df4abec5110abd0cdab16e3
Closes-Bug: 1581171
Closes-Bug: 1581598
Closes-Bug: 1580674
2016-05-18 14:07:42 +01:00
Ryan Beisner 417ed8642b Fix pbr requirement
Change-Id: Id1b022b303b8dfccd4897be2e024dfb829631dec
2016-04-15 17:25:41 +00:00
Liam Young e751f713ae Charmhelper sync before 1604 testing
Change-Id: Iec427577cc760b56aa209425b1d57b664de4f4d0
2016-04-12 14:14:15 +00:00
James Page db2876e5b7 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: I8f2dd2a3875e2650ba2c419d630eae268472b737
2016-03-23 09:30:17 +00:00
Billy Olsen edfef7dd89 Use tox in Makefile targets
Modify the Makefile to point at the appropriate tox targets
so that tox and Make output can be equivalent. This involves
mapping the lint target to the pep8 target and the test target
to the py27 target.

Change-Id: Icf362e7e60844ea59a6d242c3507e9aadb1c3087
2016-03-15 20:13:05 -07:00
James Page 8790bc12d8 Resync charm-helpers
Also add missing testr configuratio and requirements files.

Change-Id: Ia03a87992cee207c1a8f773ebb21e26efe1a8ca1
2016-03-02 12:16:44 +00:00
uoscibot 31d1f16bc1 Adapt imports and metadata for github move 2016-02-29 10:47:58 +00:00