Comment 3 for bug 1409698

Revision history for this message
Liam Young (gnuoy) wrote :

Reproduced with this bundle an then adding a ceph unit

openstack-services:
  series: trusty
  services:
    landscape-client:
      charm: landscape-client
    ceph:
      charm: ceph
      num_units: 3
      constraints: mem=1G
      options:
        monitor-count: 3
        fsid: 6547bd3e-1397-11e2-82e5-53567c8d32dc
        monitor-secret: AQCXrnZQwI7KGBAAiPofmKEXKxu5bUzoYLVkbQ==
        osd-devices: /dev/vdb
        osd-reformat: "yes"
        ephemeral-unmount: /mnt
  relations:
      - [ "landscape-client:ceph-client", "ceph:client" ]

juju-deployer -c ceph.yaml
juju add-unit ceph

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