Comment 2 for bug 1020635

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: cannot store yaml in relation settings

[zk: localhost:2181(CONNECTED) 38] get /relations/relation-0000000005/settings/unit-0000000001
monitors:
  monitors:
    mysql: {basic: null}
    nrpe:
      mysqld:is
        args: {args: '-c 1: /usr/sbin/mysqld', command: check_procs}
        name: MySQL Running
  version: '0.1'
private-address: ip-10-248-6-102.us-west-2.compute.internal

cZxid = 0x613

This seems wrong. We have interpreted the yaml as just an extension of the yaml, where users will expect it to just be another string of bytes.

I suspect that somewhere along the way this confuses other pieces of the code which assume only unstructured strings will come out of the relation settings.

If you deploy these:

lp:~clint-fewbar/charms/precise/mysql/add-monitors
lp:~clint-fewbar/charms/precise/nagios/add-monitors

And relate them with the add-monitors relation, the backtrace happens in nagios's unit agent.