charm-cinder/actions.yaml
Liam Young d21160a0d3 Add actions for renaming volume host attr
Add two new actions which are essentially wrappers around

cinder-manage volume update_host \
    --currenthost CURRENTHOST \
    --newhost NEWHOST

In previous versions of the charm if block-device is set or the
legacy ceph relation is used (as opposed to storage-backend relation)
then the configuration of those backends is done in the [DEFAULT]
section of the cinder.conf. As of Ocata that is no longer supported
and backends need to be listed in their own sections and referenced
via enable_backends parameter. This change in config results in a
change of host name and existing volumes need to have their metadata
updated to point at the new hostname.

Old Hostname: <unit-name>
New Hostname: <unit-name>@<backend section name>#<volume-backend-name>

New Action: volume-backend-name
Used for updating the host attribute of volumes to add the driver
name. This is needed after an upgrade to Ocata if there are existing
volumes which have been configured prior to multi-backends
being enabled.

New Action: rename-volume-host
Used for updating the host attribute of volumes. This action is
a lower level action then volume-host-add-driver and simply passes
the old and new hosts verbatim to cinder-manage.

Change-Id: I989074a3f41126aa57c514f7e18b887733bc18fe
Partial-Bug: #1665272
2017-02-22 09:48:08 +00:00

37 lines
1.5 KiB
YAML

pause:
description: Pause the cinder unit. This action will stop cinder services.
resume:
descrpition: Resume the cinder unit. This action will start cinder services.
git-reinstall:
description: Reinstall cinder from the openstack-origin-git repositories.
openstack-upgrade:
description: Perform openstack upgrades. Config option action-managed-upgrade must be set to True.
remove-services:
description: Remove unused services entities from the database after enabling HA with a stateless backend such as cinder-ceph.
params:
host:
type: string
default: unused
description: Hostname of the service to be removed.
rename-volume-host:
description: Update the host attribute of volumes from currenthost to newhost
params:
currenthost:
type: string
description: Current value of os-vol-host-attr:host volume attribute
newhost:
type: string
description: New hostname of the service
volume-host-add-driver:
description: Update the os-vol-host-attr:host volume attribute to include driver and volume name. Used for migrating volumes to multi-backend and Ocata+ configurtation.
params:
currenthost:
type: string
description: Current value of os-vol-host-attr:host volume attribute
driver:
type: string
description: driver name (as listed in enabled_backends)
volume-backend-name:
type: string
description: The backend volume name as shown by the volume_backend_name parameter in the driver section