undelete accounts

Bug #1521351 reported by John Dickinson
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
In Progress
Medium
HCLTech-SSW

Bug Description

add a utility to undelete accounts, as described in http://docs.openstack.org/developer/swift/overview_reaper.html

Changed in swift:
assignee: nobody → Sivasathurappan Radhakrishnan (siva-radhakrishnan)
Changed in swift:
status: New → Confirmed
Changed in swift:
assignee: Sivasathurappan Radhakrishnan (siva-radhakrishnan) → nobody
Changed in swift:
importance: Wishlist → Medium
tags: added: low-hanging-fruit
Adam Thurlow (thurloat)
Changed in swift:
assignee: nobody → Adam Thurlow (thurloat)
Changed in swift:
status: Confirmed → In Progress
Changed in swift:
assignee: Adam Thurlow (thurloat) → nobody
status: In Progress → Confirmed
Revision history for this message
HCLTech-SSW (hcltech-ssw) wrote :

After analyzing this issue, we found that there is no command/client module is implemented to undelete the account. Our question is, From where and how the account gets deleted, so that the need of undelete it arises?

Revision history for this message
John Dickinson (notmyname) wrote :

Accounts are deleted by (1) having a "reseller admin" level auth token (2) sending a DELETE to a proxy server for the account to be deleted and (3) that proxy server having the "allow account management" config option set to true

Revision history for this message
Janie Richling (jrichli) wrote :

Also, you might be interested to see an older proposal for such a feature : https://review.openstack.org/445160

Revision history for this message
HCLTech-SSW (hcltech-ssw) wrote :

Thanks for the reply.

As explained, to delete a swift account using admin user added in reseller_admin group.

We have executed 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: AUTH_tkc8010f55d80241b2851ea4eba29f6b8b' 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.

c) To verify the deleted account:
   swift -A http://<ip address>:8080/auth/v1.0 -U test6:tester6 -K testing6 stat

Output is:
Account HEAD failed: http://<ip address>:8080/v1/AUTH_test6 410 Gone
Failed Transaction ID: txa76f8f502cf44b678cae2-0059b62c4a

After analyzing this issue we will start looking over to create utility to undelete the deleted account.

Changed in swift:
assignee: nobody → HCLTech-SSW (hcltech-ssw)
status: Confirmed → In Progress
Revision history for this message
HCLTech-SSW (hcltech-ssw) wrote :

Fix proposed to branch: master.
review: https://review.openstack.org/#/c/507785/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (master)

Fix proposed to branch: master
Review: https://review.openstack.org/507808

Revision history for this message
HCLTech-SSW (hcltech-ssw) wrote :

Hello Reviewers,

Please provide the reviews/suggestions to:
https://review.openstack.org/#/c/507808/

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.