charm-nova-compute/actions.yaml
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

12 lines
587 B
YAML

openstack-upgrade:
description: Perform openstack upgrades. Config option action-managed-upgrade must be set to True.
pause:
description: Pause the nova_compute unit. This action will stop nova_compute services.
resume:
description: Resume the nova_compute unit. This action will start nova_compute services.
hugepagereport:
description: Report on hugepage configuration and usage
security-checklist:
description: Validate the running configuration against the OpenStack security guides checklist
virsh-audit:
description: List all domains as virsh sees on the compute node