f9ed3cb...
by
OpenDev Sysadmins <email address hidden>
OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:
Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
The is_db_initialised function was stopping migrate_database from
performing the migration when running an openstack-upgrade. Add
upgrade kwarg to guarantee the migration runs.
Resync tox.ini to stable branch to fix issues with addressing
the Juju charmstore via the v5 API.
Change-Id: I4f71f34f752f49992774e3d44e9105d35ca32d80
Closes-bug: #1674457
(cherry picked from commit 0ccc67afcacad386940c88a2e58795c0b068ea7c)
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.
Using DEFAULT section to configure drivers is not supported since
Ocata. This change lists backends in enabled_backends.
Note: Using sectional config causes the os-vol-host-attr:host
volume attribute to change which invalidates existing volumes.
A subsequant change is needed to add an action for renaming
the host attribute of existing volumes *1
Cinder needs to install memcached on upgrade-charm
The cinder charm recognizes it needs memecached with
enable_memcached() but never installs the package when upgrading
from previous versions of the charm.
The upgrade-charm hooks was missing entirely. Add the hook and a
call to install packages for upgrade-charm.