Merge lp://qastaging/~andreserl/charms/quantal/mysql/ceph-support into lp://qastaging/~openstack-charmers/charms/quantal/mysql/hacluster-support
Proposed by
Andres Rodriguez
Status: | Merged |
---|---|
Merged at revision: | 101 |
Proposed branch: | lp://qastaging/~andreserl/charms/quantal/mysql/ceph-support |
Merge into: | lp://qastaging/~openstack-charmers/charms/quantal/mysql/hacluster-support |
Diff against target: |
1100 lines (+474/-362) 18 files modified
config.yaml (+14/-12) hooks/ceph.py (+108/-0) hooks/common.py (+2/-2) hooks/config-changed (+1/-4) hooks/drbd.py (+0/-130) hooks/ha-relations (+236/-187) hooks/install (+2/-1) hooks/master-relation-changed (+1/-1) hooks/monitors.common.bash (+1/-1) hooks/shared-db-relations (+19/-4) hooks/slave-relation-broken (+2/-2) hooks/slave-relation-changed (+2/-2) hooks/upgrade-charm (+17/-1) hooks/utils.py (+61/-0) metadata.yaml (+2/-0) revision (+1/-1) templates/ceph.conf (+5/-0) templates/mysql.res (+0/-14) |
To merge this branch: | bzr merge lp://qastaging/~andreserl/charms/quantal/mysql/ceph-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Page | Approve | ||
Review via email: mp+148820@code.qastaging.launchpad.net |
Commit message
This branch removes support for DRBD and adds support for Ceph.
To post a comment you must log in.
1) ceph-relation- changed
Should figure out if mysql is already running on ceph rbd and not stop, start mysql.
Just checking for the device presence should be enough.
The rbd kernel module will pickup changes in /etc/ceph/ceph.conf automagically.
2) Upgrade
The charm needs to move /var/lib/ juju/*. passwd /var/lib/mysql on upgrade.
3) drbd.py
Drop as no longer used.
4) /etc/mysql/ debian. cnf
Also needs to be synched from master server as contains debian sys maintenance password for upgrades.
5) shared-db-relations
The is_clustered/ eligible_ leader check is to complicated - the eligible leader check should be dealing with the is_clustered bit anyway:
if not utils.eligible_ leader( ):
utils. juju_log( 'INFO',
'MySQL service is peered, bailing shared-db relation')
return
This should be enough - am I the leader whatever the context? no - OK bail!
6) config.yaml
vip:
description: "Virtual IP to use to front keystone in ha configuration"
type: string
default: None
This is inconsistent with the rest of the charms which define this; I'd prefer if you dropped the 'default: None' and just checked for the vip like this:
if 'vip' in config:
...