huaweicloud / huaweicloud-service-broker

Huawei Cloud Service Broker
Apache License 2.0
18 stars 12 forks source link

service broker refuse to delete non empty bucket ? #74

Open poblin-orange opened 5 years ago

poblin-orange commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Thank you very much