Commit Graph

39 Commits

Author SHA1 Message Date
Nobuto Murata 34311a62e9 Update worker-multiplier config description
Based on the change in charm-helpers:
https://github.com/juju/charm-helpers/pull/553

Related-Bug: #1843011
Change-Id: I9ea2edfacf7020768ab83fb603af1be0d42190fb
2021-03-05 12:38:32 +01:00
Aurelien Lourot b3ad0c1659 Fix boilerplate
With charm-tools>=2.8 the build output folder layout
has changed.
Also the linter will fail if the actions/ folder doesn't
exist.
Also put the right flake8 in the right *requirements.txt
file.

Change-Id: Iad6603ef9cecefddbe88766580112191c0472a35
2021-03-05 11:28:27 +01:00
David Ames 9d208bbe54 Update peers with API addresses
Create a default_update_peers which all API charms can use to publish
their admin, internal and public addresses to their peers.

Change-Id: Iacfdc2a0247f35d0bddfef47c9dd5d4cf66cd309
Closes-Bug: #1858132
Depends-On: I1977e2c9625952eb22a63be0da0d6979c9f23072
2020-03-25 14:17:31 -07:00
Ghanshyam Mann 51753bb79f [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template, tox.ini etc.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Id04e5bae7f096a5b02225e9def1d7d25731b057e
2020-03-24 17:19:01 +00:00
Frode Nordahl 4cc2bf0660
Add list of files to exclude on layer consumption
Change-Id: I9726801bda0653ae98c028913eb2d67a77970715
Closes-Bug: #1852424
2019-11-13 14:05:48 +01:00
Frode Nordahl 91ce3cea1d Remove TLS related helpers
We will add these further up the stack in ``layer-openstack``,
addition counterpart: I12f45236632b608e07fdd35d31b90b84ca92eb1f

Make some adjustments so the build job used solemnly for gate
testing can pass again.

Needed-By: I8a72acd451dd21e1b042b7f71f6d98e164737ac1
Depends-On: I12f45236632b608e07fdd35d31b90b84ca92eb1f
Closes-Bug: #1840899
Change-Id: I007275c041ca5465664a6b5d441e56c0316c405d
2019-08-30 16:06:12 +02:00
Camille Rodriguez 98c9190d60 Avoid pollution and false positives with tox.ini
- adapted testenv build to build in a tmp folder outside of src
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

Change-Id: I4d7814a557bb17afb932ddcff6c75f2a8f61f51e
2019-08-28 14:05:30 -04:00
OpenDev Sysadmins 3025060167 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:45:02 +00:00
Doug Hellmann a27fc0c760 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: I4aec49a43c2dd43cc90f4a59cc85ce928190738a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:39:35 -04:00
Doug Hellmann 8b491d6c3a 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: Ieb07012f348b7eb7ba7dee679cb44262e176d7cd
Story: #2002586
Task: #24317
2018-09-11 13:15:25 -04:00
Vu Cong Tuan aa5b9024f4 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: I6a09a0de534c2934e23337ca958554e7efd72b03
2018-06-28 08:23:55 +07:00
Liam Young 8562def023 Add vault cert support
Depends-On: If24621f2e72b66d58ea15cadeb458cadaf86a483
Change-Id: I95bcc7c683b084c9f92c5c94090914965a4c0174
2018-05-15 11:09:44 +00:00
David Ames 6c2a43e55b Update HAProxy default timeout values
The default HAProxy values are set in the layer-openstack template for
haproxy. Bring the layer-openstack-api default configuration in line
with the classic charms which do not set values in the config.yaml but
rely on the template. If any future changes are required, a change in
one place (layer-openstack) will affect all charms.

Change-Id: I045d66bf606ef57b066b4d6af1d4829eeed3bc93
2017-12-11 10:53:20 -08:00
Liam Young 31a1533a8c Add dns-ha option for OpenStack API charm
Add the dns-ha config option as part of the enablement of DNS HA
in OpenStack reactive API charms

Change-Id: I7864c1d8114a15943cbaec645710cf6baf0213ed
Partial-Bug: #1727376
Depends-On: I1a6cdeffa3aa8657b957ba68cd09face27f93b27
2017-10-26 21:39:46 +01:00
David Ames 3d6e2b6fe8 Add missing hostname config options
Only os-public-hostname was in the config.yaml. Add the missing
os-internal-hostname and os-admin-hostname to config.yaml. The rest of
the code DTRT with these config options.

Change-Id: I91b814db1ab5eef765abffea0f2f4359a9ff639d
2017-08-21 14:52:00 -07:00
Alex Kavanagh 83f22ed3e6 Add worker-multiplier config option for reactive charms
This change add a 'worker-multiplier' option to layer-openstack-api
which is used by a concomitant commit in the charms.openstack library.

The usage is identical to non-reactive charms as described in the
charmhelpers library.

Change-Id: Id4145ffaa622727523003015d7012ece2f0eae4f
2017-08-01 16:10:55 +01:00
Alex Kavanagh 0a163030b7 Rework the default handlers into layer-openstack-*
Due to commit 95493a4 in charms.reactive, the default handlers in
charms.openstack broke.  This is because charms.reactive no longer will
run handlers that are not in the hooks/ or reactive/ directory tree; the
default handlers in charms.openstack are in the library code, which is
pip installed into the module packages.

This patch, and related patches in charms.openstack and layer-openstack
enable the default handlers to function again.  Note that from a charm
author perspective, the API to default handlers is identical.  This is
merely an implementation change.

Change-Id: I38d46eaab3d64dd43166957a4aee01163bc00f5b
Partial-Bug: #1707685
2017-08-01 11:54:27 +01:00
Corey Bryant 8a063458a5 Fix typo in README.md
Change-Id: I45bf05229b6940b82ac6070f7ba6545a038686a7
2017-01-06 19:59:13 +00:00
Liam Young 4d51706679 Add SSL cert/key config options
Add config options for charm users to be able to set SSL key, ca and
cert

Add dummy tox target to placate CI

Change-Id: If7e39e3cf73a2341539443fed228cac0cdf49b9f
2016-07-12 19:09:37 +00:00
James Page 529fadb27b Add gitreview file for migration to openstack 2016-07-01 12:01:03 +01:00
James Page 408e3d5263 Update repo location 2016-07-01 10:23:57 +01:00
James Page c994d3c349 Add basic tox targets to verify layer build and mock out pep8 for now 2016-07-01 10:23:31 +01:00
James Page 9d8a6aa23c Add a README 2016-07-01 10:15:04 +01:00
James Page 86d37b6bbe Switch licensing 2016-07-01 10:10:46 +01:00
Liam Young cbe178c950 Merge pull request #4 from javacruft/tags
Switch categories -> tags
2016-06-22 10:26:26 +01:00
Liam Young b3b7e29df4 Merge pull request #3 from javacruft/add-extra-bindings
Add extra-bindings to metadata
2016-06-22 10:26:06 +01:00
James Page 9b0d906e05 Switch categories -> tags
Charm proof will raise a warning on this:

W: Categories are being deprecated in favor of tags. Please rename the "categories" field to "tags".
2016-06-22 10:24:27 +01:00
James Page 92d5915b90 Add extra-bindings to metadata 2016-06-21 14:42:09 +01:00
Liam Young 26f9d14f5c Merge pull request #2 from javacruft/add-ha-support
Add interfaces, layers and configuration for HA support
2016-06-21 11:36:46 +01:00
James Page 49b93b8bd7 Add interfaces, layers and configuration for HA support 2016-06-21 11:34:26 +01:00
James Page 05f85b6027 Merge pull request #1 from gnuoy/feature/ha-support
Add haproxy options
2016-06-10 11:47:14 +01:00
Liam Young 666da13915 Add haproxy options 2016-06-10 10:23:53 +00:00
James Page 3380fe7ebb Switch API to principle for parent layer 2015-12-14 17:33:33 +00:00
James Page d603f49fd6 Fixup metadata 2015-12-14 17:26:58 +00:00
James Page f7def8c6e8 metadata.yaml 2015-12-14 17:18:07 +00:00
James Page 1947f603d2 Tidy, drop surplus files 2015-12-14 17:15:31 +00:00
Liam Young ece3b913ec Specify interfaces for api charms 2015-12-14 15:53:25 +00:00
Liam Young 650c4416f7 Fixups 2015-12-14 12:43:16 +00:00
Liam Young 64072861fc Initial commit 2015-12-14 12:34:27 +00:00