hook for destruction

Marco Ceppi marco at ondina.co
Wed Nov 14 12:46:43 UTC 2012


It's actually a best practice to /keep/ that data around after
destroying the service. The MySQL charm, mongodb charm, and most other
charms which deal in data will retain the data until the machine is
destroyed (not the service). This is designed to people don't
accidentally remove a service and lose their data and it also gives them
time to back up the data after removing a service. Just simply note in
the README file that after removing the service the user will have to
delete the RDS instance. It's better to be safe and slightly annoying
then to be too ham fisted and potentially ruin someone's data.

Marco


On 11/14/2012 07:36 AM, Marcos Barbosa wrote:
> Gustavo,
>
> Any plans on milestone to not so deadly destruction system?
>
> I'm developing a Amazon RDS charm, but I need execute a script before
> destruction to delete DB instance.
>
> Best regards.
>
>
> 2012/11/14 Gustavo Niemeyer <gustavo at niemeyer.net
> <mailto:gustavo at niemeyer.net>>
>
>     Hi Marcos,
>
>     On Wed, Nov 14, 2012 at 10:12 AM, Marcos Barbosa
>     <marcosestevesbarbosa at gmail.com
>     <mailto:marcosestevesbarbosa at gmail.com>> wrote:
>     > There's a hook executed when the environment is destroyed?
>
>     No, at this point environment destruction is really destructive. It
>     will kill whatever workloads exist, and release the resources.
>
>
>     gustavo @ http://niemeyer.net
>
>
>
>
> -- 
> Marcos Barbosa <marcosestevesbarbosa at gmail.com
> <mailto:marcosestevesbarbosa at gmail.com>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20121114/4060fd54/attachment.html>


More information about the Juju mailing list