On the new ceph/3:
root@juju-lytrusty-machine-4:/var/lib/juju/agents/unit-ceph-3/charm# ./hooks/mon-relation-changed
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
error: cannot read settings for unit "ceph/1" in relation "landscape-client:ceph-client ceph:client": settings not found
Traceback (most recent call last):
File "./hooks/mon-relation-changed", line 339, in <module>
hooks.execute(sys.argv)
File "/var/lib/juju/agents/unit-ceph-3/charm/hooks/charmhelpers/core/hookenv.py", line 528, in execute
self._hooks[hook_name]()
File "./hooks/mon-relation-changed", line 209, in mon_relation
notify_client()
File "./hooks/mon-relation-changed", line 227, in notify_client
client_relation_joined(relid)
File "./hooks/mon-relation-changed", line 297, in client_relation_joined
client_relation_changed(relid=relid)
File "./hooks/mon-relation-changed", line 306, in client_relation_changed
settings = relation_get(rid=relid)
File "/var/lib/juju/agents/unit-ceph-3/charm/hooks/charmhelpers/core/hookenv.py", line 49, in wrapper
res = func(*args, **kwargs)
File "/var/lib/juju/agents/unit-ceph-3/charm/hooks/charmhelpers/core/hookenv.py", line 314, in relation_get
return json.loads(subprocess.check_output(_args).decode('UTF-8'))
File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['relation-get', '--format=json', '-r', u'client:1', '-']' returned non-zero exit status 1
Reproduced with this bundle an then adding a ceph unit
openstack-services: client:
monitor- count: 3 1397-11e2- 82e5-53567c8d32 dc
monitor- secret: AQCXrnZQwI7KGBA AiPofmKEXKxu5bU zoYLVkbQ= =
osd-devices: /dev/vdb
osd-reformat: "yes"
ephemeral- unmount: /mnt client: ceph-client" , "ceph:client" ]
series: trusty
services:
landscape-
charm: landscape-client
ceph:
charm: ceph
num_units: 3
constraints: mem=1G
options:
fsid: 6547bd3e-
relations:
- [ "landscape-
juju-deployer -c ceph.yaml
juju add-unit ceph
On the new ceph/3: lytrusty- machine- 4:/var/ lib/juju/ agents/ unit-ceph- 3/charm# ./hooks/ mon-relation- changed client: ceph-client ceph:client": settings not found mon-relation- changed" , line 339, in <module> execute( sys.argv) juju/agents/ unit-ceph- 3/charm/ hooks/charmhelp ers/core/ hookenv. py", line 528, in execute _hooks[ hook_name] () mon-relation- changed" , line 209, in mon_relation mon-relation- changed" , line 227, in notify_client relation_ joined( relid) mon-relation- changed" , line 297, in client_ relation_ joined relation_ changed( relid=relid) mon-relation- changed" , line 306, in client_ relation_ changed get(rid= relid) juju/agents/ unit-ceph- 3/charm/ hooks/charmhelp ers/core/ hookenv. py", line 49, in wrapper juju/agents/ unit-ceph- 3/charm/ hooks/charmhelp ers/core/ hookenv. py", line 314, in relation_get subprocess. check_output( _args). decode( 'UTF-8' )) python2. 7/subprocess. py", line 573, in check_output ror(retcode, cmd, output=output) CalledProcessEr ror: Command '['relation-get', '--format=json', '-r', u'client:1', '-']' returned non-zero exit status 1
root@juju-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
error: cannot read settings for unit "ceph/1" in relation "landscape-
Traceback (most recent call last):
File "./hooks/
hooks.
File "/var/lib/
self.
File "./hooks/
notify_client()
File "./hooks/
client_
File "./hooks/
client_
File "./hooks/
settings = relation_
File "/var/lib/
res = func(*args, **kwargs)
File "/var/lib/
return json.loads(
File "/usr/lib/
raise CalledProcessEr
subprocess.