Commit Graph

28 Commits

Author SHA1 Message Date
Frode Nordahl 65d66ecb58
Unpin flake8, fix lint
Change-Id: Id899936da7721fcc359e63db455a5349603fe559
2020-08-28 16:11:18 +02:00
Felipe Reyes d3bcd92616 Use register_configs() in openstack-upgrade action
CONFIGS global variable is no longer populated at load time instead is
expected to use register_configs() function as pause/resume actions do.

Change-Id: Id2504b40e09220c6cb6bb878727ffa181263e3f1
Closes-Bug: #1887483
Related-Bug: #1879537
2020-08-25 15:48:02 -04:00
Stamatis Katsaounis 16abd40985 Remove glance-registry in OpenStack Stein deployments
This patch removes glance-registry service when upgrading to
OpenStack Stein and later releases.

Second part of:
Change-Id: Ie6d618582cd5063738a965d36e7d766633e1a607

Change-Id: I5e644ed8dba809fd1ad5d628f32ea64d31799e52
Signed-off-by: Stamatis Katsaounis <skatsaounis@admin.grnet.gr>
2019-11-30 19:49:11 +02:00
Chris MacNaughton 35afe120af Add security-checklist action
Change-Id: Ie1f0dcc85c708d2e837d09c7472a35d5ffa7fd13
2019-03-14 16:49:11 +01:00
Alex Kavanagh 0353df7e28 Remove redundant path change and fix relative path change
Although this charm is rooted in 'hooks' (which is probably an error),
the actions were still using relative to root sys.path changes.  This
makes them absolute, which helps to tidy the path.  The charm should be
change to be rooted in the charm dir, and that requires more significant
changes to the unit tests.

Change-Id: I972f0a72a31ef313828a785ae1e30e0ecad427a6
2018-11-08 10:43:42 +00:00
Felipe Reyes 41a046ba82 Add charm's directory to syspath
charmhelpers lives in the charm dir and it needs to be added to the
syspath to allow the openstack-upgrade action find it. This wasn't
needed until commit b45cd2ae removed the symlink that was left in the
hooks/ directory for backward compatibility purposes.

Change-Id: I7be5d16359aa6c78c9241990c3d3b8bab4910538
Closes-Bug: 1802182
2018-11-07 18:51:03 -03:00
Liam Young 19aaffaa81 Update to run under Python 3
Updating charm to support execution under Python 3.

Change-Id: I1429d1c6b634959e0062a8e9f4bc615c58bf31e0
2018-08-01 14:11:56 +02:00
David Ames b45cd2ae74 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I21fdefe0aa0b019d5b211bb54d0a2fa9e38c2864
2018-05-11 14:29:27 -07:00
James Page bd7375104e 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: Ic9a74991973863b2cf61fc5368bbe3664af90ef4
2018-01-08 15:11:54 +00:00
James Page b5af23bd20 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: I929c0635f3e7c7545d654e33194a751d197c3ca5
2016-07-01 17:23:19 +01:00
Alex Kavanagh d4cf177cc5 Enhanced pause and resume for maintenance mode
Adds improved pause and resume unit to the charm such tha the
charm stays paused during maintenance operations.
Sync latest version of charm-helpers for maintenance mode.

Change-Id: I6e793744709b65c89afb6f0fc460f9d96755bf82
2016-03-18 10:18:56 +00:00
Alex Kavanagh 4647c41535 change pause/resume actions use (new) assess_status()
Implemented new is_paused() and assess_status() functions, and changed
the pause and resume actions to use them.  Changed existing and added new
tests to verify functionality.  Note changed any of the other status_set()
functions.
2016-01-12 15:25:56 +00:00
David Della Vecchia 2270691d34 merging upstream and implementing charmhelpers-based upgrade action 2015-10-06 18:37:08 +00:00
Alberto Donato 62e449c2b2 Fix service list. 2015-08-26 16:16:31 +03:00
Alberto Donato 28f275ea26 Drop sys.path mangling. 2015-08-25 17:23:26 +03:00
Alberto Donato 378d3df1a7 Add actions. 2015-08-25 15:28:29 +03:00
Alberto Donato 9850443aa6 Move charmhelpers to separate dir. 2015-08-25 15:26:22 +03:00
David Della Vecchia 45d4f2f764 Fixes formatting issue in config.yaml. Updated error message output to be more specific and helpful in action code. 2015-08-14 15:55:32 +00:00
David Della Vecchia 947be72d7e Fixed config directive typo in main hook file. Added corresponding unit test to catch this mistake in the future. Added outcome statements to all possible code paths. 2015-08-10 15:21:34 +00:00
David Della Vecchia 978a45c529 Made requested changes to the MP and updated tests. 2015-08-03 15:36:41 +00:00
David Della Vecchia 4710b03872 Fixing code quality issues to satisfy lint tests. 2015-07-22 20:23:26 +00:00
David Della Vecchia 94126a5d00 Fixed issues with config option action_managed_upgrade. Added conditional to upgrade action to check for git install and display error if so. Added passing unit tests for upgrade action. 2015-07-22 18:38:42 +00:00
David Della Vecchia db272cb39a Adding action_managed_upgrade config option and checking for it during action execution and config-changed hook. 2015-07-16 18:45:41 +00:00
David Della Vecchia 3177541d1c Adding config_changed hook fire after upgrade. Removing upgrade attempt from config_changed hook definition. 2015-07-10 21:04:20 +00:00
David Della Vecchia 0d1e20853a Adding openstack upgrade action 2015-07-10 11:49:41 -04:00
Corey Bryant 640b76f65e Move config_changed into try block 2015-04-15 16:29:59 +00:00
Corey Bryant ee06496530 Run config-changed hook after git-reinstall action installs from source 2015-04-13 23:47:47 +00:00
Corey Bryant 88012d92f9 Overall refresh to current install from source approach 2015-03-21 01:36:16 +00:00