Commit Graph

29 Commits

Author SHA1 Message Date
Corey Bryant 06856f151c Ensure vgpu services restarted in package_upgrade action
Change-Id: I51382f70f019071f4442f717dbc749ff2e7b8202
2022-05-16 15:05:06 +00:00
Zuul da2142cca3 Merge "Add package-upgrade action" 2022-05-16 10:00:06 +00:00
Aurelien Lourot f723109911 Add nova-vgpu relation
Change-Id: Ie034a263c85c2909ce87ada632196772dbd265d2
2022-02-17 15:34:22 +01:00
Corey Bryant a61f5abc60 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: I88ccffad7af2d2e9cddc1f6514ebd07898e117dc
2022-01-08 01:28:04 +00:00
James Troup 034d6e36c2 Spelling fixes found by codespell.
Change-Id: I819aa04eef6cc72a24ecaf39a350b30015612165
2021-11-15 21:54:13 +00:00
Zuul 203140252c Merge " Add 'virsh-audit' action in nova-compute" 2021-06-11 14:36:41 +00:00
Martin Kalcok 5eea014dd5 Add action that returns number of running VMs on the unit.
Closes-Bug: #1911011
Change-Id: If9ae646bc91b6389876830843bbf905596963054
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/535
2021-05-12 09:44:17 +00:00
Martin Kalcok 3f00b8f509 Add action that returns list of registered compute nodes.
List contains only nodes registered to the same nova-cloud-controller
as the nova-compute service running on targeted unit.

Closes-Bug: #1911013
Change-Id: I28d1a9bd18b3a87fc31ff4bca5bfe58449cdae57
2021-04-01 08:45:11 +02:00
Martin Kalcok 38efefccdf Added action that returns nova-compute node name.
Closes-Bug: #1911012
Change-Id: Id9a7c3a675072ed4da3b9cb9fc997e70895205cb
2021-03-30 11:49:18 +02:00
Martin Kalcok ceb8a68868 Added actions that enable clean removal of nova-compute unit from model
List of added actions:
* disable
* enable
* remove-from-cloud
* register-to-cloud

More detailed explanation of the process added to the README.md

Closes-Bug: #1691998
Change-Id: I45d1def2ca0b1289f6fcce06c5f8949ef2a4a69e
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/470
2021-03-24 16:07:58 +01:00
Linda Guo 98fba99b34 Add 'virsh-audit' action in nova-compute
This new action to list instances as
  virsh sees them on the node (virsh
  list --all), sometimes this disagrees
  with what nova thinks

  Add a new zaza functional test class to
  avoid breaking the older versions

  To run the action, issue command:
  $ juju run-action nova-compute/0 virsh-audit --wait
  unit-nova-compute-0:
  UnitId: nova-compute/0
  id: "134"
  results:
    virsh-domains: |2+
       Id   Name                State
      -----------------------------------
       1    instance-00000001   running
       2    instance-00000002   running
  status: completed
  timing:
    completed: 2020-12-08 11:05:02 +0000 UTC
    enqueued: 2020-12-08 11:04:58 +0000 UTC
    started: 2020-12-08 11:05:01 +0000 UTC

  Closes-Bug: #1907409
  func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/472

Change-Id: I222a119199ada82186e2058402a31a40baf7fd7b
2020-12-17 08:37:04 +11:00
James Page 747fa2d68d Misc fixes for charm infra
Update pydev project definition to use python 3.

Drop upper bound on flake8.

Tidy misc lint across codebase with newer flake8.

Change-Id: I9637ac603cb3801c9e3ffa8c2b0897968d42ada5
2020-05-26 09:38:07 +01:00
Frode Nordahl b4e6d2c73b
Fix python shebang for hugepagereport action
Change-Id: I643524f3ebf3f26a0a1f2bff03f9516ef0269da8
Closes-Bug: #1859186
2020-01-10 15:41:35 +01:00
Alex Kavanagh dc8a6d0056 Fix for not restarting subordinate services on managed upgrade
This fixes the referenced bug by ensuring that the action does initiate
remote restarts for container scoped related units.

Change-Id: I149b753355b64113adfd8fd4eea972978b7ed20b
Closes-Bug:#1835557
2020-01-07 14:01:50 +00:00
Peter Sabaini 4a4908160d Fix hooks path for all actions
Insert the hooks directory at the beginning of sys.path in order to
make it take precedence over other entries, e.g. in the face of
conflicting charmhelpers packages.

Change-Id: I11e870fff3d590d2ac491292f3f2c68d84a67181
Closes-Bug: 1834254
2019-10-10 13:03:32 +01:00
Chris MacNaughton e9e8fb1988 Add security-checklist action
This new action applies the recommended checks in
https://docs.openstack.org/security-guide/compute/checklist.html
to verify security settings on the nova-compute
processes

Change-Id: I3c348e8f141baae89a47cb38809fe4933272a226
Depends-On: https://github.com/juju/charm-helpers/pull/274
2019-03-13 10:33:27 +01:00
Frode Nordahl f751b88746
Remove orphan symlink
Support for dfs was dropped in commit c4574ef859

Remove orphan symlink in the actions/ directory.

Change-Id: I4819ce8d1fdac1e918c12919b481e03e600c5d2d
2018-05-28 08:47:04 +02:00
Peter Sabaini bd9e853604 Add action to retrieve hugepage config
Return current hugepage usage and kernel cmdline
for static hugepage allocation

Change-Id: Ib34b2d7c3da5aacd117b19249be41bb95b91dfcd
Closes-Bug: #1734360
2018-05-16 22:22:46 +02:00
James Page c4574ef859 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: I44a7a92d5d4ae493bab4d5b81e9757cb12149a66
2018-01-10 11:39:21 +00:00
Author Name b24555e224 Update to run under Python 3
Updating charm to support execution under Python 3.

Change-Id: I9013860b5eefef05bee5b473e30217229fb6a739
2017-11-20 11:04:26 +00:00
James Page e63904cc49 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: I385f684581a74ae41b507ed9e9d17ef1e9fc5819
2016-07-03 16:37:37 +00:00
Alex Kavanagh 914e639b52 Enhanced pause/resume for maintenance mode
Implemented pause/resume with some services checking.
Charm-helpers sync to bring in pause/resume support.

Change-Id: I8bcd7464a606f6fc9db374be6004d851935e749a
2016-04-01 11:49:18 +00:00
David Della Vecchia 2e971f0ac8 refactoring do_openstack_upgrade to accept configs argument, bringing it in line with the other openstack charms 2015-10-06 15:38:12 +00:00
David Della Vecchia 0a4053c327 removing openstack-upgrade file that should be a symlink 2015-10-05 22:56:56 +00:00
David Della Vecchia 82d890ee99 re-ordering imports for debugging 2015-10-05 16:25:44 +00:00
David Della Vecchia 8697c9fb1b adding proper path 2015-10-05 14:55:59 +00:00
David Della Vecchia 26162963a3 Implementing new charmhelpers-based upgrade action 2015-09-28 21:24:44 +00:00
Corey Bryant 79fec86599 Move config_changed into try block 2015-04-15 16:42:11 +00:00
Corey Bryant 621b671521 Deploy from source 2015-04-15 14:21:42 +00:00