Commit Graph

61 Commits

Author SHA1 Message Date
Corey Bryant 4e5659b51b Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic

Change-Id: I0f57eb5912bbb21e29f2f4b72dd137342c1cf3fe
2023-07-24 17:38:23 -04:00
Corey Bryant c8ea6746fe Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: Iaeabaaf9d59fc8b50a685ddc5c91f4cf4f2b748f
2023-03-08 12:47:59 +00:00
Corey Bryant 745a89a7c1 Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml
* add domain/project to auth section of yoga proxy-server.conf

Change-Id: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
Closes-Bug: #1988491
2022-09-06 16:23:07 +00:00
Alex Kavanagh 913c50116a Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga

Change-Id: I2bd113d92c603c429ba7323a713bb901ce0f4978
2022-04-06 10:15:20 +01:00
James Troup 82d8f3693c Replace reference to 'juju set' with 'juju config'.
Change-Id: I906f43b8222baabc2f95a3076ef7329a136102d1
2021-08-06 18:32:04 +01:00
Erlon R. Cruz 54583248b9 Bump default swift partition power
The partition power is used to build the swift rings. The total
number of partitions in the cluster will be 2^partition-power.
The recommend number of partitions of a cluster is a minimum of 100
per disk. Given that 2^8 is only 256, this number will lead to a sub-
optimal configuration even on test deployments, not to say on production
where disks can surpass the hundreds, and this will lead to a very
unbalanced cluster.

Closes-bug: #1931286
Change-Id: Ifdf2b96f27f18bc64549c40d8fa47474f8eb59c8
2021-06-08 14:07:58 -03:00
Arif Ali d21648e671
Policyd override implementation
This patchset implements policy overrides for swift-proxy.  It uses
the code in charmhelpers.

Closed-Bug: #1741723
Change-Id: Ic51ee5d181558b63dfd968c5b0c7d40760a5ac59
2020-07-01 11:00:49 +01:00
Corey Bryant 1b47612f87 Drop support of swauth for Train and later
swauth is no longer maintained as of OpenStack Train [1] so we
need to stop supporting it for OpenStack Train and later.

[1] https://opendev.org/x/swauth

Closes-Bug: #1851394
Change-Id: Ic2345427951a311477d6808077fb18b248036b82
2020-01-07 15:03:08 -05:00
Tytus Kurek 44df5db97d Swift Global Cluster
This patchset adds a support for Swift Global Cluster feature as
described at:

https://docs.openstack.org/swift/latest/overview_global_cluster.html

It allows specifying affinity settings as parrt of the deployment.
Moreover, the master - slave relation is introduced for the purpose of
rings distribution across proxy nodes participating in the Swift Global
Cluster.

Change-Id: I406445493e2226aa5ae40a09c9053ac8633a46e9
Closes-Bug: 1815879
Depends-On: I11b6c7802e5bfbd61b06e4d11c65804a165781b6
2019-12-16 14:51:56 +00:00
Tytus Kurek 1160493f3f Replicas per ring
This patchset implements 'replicas-account' and 'replicas-container'
charm options which can be used to set the desired number of replicas
per ring.

Change-Id: Ie7fa1b8c5619d0a5a278cd0eddaf1051de11f2a3
Closes-Bug: 1823696
2019-04-29 07:16:05 +00:00
Charles Dunbar 9bc11c8bbb Fix typo in config
Change-Id: Ia66653f99aca14a48e56d9dba59af5fd54171791
2018-07-18 16:11:56 -05:00
Shane Peters 3b2efe479f Add support for Static Large Objects
Adds the necessary filter to the swift-proxy config
to support Static Large Objects (SLO).

A new config value 'static-large-object-segments' toggles
SLO support and allows the user to control the maximum object
size when set to a value >0.

Change-Id: I42a88292775badb9fd70e5b99558d084ddcdc29f
Closes-Bug: 1753811
2018-05-04 09:56:45 -04:00
David Ames 4e9aa259b0 Update HAProxy default timeout values
The default HAProxy timeout values are fairly strict. On a busy cloud
it is common to exceed one or more of these timeouts. The only
indication that HAProxy has exceeded a timeout and dropped the
connection is errors such as "BadStatusLine" or "EOF." These can be
very difficult to diagnose when intermittent.

This charm-helpers sync pulls in the change to update the default
timeout values to more real world settings. These values have been
extensively tested in ServerStack. Configured values will not be
overridden.

Partial Bug: #1736171

Change-Id: I0aefed05d7b06162d21bb5ded216fc32935ef52e
2017-12-11 11:37:39 -08:00
James Hebden a11ff79fc7 Add statsd logging support to the swift-proxy charm
By default, statsd metrics can be sent by swift-proxy
for diagnostic and monitoring purposes, but are disabled
by default. This change exposes charm config settings
that allow it to be enabled by setting 'statsd_host'
to a non-empty value. 'statsd_port' and 'statsd_sample_rate'
are also supported for changing the destination port
and rate at which metrics are collected.

Closes-Bug: #1729771

Change-Id: I2d5cca233d48022073b5975c06c3da2b1896d8d9
2017-11-05 18:03:54 +11:00
James Page 9f2038d20a Improve support for telemetry collection
Add new amqp interface and configure ceilometermiddleware to
send telemetry notifications via RabbitMQ when swift-proxy is
related to the rabbitmq-server charm.

This change also includes some tidyup to include required
components in the swift pipelines (automagically added by swift
prior to this).

Change-Id: Ie3c5c87b31d805cb7e62fa47c322402f47dd0d33
Closes-Bug: 1321281
2017-08-08 14:10:41 +01:00
Edward Hope-Morley 450c12332f Cleanup config.yaml
Change-Id: I1e1bda5cc0837e7c6267126ac7b81a9517955731
2017-07-05 17:57:40 +01:00
Chris MacNaughton ce3f15310e Implement swauth
This change implements the alternative authentication system,
swauth in addition to adding an action to add users to swauth

Change-Id: Ib752cd3a2a58f6c8cb06119c6be595cfc07ddc9f
2016-09-23 09:12:43 -04:00
David Ames 570ef17e3d DNS HA
Implement DNS high availability. Pass the correct information to
hacluster to register a DNS entry with MAAS 2.0 or greater rather
than using a virtual IP.

Charm-helpers sync to bring in DNS HA helpers

Change-Id: I3e356a85c0893171ac8db26300e0530054fc93bd
2016-06-15 12:03:18 -07:00
Edward Hope-Morley 74b951b517 Add hardening support
Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks.
Also add new config option to allow one or more hardening
modules to be applied at runtime.

Change-Id: I7e6abb16d16d08575cad4f3a52b6fc54b3ac01c2
2016-03-24 11:36:26 +00:00
David Ames 1828de88f6 Fix lp:1522130 Add sane haproxy timeout defaults and make them configurable. 2015-12-03 15:06:22 -08:00
David Ames 75e2ba3c80 Action managed upgrade 2015-09-23 09:28:19 -07:00
Edward Hope-Morley 0906a21564 [trivial] Cleanup config.yaml
Partially-Closes-Bug: 1473426
2015-07-10 15:13:53 +01:00
Billy Olsen 8fb01d4087 Add unit test for public hostname. 2015-06-11 16:22:54 -07:00
Billy Olsen 28b4036694 Change config option to os-public-hostname 2015-06-03 11:29:42 -07:00
Billy Olsen 029afb3131 [wolsen,r=] Add support for overriding public endpoint addresses.
Adds in the config option for overriding public endpoint addresses
and introduces a unit tests to ensure that the override for the
public address is functioning correctly.

Closes-Bug: #1398182
2015-06-02 17:25:32 -07:00
James Page 1fbb862563 Tidy config descriptions 2015-04-20 12:19:04 +01:00
Seyeong Kim f666e53be2 add log configuration 2015-04-09 05:36:21 +00:00
Edward Hope-Morley 5cf9827d52 [trivial] adds missing ssl_ca config option 2015-04-08 15:25:58 +01:00
Brad Marshall 8443804cb0 [bradm] Add nagios_servicegroups config option 2015-02-19 15:25:19 +10:00
Liam Young 5f27ac6db8 [gnuoy,trivial] Fix charm proof warning 2015-02-04 15:28:08 +00:00
Liam Young 774e07aef9 Merged next charm in 2015-01-09 10:36:01 +00:00
Edward Hope-Morley 4038768f7c applied post-review changes 2014-12-09 15:18:08 +00:00
Edward Hope-Morley 56fe58cc6b [hopem,r=]
Adds support for changing the min_part_hours value on swift
rings post-install and resyncing rings across cluster on-demand.

Default min-hours is now 0 to allow any number of storage units
to join and enforce a rebalance and resync of rings across the
cluster.

Also refactored code and cleaned up style.
2014-12-01 18:37:56 +00:00
root bc5b9132c1 [bradm] initial nrpe checks 2014-10-29 22:30:36 -05:00
James Page 90ed3816b0 Drop use-https and associate configuration options 2014-10-02 21:31:24 +01:00
Edward Hope-Morley 3ba8942030 Fixed minor typo in config.yaml 2014-09-25 17:43:34 +01:00
Edward Hope-Morley 8f1971b7f3 [hopem]
Adds ipv6 privacy extensions deploy note to config.yaml
2014-09-25 17:32:22 +01:00
Hui Xiang 9f0a8fab99 Support swift for IPv6. 2014-08-13 14:46:10 +08:00
James Page b1fe7f878f Resync helpers, drop surplus vip config 2014-07-16 14:43:20 +01:00
James Page 7923f3e08f Add support for network awareness 2014-06-27 11:56:24 +01:00
Ryan Harper bd70af7296 Add config options for proxy-server.conf template. node-timeout and recoverable-node-timeout. For large swift/glance uploads, higher defaults are needed to prevent uploads from failing on real servers which are slower than VMs. 2014-06-03 20:38:25 -05:00
Andreas Hasenack 347d7a0a6a Change delay-auth-decision's type to boolean 2013-04-15 16:41:45 -03:00
Adam Gandelman 772e53ed78 Add option for delayed auth decision, defaulting to True. 2013-04-10 21:27:47 -07:00
James Page 5c422317f0 Tidy config.yaml 2013-03-12 13:33:31 +00:00
James Page 41db63fe69 Refactoring to split up utils, use common lib 2013-03-12 11:17:32 +00:00
James Page cefead2cd5 Restore use of legacy use-https flag 2013-03-08 10:13:50 +00:00
James Page b1c35ff2cb Updates for swift + SSL configuration 2013-03-04 14:36:33 +00:00
James Page cf350a5ae3 Default to HTTP, not HTTPS 2013-03-01 17:34:01 +00:00
James Page 1ce68ef6b5 Add swift-hash via config for ha 2013-02-27 17:04:55 +00:00
James Page 7bdde70565 First cut of HA support 2013-02-27 16:07:46 +00:00