Tons of Thanks to Adam ,John and all the people in the openstack group who have been always proactive in responding to the concerns and queries . It has helped me a lot :)
On Tue, Mar 31, 2015 at 12:20 AM, Adam Harwell <[email protected]> wrote: > As John said, the URI is unrestricted (intentionally so) -- this could > be 'mailto:[email protected]' 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 <[email protected]> > Date: Tuesday, March 31, 2015 12:06 AM > To: Asha Seshagiri <[email protected]>, openstack-dev < > [email protected]> > Cc: "Reller, Nathan S." <[email protected]>, Douglas Mendizabal < > [email protected]>, "[email protected]" <[email protected]>, > Paul Kehrer <[email protected]>, Adam Harwell < > [email protected]> > > 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 <[email protected]> > Date: Monday, March 30, 2015 at 5:04 PM > To: openstack-dev <[email protected]> > Cc: John Wood <[email protected]>, "Reller, Nathan S." < > [email protected]>, Douglas Mendizabal < > [email protected]>, "[email protected]" <[email protected]>, > Paul Kehrer <[email protected]> > 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 <[email protected] > > 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* > -- *Thanks and Regards,* *Asha Seshagiri*
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: [email protected]?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
