Date
1 - 9 of 9
How to listen to space deletion events?
Padmashree B
Hi,
Is there any way to listen and react to space deletion events? Any hook available to do some tasks before the space is deleted? Thanks, Kind Regards, Padma |
|
Nicholas Calugar
Hi Padma,
toggle quoted message
Show quoted text
We currently don't broadcast any events from the Cloud Controller. Could you describe the use-case a bit more? What sort of task do you want to do? What application / process would listen for these events? Thanks, Nick On Fri, Jun 10, 2016 at 2:16 AM, Padmashree B <padmashree.b(a)sap.com> wrote:
Hi, |
|
Padmashree B
Hi Nick,
Sorry for the delay! I have the following use-case: I have some application service provisioned which monitors applications deployed in the Space. It is automated and SpaceManager or SpaceDeveloper [application developer] has least control on the service instances that are created for this purpose. The user will also not be able to delete these service instances. However, as SpaceManager one can delete the Space via CF CLI command. Since the Space can contain these service instances which cannot be deleted, it will also not be possible to delete the Space which will become a blocker. So was thinking if there is a way to listen to Space deletion events and react on it, probably some cleanup hooks for service brokers - a probable solution. Thanks and Kind Regards, Padma |
|
Padmashree B
Hi,
Any suggestion on this? Thanks, Padma |
|
Nicholas Calugar
Hi Padma,
toggle quoted message
Show quoted text
Apologies for the delay. In the case of a space with a service instance, if the space is deleted, the Cloud Controller sends a deprovision request to the service broker. The broker is responsible for properly handling the deprovision, what other cleanup do you have in mind? -Nick On Sun, Jun 19, 2016 at 4:42 PM, Padmashree B <padmashree.b(a)sap.com> wrote:
Hi, --
Nicholas Calugar Product Manager - Cloud Foundry API Pivotal Software, Inc. |
|
Piotr Przybylski <piotrp@...>
Hi Nicholas,
toggle quoted message
Show quoted text
is that behavior influenced by the 'recursive' flag on the Space DELETE request? Also, does the CC stop and delete applications in the deleted space ? How is that influenced by the 'recursive' flag ? Thank you, Piotr Piotr Przybylski, IBM Bluemix From: Nicholas Calugar <ncalugar(a)pivotal.io> To: "Discussions about Cloud Foundry projects and the system overall." <cf-dev(a)lists.cloudfoundry.org> Date: 06/28/2016 11:51 AM Subject: [cf-dev] Re: Re: Re: Re: How to listen to space deletion events? Hi Padma, Apologies for the delay. In the case of a space with a service instance, if the space is deleted, the Cloud Controller sends a deprovision request to the service broker. The broker is responsible for properly handling the deprovision, what other cleanup do you have in mind? -Nick On Sun, Jun 19, 2016 at 4:42 PM, Padmashree B <padmashree.b(a)sap.com> wrote:
Hi, Any suggestion on this? Thanks, Padma -- Nicholas Calugar Product Manager - Cloud Foundry API Pivotal Software, Inc. |
|
Nicholas Calugar
Hi Piotr,
toggle quoted message
Show quoted text
Yes, that is correct, deleting recursively will delete service instances and apps. Thanks, Nick On Tue, Jun 28, 2016 at 2:45 PM, Piotr Przybylski <piotrp(a)us.ibm.com> wrote:
Hi Nicholas, --
Nicholas Calugar Product Manager - Cloud Foundry API Pivotal Software, Inc. |
|
Piotr Przybylski <piotrp@...>
Hi Nicholas,
toggle quoted message
Show quoted text
what happens to applications if the recursive flag is not passed ? Will delete fail if there are apps in the space ? or will delete succeed ? in the latter case, what is the state of these applications ? Piotr Piotr Przybylski | IBM Bluemix From: Nicholas Calugar <ncalugar(a)pivotal.io> To: "Discussions about Cloud Foundry projects and the system overall." <cf-dev(a)lists.cloudfoundry.org> Date: 06/28/2016 06:07 PM Subject: [cf-dev] Re: Re: Re: Re: Re: Re: How to listen to space deletion events? Hi Piotr, Yes, that is correct, deleting recursively will delete service instances and apps. Thanks, Nick On Tue, Jun 28, 2016 at 2:45 PM, Piotr Przybylski <piotrp(a)us.ibm.com>
wrote: Hi Nicholas, is that behavior influenced by the 'recursive' flag on the Space DELETE request? Also, does the CC stop and delete applications in the deleted space ? How is that influenced by the 'recursive' flag ? Thank you, Piotr Piotr Przybylski, IBM Bluemix Inactive hide details for Nicholas Calugar ---06/28/2016 11:51:33 AM---Hi Padma, Apologies for the delay. In the case of a spacNicholas Calugar ---06/28/2016 11:51:33 AM---Hi Padma, Apologies for the delay. In the case of a space with a service instance, if From: Nicholas Calugar <ncalugar(a)pivotal.io> To: "Discussions about Cloud Foundry projects and the system overall." < cf-dev(a)lists.cloudfoundry.org> Date: 06/28/2016 11:51 AM Subject: [cf-dev] Re: Re: Re: Re: How to listen to space deletion events? Hi Padma, Apologies for the delay. In the case of a space with a service instance, if the space is deleted, the Cloud Controller sends a deprovision request to the service broker. The broker is responsible for properly handling the deprovision, what other cleanup do you have in mind? -Nick On Sun, Jun 19, 2016 at 4:42 PM, Padmashree B <padmashree.b(a)sap.com> wrote: Hi, Any suggestion on this? Thanks, Padma -- Nicholas Calugar Product Manager - Cloud Foundry API Pivotal Software, Inc. -- Nicholas Calugar Product Manager - Cloud Foundry API Pivotal Software, Inc. |
|
Nicholas Calugar
Hi Piotr,
toggle quoted message
Show quoted text
Delete space will fail if there are associated resources. Nick On Wed, Jun 29, 2016 at 8:21 AM, Piotr Przybylski <piotrp(a)us.ibm.com> wrote:
Hi Nicholas, --
Nicholas Calugar Product Manager - Cloud Foundry API Pivotal Software, Inc. |
|