What is the correct way to add relation between swift-proxy and swift-storage by juju
Adam Gandelman
adamg at canonical.com
Thu Feb 21 19:50:20 UTC 2013
On 02/21/2013 09:10 AM, Matthew Wedgwood wrote:
> On 02/21/2013 04:33 AM, Ray Wang wrote:> Hello all,
>> I'm trying to figure out what is the correct way to add relation
>> between swift-proxy and swift-storage by juju.
>> I found a link[1] which says
>>
>> $ juju add-relation swift-proxy:swift-proxy swift-storage:swift-proxy
>>
>> But I totally have no idea why add relation between
>> "swift-proxy:swift-proxy" and "swift-storage:swift-proxy"
> I think the reason for this one is that there are two possible relations between the charms. From the metadata:
>
> --- swift-proxy charm ---
> provides:
> swift-proxy:
> interface: swift
> [...]
> requires:
> swift-storage:
> interface: swift
> [...]
>
> --- swift-storage charm ---
> provides:
> swift-storage:
> interface: swift
> [...]
> requires:
> swift-proxy:
> interface: swift
> [...]
>
>
Which charm branch are you finding those? The interfaces were a problem
in the past but should now be tightened up and unambiguous. From
lp:charms/swift-proxy + lp:charms/swift-storage:
--- swift-proxy charm ---
provides:
object-store:
interface: swift-proxy
[....]
requires:
swift-storage:
interface: swift
--- swift-storage charm ---
provides:
swift-storage:
interface: swift
[...]
HTH
Adam
More information about the Juju
mailing list