Cannot delete backup

Bug #1186454 reported by Steve Leon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Undecided
Steve Leon

Bug Description

When trying to delete a backup, i get a 202 but the backup never get deleted.

Looking at the taskmanager log, i see the following error. The error shows a 404 object not found, but from swift, the object exists:

    2013-05-31 23:44:02.238 4631 DEBUG swiftclient [-] REQ: curl -i https://region-a.geo-1.objects.hpcloudsvc.com/v1/41891025944077/database_backups/d -I -H "X-Auth-Token: fjagagjlnlgae39g9a"
     http_log /usr/local/lib/python2.7/dist-packages/swiftclient/client.py:70
    2013-05-31 23:44:02.239 4631 DEBUG swiftclient [-] RESP STATUS: 404
     http_log /usr/local/lib/python2.7/dist-packages/swiftclient/client.py:76
    2013-05-31 23:44:02.240 4631 ERROR reddwarf.taskmanager.models [req-bbd7f3b6-c04c-425a-aa32-8b50cecb0bb6 27151509451220 41891025944077] Exception deleting from swift. Details: Object HEAD failed: https://region-a.geo-1.objects.hpcloudsvc.com:443/v1/41891025944077/database_backups/d 404 Not Found
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models Traceback (most recent call last):
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models File "/usr/local/lib/python2.7/dist-packages/reddwarf/taskmanager/models.py", line 551, in delete_backup
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models BackupTasks.delete_files_from_swift(context, filename)
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models File "/usr/local/lib/python2.7/dist-packages/reddwarf/taskmanager/models.py", line 532, in delete_files_from_swift
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models if client.head_object(CONF.backup_swift_container, filename):
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1096, in head_object
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models return self._retry(None, head_object, container, obj)
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1027, in _retry
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models rv = func(self.url, self.token, *args, **kwargs)
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 763, in head_object
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models http_response_content=body)
    2013-05-31 23:44:02.240 4631 TRACE reddwarf.taskmanager.models ClientException: Object HEAD failed: https://region-a.geo-1.objects.hpcloudsvc.com:443/v1/41891025944077/database_backups/d 404 Not Found

Steve Leon (steve-leon)
description: updated
Changed in reddwarf:
assignee: nobody → Steve Leon (steve-leon)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to reddwarf (master)

Reviewed: https://review.openstack.org/31527
Committed: http://github.com/stackforge/reddwarf/commit/187756d4b8b19058c2f5678f994c841cf205da74
Submitter: Jenkins
Branch: master

commit 187756d4b8b19058c2f5678f994c841cf205da74
Author: Steve Leon <email address hidden>
Date: Mon Jun 3 09:51:37 2013 -0700

    Fixing delete backup

    - Backup is not able to be delete because the object is not found in swift
    - Issue is that the filename parsing is incorrect

    fixes bug # 1186454

    Change-Id: I0195aa72bf42a3d87d7e6c541655b172cae7f195

Changed in reddwarf:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: havana-2 → 2013.2
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.