Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

service broker refuse to delete non empty bucket ? #74

Open
poblin-orange opened this issue Jan 27, 2019 · 5 comments
Open

service broker refuse to delete non empty bucket ? #74

poblin-orange opened this issue Jan 27, 2019 · 5 comments

Comments

@poblin-orange
Copy link

here are the logs we have

Voulez-vous vraiment supprimer le service obs-Standard ?> y
Suppression du service obs-Standard dans l'organisation system_domain/l'espace huawei-cloud-osb-sample en tant que poblin...
ECHEC
Erreur de serveur, code de statut : 502, code d'erreur : 10001, message : Service instance obs-Standard: Service broker error: deprovision obs bucket failed. Error: obs: service returned error: Status=409 Conflict, Code=BucketNotEmpty, Message=The bucket you tried to delete is not empty, RequestId=006D0000016891091B9FE4AD654281A2

Why refuse to delete the bucket ?

@edisonxiang
Copy link
Collaborator

hey @poblin-orange ,

Thanks for your issue.
To delete the bucket, empty the bucket first by deleting all objects and deleted objects.
Please refer to this document.
https://docs.prod-cloud-ocb.orange-business.com/en-us/usermanual/obs/en-us_topic_0046537636.html
We also could not delete the non-empty bucket in the orange web console UI.
Thanks.

@poblin-orange
Copy link
Author

@edisonxiang thanks for you response.
I understand its the same for the web console UI, and i can use also the console ui to delete the content.

However, i want to use the OSB broker for automation, so straight delete is the natural way to do (all OSB services i know just delete the content).

For postgres or sqlserver delete, i guess the broker doesnt check if all tables have been deleted inside the database ?

@edisonxiang
Copy link
Collaborator

Hi @poblin-orange Thanks your reply,
So do you expect that the broker deletes all the objects in the bucket and then delete the bucket?

@edisonxiang
Copy link
Collaborator

Hey @poblin-orange
This feature is implemented by this commit, and the docker image is updated.
Please restart the service-broker to retest it.
Thanks very much.

@poblin-orange
Copy link
Author

Thank you very much

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants