Commit Graph

16 Commits

Author SHA1 Message Date
Corey Bryant ea6ad355bd Add package-upgrade action
The package-upgrade action performs package upgrades for the current
OpenStack release.

The code path used is similar to the openstack-upgrade action, with the
difference being that package-upgrade will not execute if an openstack
upgrade is available (based on the openstack-origin setting).

This change includes a charm-helpers sync.

Change-Id: I7a36e0f5f47423ae8601d6ca86aa0fe311ecb735
2023-05-26 16:55:30 +01:00
Billy Olsen 52145181c8 Force resolve configs after openstack-upgrade action
Force resolve the global configs option after an openstack upgrade
action is run but before the config_changed hook is run. This ensures
that the global CONFIGS values are updated to the appropriate templates
before rendering the update config.

Change-Id: Id8ed2f6d60cf79e1360ca7587aa771ffbe1af9aa
Closes-Bug: 1928853
2022-03-14 12:12:06 -07:00
Alex Kavanagh 5dd04dac31 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: I179fd55a49bf07515e4fad64dd0a4719b58ac4ca
2020-09-27 19:45:00 +01:00
Alex Kavanagh 851821ff39 Fix CONFIGS=None issue with action openstack-upgrade
When the CONFIGS was made lazy in the charm, unfortunately, some of the
work wasn't carried through correctly to the openstack-upgrade action
code.  This patch corrects that.  Tested manually as okay.

Change-Id: I095613ef2eca62da5fae5462e76fa83926d2e80a
Closes-Bug: #1869865
2020-03-31 15:29:14 +01:00
Drew Freiberger f7ef6a2af6 Add resolve_CONFIGS to action-managed-upgrade
In change-id I08a847abe7db22a11860f359442e1e8945585466 which
addresses bug #1844325, CONFIGS must be loaded by any function
needing to import and use CONFIGS.  When running openstack-upgrade
via juju actions, CONFIGS = None causing traceback when running
configs.set_release(new_release).  This change provides the
CONFIGS resolution to enable action managed upgrades.

Change-Id: I9258d798f9d6d75822cd5446ee039308a43da867
Closes-Bug: #1851943
2019-12-18 10:04:02 -06:00
Chris MacNaughton 865e961067 Add security-checklist action
Change-Id: Ib9376aef02e1c8a53098a8bf6942cc71d78ea45d
2019-03-13 10:11:25 +01:00
Alex Kavanagh eca37a1dad Update charm to PY3 only code
This change upgrades the charm to PY3 only mode.
Note the changes to charm-helpers has also been made to support
Apache auditing code in PY3.

Change-Id: Idd347de5818ec57cb05f38170fe0d6536157a0da
2018-10-02 12:11:08 +01:00
Frode Nordahl 041a479d4d
Remove orphan symlink
Support for dfs was dropped in commit b4019e45bf

Remove orphan symlink in the actions/ directory.

Change-Id: Ie353de9da422a863e53a92983d9819c324761667
2018-05-28 08:48:18 +02:00
James Page b4019e45bf Remove deploy from source support
Drop support for deployment from Git repositories, as deprecated
in the 17.02 charm release.  This feature is unmaintained and has
no known users.

Change-Id: I19732b50483ab7284723f847f182fd1cfa67e425
2018-01-08 15:09:53 +00:00
James Page d1b64ef2b4 Re-license charm as Apache-2.0
All contributors to this charm have agreed to the switch
from GPL v3 to Apache 2.0; switch to Apache-2.0 license
as agreed so we can move forward with official project status.

Change-Id: I5e55c2dc9e9f911c8113fab09c6f8c89c86ec94a
2016-07-03 17:40:18 +01:00
Liam Young 31ab6f77ee Add pause/resume actions and sync charm-helpers
Adds pause and resume unit to the charm such that the
charm stays paused during maintenance operations.

Change-Id: I0b7185b5f865167b30b5c56ba4e133e049f7233d
Partial-Bug: 1558642
2016-03-29 07:20:36 +00:00
David Ames 495c515338 Do not use register_configs import CONFIGS directly 2015-09-23 07:37:57 -07:00
David Ames 1a977aca71 Specifically call config_changed which has the restart_on_change decorator 2015-09-21 11:28:33 -07:00
David Ames dfb5ea47b0 Action OpenStack upgrade 2015-09-14 13:23:58 -07:00
Corey Bryant 7bd54cbb9a Move config_changed into try block 2015-04-15 16:46:51 +00:00
Corey Bryant c7f65cc52f Deploy from source 2015-04-07 13:58:41 +00:00