Default installation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
swift-proxy (Juju Charms Collection) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Trying to build a simple Swift installation to run some tests against:
juju deploy swift-storage
juju deploy swift-proxy
juju add-relation swift-storage swift-proxy
The swift-storage service gets setup, but the swift-proxy swift-storage-
Traceback (most recent call last):
File "/var/lib/
utils.
File "/var/lib/
hook_func()
File "/var/lib/
devs = utils.relation_
AttributeError: 'NoneType' object has no attribute 'split'
Hi Stuart. The error message could be better, but I'm pretty sure this is because you haven't defined a device (I hit the same error recently).
That is, if you do:
{{{ assignment: auto storagedev1. img|2G
cat >swift.cfg <<END
swift-proxy:
zone-
replicas: 3
swift-storage:
zone: 1
block-device: /etc/swift/
END
juju deploy --config=swift.cfg swift-proxy
juju deploy --config=swift.cfg swift-storage
juju add-relation swift-proxy swift-storage
juju add-unit --num-units 2 switf-storage
}}}
things should work.