~chris-gondolin/charm-helpers/upstart-stop-start

« back to all changes in this revision

Viewing changes to charmhelpers/contrib/storage/linux/ceph.py

[xfactor973, r=1chb1n]  Add the final update_pool call in Ceph pool creation to set the replica count (bug 1565120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
                   self.name, str(self.pg_num)]
222
222
            try:
223
223
                check_call(cmd)
 
224
                # Set the pool replica size
 
225
                update_pool(client=self.service,
 
226
                            pool=self.name,
 
227
                            settings={'size': str(self.replicas)})
224
228
            except CalledProcessError:
225
229
                raise
226
230