Delete account with InternalClient

Bug #1680377 reported by clayg on 2017-04-06
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Wishlist
HCLTech-SSW

Bug Description

The internal client module is missing a delete_account method, you can roll your own with make_request [1]

But it'd be nice if it was there and easy to use.

1. https://gist.github.com/clayg/1813aeb207a2411c823a5e5af32e169b

Changed in swift:
assignee: nobody → HCLTech-SSW (hcltech-ssw)
status: New → In Progress
HCLTech-SSW (hcltech-ssw) wrote :

As this can be done using the below set of commands:

a) Issue the GET request to get the authentication token for the admin user, using the following command.

curl -v -H 'X-Storage-User: admin:admin' -H 'X-Storage-Pass: admin' http://<ip address>:8080/auth/v1.0

Output is X-Auth-Token.

b) Issue the delete request for the specific account by passing the account storage URL.

curl -X DELETE -H 'X-Auth-Token: <Token from step a above>' http://<ip address>:8080/v1/AUTH_<Name of the account to be deleted.>

There is No Output from this command, but the account get deleted.

As there is the provision to delete the account using cURL, still there is the need to provide the method into the internal client library??

clayg (clay-gerrard) wrote :

yes, I think the bug is specifically for adding the method to the inernal client module - for parity with other methods like delete_container [1] and delete_object [2]

1. https://github.com/openstack/swift/blob/834b733d297d08ef8bc5e09c52653f9292d61f75/swift/common/internal_client.py#L462
2. https://github.com/openstack/swift/blob/834b733d297d08ef8bc5e09c52653f9292d61f75/swift/common/internal_client.py#L558

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers