~openstack-charmers/charms/trusty/ceph-radosgw/trunk

Viewing all changes in revision 75.2.1.

  • Committer: Trent Lloyd
  • Date: 2016-03-30 08:10:49 UTC
  • mto: This revision was merged to the branch mainline in revision 78.
  • Revision ID: trent.lloyd@canonical.com-20160330081049-mqd8gwrq53zmk5ct
Check if /var/lib/ceph/nss exists before creation

mkdir() throws an exception if the directory already exists, so we should check
for it's existance before creation as hooks should be idempotent.

This occurred in practice when the install hook had to be re-run, following a
previous failure due to juju API timeout.  It would also occur if the keystone
relation was re-built, so that case is also fixed.

Change-Id: I4052cda5bb20f76ab592ed7817bdc1e5b5b2138d
Closes-Bug: #1563667

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: