charm-cinder:stable/17.02

Last commit made on 2019-04-19
Get this branch:
git clone -b stable/17.02 https://git.launchpad.net/charm-cinder

Branch merges

Branch information

Name:
stable/17.02
Repository:
lp:charm-cinder

Recent commits

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:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

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.

f2cac2b... by Ian Wienand

Replace openstack.org git:// URLs with https://

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.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I6003e8f342f9d8d6f016c674f2fa36033b98d8e2

996ec97... by Brin Zhang

Modify the spelling mistakes

While I was reading the code, I found some spelling mistakes
in the comments and corrected them here.

Change-Id: Ib847f484a883523cd330a517bdb719ec7ea7b32b
Closes-Bug:#1709830
(cherry picked from commit 2cad1d0de639f1a520b94d6204329e1dc6e8cee0)

a9a713f... by David Ames

Force DB Migrate on openstack-upgrade

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)

29fa255... by David Ames

Updates for stable branch creation

Set default branch for git review/gerrit.

Switch amulet tests to stable.

Switch to using stable charm-helpers branch.

Change-Id: I9fbc7aa8b3e9106f6316789450b007e02c44e9e6

3cb6629... by Jenkins <email address hidden>

Merge "Add actions for renaming volume host attr"

d21160a... by Liam Young

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

d1714de... by James Page

Fix volume_driver configuration < ocata

For releases prior to ocata, the volume_driver key must be
provided by the CephContext to ensure that a single driver
is set for cinder.

Specialize behaviour for >= ocata only, resolving issues with
pre ocata deployments with direct relations to ceph.

Change-Id: I9ff47853ab0726ed5c77c67f21f873349bc64f7b

8641e81... by Liam Young

Move backends into their own sections

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

*1 https://docs.openstack.org/admin-guide/blockstorage-multi-backend.html#enable-multiple-storage-back-ends

Partial-Bug: #1665272
Change-Id: I22c3e74b0874c051bee89e4609088facf95b4664

806d9a1... by David Ames

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.

Change-Id: I2dac0f2c7b3437c66be2c2f41822010ef19250ba
Closes-bug: #1665392