From adcd89e6fd0173411d585aa1970594d6e5e79e4a Mon Sep 17 00:00:00 2001 From: Chris Holcombe Date: Thu, 14 Apr 2016 08:19:26 -0700 Subject: [PATCH] Charmhelpers Resync The fix to bug https://bugs.launchpad.net/charms/+source/glance/+bug/1565120 requires a resync of all charms that use the ceph charmhelpers code. Change-Id: Ied9d10ef9ffaac049caf525dc431da4e8e0d6358 --- .gitignore | 1 + hooks/charmhelpers/contrib/storage/linux/ceph.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 25d8aec..8521ed0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ bin tags *.sw[nop] *.pyc +.idea diff --git a/hooks/charmhelpers/contrib/storage/linux/ceph.py b/hooks/charmhelpers/contrib/storage/linux/ceph.py index 1b4b1de..b9e9ede 100644 --- a/hooks/charmhelpers/contrib/storage/linux/ceph.py +++ b/hooks/charmhelpers/contrib/storage/linux/ceph.py @@ -221,6 +221,10 @@ class ReplicatedPool(Pool): self.name, str(self.pg_num)] try: check_call(cmd) + # Set the pool replica size + update_pool(client=self.service, + pool=self.name, + settings={'size': str(self.replicas)}) except CalledProcessError: raise