On 07/06/14 00:29, Andreas Hasenack wrote: > On Fri, Jun 6, 2014 at 7:39 AM, Tim Penhey <tim.pen...@canonical.com > <mailto:tim.pen...@canonical.com>> wrote: > > options: > provider: ec2 > key: <my key> > endpoint: WHAT_GOES_HERE??? > secret: <my secret> > > > > For ec2, it's like https://ec2.us-west-2.amazonaws.com (adjust for your > region). > > For openstack, it's keystone.
OK, finally got back around to trying to get postresql working with the storage subordinate and the block-storage-broker. But adding the relations causes the following error (I hope this stack trace is shown better for you than me): INFO juju-log block-storage:2: Validated charm configuration credentials have access to block storage service INFO block-storage-relation-changed Traceback (most recent call last): INFO block-storage-relation-changed File "/var/lib/juju/agents/unit-block-storage-broker-0/charm/hooks/block-storage-relation-changed", line 144, i05:07 INFO block-storage-relation-changed hooks.execute(sys.argv) INFO block-storage-relation-changed File "/var/lib/juju/agents/unit-block-storage-broker-0/charm/hooks/charmhelpers/core/hookenv.py", line 381, in 07 INFO block-storage-relation-changed self._hooks[hook_name]() INFO block-storage-relation-changed File "/var/lib/juju/agents/unit-block-storage-broker-0/charm/hooks/block-storage-relation-changed", line 128, i06-26 08:05:07 INFO block-storage-relation-changed volume_label=volume_label) INFO block-storage-relation-changed File "/var/lib/juju/agents/unit-block-storage-broker-0/charm/hooks/util.py", line 159, in attach_volume INFO block-storage-relation-changed volume_id = self.get_volume_id(volume_label) INFO block-storage-relation-changed File "/var/lib/juju/agents/unit-block-storage-broker-0/charm/hooks/util.py", line 93, in get_volume_id INFO block-storage-relation-changed volumes = self.describe_volumes() INFO block-storage-relation-changed File "/var/lib/juju/agents/unit-block-storage-broker-0/charm/hooks/util.py", line 83, in describe_volumes INFO block-storage-relation-changed return method(volume_id) INFO block-storage-relation-changed File "/var/lib/juju/agents/unit-block-storage-broker-0/charm/hooks/util.py", line 267, in _ec2_describe_volumes INFO block-storage-relation-changed volumes = command.main() INFO block-storage-relation-changed File "/usr/lib/python2.7/dist-packages/requestbuilder/request.py", line 182, in main INFO block-storage-relation-changed response = self.send() INFO block-storage-relation-changed File "/usr/lib/python2.7/dist-packages/requestbuilder/request.py", line 130, in send INFO block-storage-relation-changed data=self.body) INFO block-storage-relation-changed File "/usr/lib/python2.7/dist-packages/requestbuilder/service.py", line 204, in send_request INFO block-storage-relation-changed data, headers) INFO block-storage-relation-changed File "/usr/lib/python2.7/dist-packages/requestbuilder/service.py", line 264, in __log_and_send_request INFO block-storage-relation-changed self.auth(request) INFO block-storage-relation-changed File "/usr/lib/python2.7/dist-packages/requestbuilder/auth.py", line 249, in __call__ INFO block-storage-relation-changed signature = self.sign_string(to_sign) INFO block-storage-relation-changed File "/usr/lib/python2.7/dist-packages/requestbuilder/auth.py", line 265, in sign_string INFO block-storage-relation-changed req_hmac = hmac.new(self.args['secret_key'], digestmod=hashlib.sha256) INFO block-storage-relation-changed File "/usr/lib/python2.7/hmac.py", line 133, in new INFO block-storage-relation-changed return HMAC(key, msg, digestmod) INFO block-storage-relation-changed File "/usr/lib/python2.7/hmac.py", line 72, in __init__ INFO block-storage-relation-changed self.outer.update(key.translate(trans_5C)) INFO block-storage-relation-changed TypeError: character mapping must return integer, None or unicode google tells me that the python hmac function doesn't accept unicode, but I'm not sure where that is coming from. I have taken the precise charms for postgresql, storage, and block-storage-broker and deployed them on trusty for this. Anyone got suggestions? Tim -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju