As John said, the URI is unrestricted (intentionally so) -- this could be 
'mailto:s...@person.com' just as easily as a reference to another OpenStack or 
external service. Originally, the idea was that Loadbalancers would need to use 
a Container for TLS purposes, so we'd put the LB's URI in there as a 
back-reference 
(https://loadbalancers.myservice.com/lbaas/v2/loadbalancers/12345). That way, 
you could easily show in Horizon that "LB 12345 is using this container".

Registering with that POST has the side-effect of receiving the container's 
data as though you'd just done a GET - so, the design was that any time a 
service needed to GET the container data, it would do a POST to register 
instead - which would give you the data, but also mark interest. The 
registration action is idempotent, so you can register once, twice, or a 
hundred times and it has the same effect. The only tricky part is making sure 
that your service de-registers when you stop using the container.

--Adam


From: John Wood <john.w...@rackspace.com<mailto:john.w...@rackspace.com>>
Date: Tuesday, March 31, 2015 12:06 AM
To: Asha Seshagiri <asha.seshag...@gmail.com<mailto:asha.seshag...@gmail.com>>, 
openstack-dev 
<openstack-dev@lists.openstack.org<mailto:openstack-dev@lists.openstack.org>>
Cc: "Reller, Nathan S." 
<nathan.rel...@jhuapl.edu<mailto:nathan.rel...@jhuapl.edu>>, Douglas Mendizabal 
<douglas.mendiza...@rackspace.com<mailto:douglas.mendiza...@rackspace.com>>, 
"a...@redhat.com<mailto:a...@redhat.com>" 
<a...@redhat.com<mailto:a...@redhat.com>>, Paul Kehrer 
<paul.keh...@rackspace.com<mailto:paul.keh...@rackspace.com>>, Adam Harwell 
<adam.harw...@rackspace.com<mailto:adam.harw...@rackspace.com>>
Subject: Re: Barbican : Use of consumer resource

(Including Adam, who implemented this feature last year to make sure I'm not 
misspeaking here :)

Hello Asha,

The consumers feature allows clients/services to register 'interest' in a given 
secret or container. The URL provided is unrestricted. Clients that wish to 
delete a secret or consumer may add logic to hold off deleting if other 
services have registered their interest in the resource. However for Barbican 
this data is only informational, with no business logic (such as rejecting 
delete attempts) associated with it.

I hope that helps.

Thanks,
John


From: Asha Seshagiri <asha.seshag...@gmail.com<mailto:asha.seshag...@gmail.com>>
Date: Monday, March 30, 2015 at 5:04 PM
To: openstack-dev 
<openstack-dev@lists.openstack.org<mailto:openstack-dev@lists.openstack.org>>
Cc: John Wood <john.w...@rackspace.com<mailto:john.w...@rackspace.com>>, 
"Reller, Nathan S." 
<nathan.rel...@jhuapl.edu<mailto:nathan.rel...@jhuapl.edu>>, Douglas Mendizabal 
<douglas.mendiza...@rackspace.com<mailto:douglas.mendiza...@rackspace.com>>, 
"a...@redhat.com<mailto:a...@redhat.com>" 
<a...@redhat.com<mailto:a...@redhat.com>>, Paul Kehrer 
<paul.keh...@rackspace.com<mailto:paul.keh...@rackspace.com>>
Subject: Re: Barbican : Use of consumer resource

Including Alee and Paul in the loop

Refining the above question :

The consumer resource allows the clients to register with container resources. 
Please find the command and response below


POST v1/containers/888b29a4-c7cf-49d0-bfdf-bd9e6f26d718/consumers

Header: content-type=application/json
        X-Project-Id: {project_id}
{
    "name": "foo-service",
    "URL": "https://www.fooservice.com/widgets/1234";
}

I would like to know the following :

1. Who  does the client here refers to ? Openstack Services or any other 
services as well?

2. Once the client gets registered through the consumer resource , How does 
client consume or use the consumer resource

Any Help would be appreciated.

Thanks Asha.




On Mon, Mar 30, 2015 at 12:05 AM, Asha Seshagiri 
<asha.seshag...@gmail.com<mailto:asha.seshag...@gmail.com>> wrote:
Hi All,

Once the consumer resource registers to the containers , how does the consumer 
resource consume the container resource?
Is there any API supporting the above operation.

Could any one please help on this?

--
Thanks and Regards,
Asha Seshagiri



--
Thanks and Regards,
Asha Seshagiri
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to