install fails trying to create existing directory /var/lib/ceph/nss
Bug #1563667 reported by
Trent Lloyd
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceph-radosgw (Juju Charms Collection) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The charm creates /var/lib/ceph/nss in multiple places, and these hooks may re-run or run in a different order if there are errors during install or relation-
We should always check if the directory exists before creating it, or catch the exception.
Changed in ceph-radosgw (Juju Charms Collection): | |
milestone: | none → 16.04 |
Changed in ceph-radosgw (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
2016-03-30 04:44:47 INFO install Traceback (most recent call last): juju/agents/ unit-ceph- radosgw- 0/charm/ hooks/install. real", line 460, in <module> sys.argv) juju/agents/ unit-ceph- radosgw- 0/charm/ hooks/charmhelp ers/core/ hookenv. py", line 717, in execute hook_name] () juju/agents/ unit-ceph- radosgw- 0/charm/ hooks/install. real", line 133, in install NSS_DIR) python2. 7/os.py" , line 157, in makedirs
2016-03-30 04:44:47 INFO install File "/var/lib/
2016-03-30 04:44:47 INFO install hooks.execute(
2016-03-30 04:44:47 INFO install File "/var/lib/
2016-03-30 04:44:47 INFO install self._hooks[
2016-03-30 04:44:47 INFO install File "/var/lib/
2016-03-30 04:44:47 INFO install os.makedirs(
2016-03-30 04:44:47 INFO install File "/usr/lib/
2016-03-30 04:44:47 INFO install mkdir(name, mode)
2016-03-30 04:44:47 INFO install OSError: [Errno 17] File exists: '/var/lib/ceph/nss'