Commit Graph

21 Commits

Author SHA1 Message Date
Edin Sarajlic c6f970673b Actions that expose various neutron resources
New actions:
  * show-routers
  * show-dhcp-networks
  * show-loadbalancers

Partial-Bug: #1916231
Closes-Bug: #1917401
Closes-Bug: #1917403
Closes-Bug: #1917405

Change-Id: Ie59c2a7d5c1ee9c51a0f7db4e8f38229812ac84a
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/611
2021-09-12 17:47:38 +02:00
Liam Young b3f6993f20 Implementation of deferred restarts
Add deferred restart actions and config.

Change-Id: I6aeceae10b7a25ba5bfd6f2cb07f510a9481d0ba
2021-04-09 12:54:15 +00:00
Frode Nordahl ea2e3bf24f Add cleanup action and OVS to OVN migration test
Add OVS to OVN migration at the end of the regular gate test. This
adds only 5-10 minutes to each job and we want to confirm this
works from focal-ussuri and onwards as this is the point where we
recomend our end users to migrate from OVS to OVN.

Do ch-sync.

Merge after https://github.com/juju/charm-helpers/pull/511

Change-Id: I506f499c8c506d999e79f223f03a58abc29b8746
Depends-On: Ifa99988612eaaeb9d60a0d99db172f97e27cfc93
2020-09-11 19:11:32 +00:00
James Page de30b2f73d Fix action managed upgrades
Use the resolve_CONFIGS function to resolve the current set
of CONFIGS for the charm, rather than directly referencing
the CONFIGS global variable which will not be initialized
during action invocation.

Change-Id: Ifd084c94c9808b49dda39bafed9345bfbf6aab81
Closes-Bug: 1876585
2020-07-22 14:04:50 +01:00
Alex Kavanagh 1890a97952 Modify paths to ensure that charms' charmhelpers is first
The pre-patch version of unit-testing tested the git-repo version of
charm-helpers instead of the version that was synced to the charm.

The git-repo version of charmhelpers is pip installed to obtain the
testing part of charm-helpers, for the unit tests.  Whilst this is a bug
(really), it was compounded in that - due to how the paths worked - the
unit tests' git version of charm-helpers was in the path first, and thus
all unit tests were performed using that version of charm-helpers, and
not the version actually synced into the charm.  This has led to all
sorts of 'odd' double mocking of config in the tests as there are
potentially two copies of charm-helpers (as was the case for py27).  A
further commit will undo that madness.

This patchset moves the charm synced version of charm-helpers earlier
into the path so it gets picked first when the modules are loaded.

Change-Id: Iff0566c52a283ff0cd2fc7707d981d8c47f3e6b2
2019-07-30 15:17:58 +01:00
Chris MacNaughton 59adca21e2 Add security-checklist action
Change-Id: I39b53cb049b84a9ccde91adebd5aec6ea7a8168f
2019-03-13 10:33:02 +01:00
Felipe Reyes 25200b5a16 Add charmhelpers to sys.path in first position for actions
This patch inserts the hooks directory in the first position to always
prefer that version over any other available in the system.

Change-Id: I8d78f0ef9e11f23224e893178c2cd37fdcc42671
Closes-Bug: 1802182
2018-11-13 09:45:50 -03:00
James Page 4da9fdd67c 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: I0abe07721bedfd8b80c7c590bc646abfc822bbfa
2018-01-12 10:26:42 +00:00
James Page b63f8687f9 Update for Python 3 execution
Refactor codebase and unit tests to default to execution
under Python 3.

Drop install shim as Python 3 is always present >= trusty.

Drop legacy dhcp and network reassignment code from charm as
a) this relies on a py3 neutronclient (not supported on older
releases) and b) this function was superceeded by the ha-legacy-mode
and then neutron router and network HA built in functionality.

Use charmhelper provided get_host_ip as this superceeds the in
charm version of this function.

Change-Id: I0b28bf0851d44e85b1e856cbd97b71099faa76ae
2017-11-16 11:19:58 -08:00
Liam Young ef90f88c5f 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: I2ee7c87549279b29a9cb2e4e6747953cd6825b79
Partial-Bug: 1558642
2016-04-10 06:54:31 +00:00
James Page 00f0edc70d refactor: Drop unsupported configurations and code
Includes dropping support for quantum, nvp plugin (renamed
nsx long ago) and generally refactoring the unit tests
around no longer having to deal with neutron and quantum in
the same codebase.

Drop support for database connections - these are no longer
required as all DB access is now via RPC to nova-conductor
or neutron-server.

Roll-up configuration file templates < icehouse, remove any
that are no longer required.

Refactor basic_deployment a bit as it was using the shared-db
relation to retrieve the n-gateway units private-address.

Change-Id: I22957c0e21c4dd49e5aa74795173b4fc8f043f55
2016-03-03 11:31:11 +00:00
David Ames 356754c94e Do not use register_configs import CONFIGS directly 2015-09-23 07:40:07 -07:00
David Ames ee552f63df Lint fix 2015-09-21 11:29:00 -07:00
David Ames 3ccb202136 Specifically call config_changed which has the restart_on_change decorator 2015-09-21 11:25:31 -07:00
David Ames 076d380171 Pass configs to do_openstack_upgrade 2015-09-15 14:09:40 -07:00
David Ames 88528acfe3 Get result of get_common_package 2015-09-15 13:43:05 -07:00
David Ames 73fa88cbe4 Action managed OpenStack upgrade 2015-09-14 13:34:33 -07:00
James Page 9d2711ac86 Rename charm to neutron-gateway including code 2015-05-07 10:27:07 +01:00
Corey Bryant 6f41aa84bc Move config_changed into try block 2015-04-15 16:46:22 +00:00
Corey Bryant f6ed4a92f7 Run config-changed hook after git-reinstall action installs from source 2015-04-14 00:48:39 +00:00
Corey Bryant 5d267c3f36 Deploy from source 2015-04-10 14:22:04 +00:00