swift-storage-relation-broken hook not implemented
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Swift Storage Charm |
Triaged
|
Low
|
Unassigned | ||
swift-storage (Juju Charms Collection) |
Invalid
|
Low
|
Unassigned |
Bug Description
Swift-storage charm lacks a hook to remove-relation to swift-proxy. When trying, the swift-storage unit logs:
2015-07-27 20:09:31 INFO juju.worker.uniter uniter.go:480 running "swift-
2015-07-27 20:09:31 INFO juju.worker.uniter context.go:260 skipped "swift-
2015-07-27 20:09:31 INFO juju.worker.uniter uniter.go:497 skipped "swift-
2015-07-27 20:09:31 INFO juju.worker.uniter uniter.go:505 committing "relation-departed" hook
2015-07-27 20:09:31 INFO juju.worker.uniter uniter.go:520 committed "relation-departed" hook
2015-07-27 20:09:31 INFO juju.worker.uniter uniter.go:480 running "swift-
2015-07-27 20:09:31 INFO juju.worker.uniter context.go:260 skipped "swift-
2015-07-27 20:09:31 INFO juju.worker.uniter uniter.go:497 skipped "swift-
2015-07-27 20:09:31 INFO juju.worker.uniter uniter.go:505 committing "relation-broken" hook
2015-07-27 20:09:31 INFO juju.worker.uniter uniter.go:520 committed "relation-broken" hook
And the relationship remains. The swift-proxy charm does have the necessary hooks.
Changed in charm-swift-storage: | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in swift-storage (Juju Charms Collection): | |
status: | Triaged → Invalid |
Looking briefly at what's done in the relation- joined/ changed hooks, it looks like all the relation-broken hook needs to do it remove the files at:
- /etc/rsync- juju.d/ 050-swift- storage. conf swift.conf
- /etc/swift/
Would that match your expectations?