Default installation fails

Bug #1238660 reported by Stuart Bishop
8
This bug affects 1 person
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-relation-changed hooks fails with an exception:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/swift-storage-relation-changed", line 255, in <module>
    utils.do_hooks(hooks)
  File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/lib/utils.py", line 28, in do_hooks
    hook_func()
  File "/var/lib/juju/agents/unit-swift-proxy-0/charm/hooks/swift-storage-relation-changed", line 153, in storage_changed
    devs = utils.relation_get('device').split(':')
AttributeError: 'NoneType' object has no attribute 'split'

Revision history for this message
Michael Nelson (michael.nelson) wrote :

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:

{{{
cat >swift.cfg <<END
swift-proxy:
    zone-assignment: auto
    replicas: 3
swift-storage:
    zone: 1
    block-device: /etc/swift/storagedev1.img|2G
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.

Changed in swift-proxy (Juju Charms Collection):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.