[openstack-dev] [swift] Failed to restore swift from file backup

Konstantin Danilov kdanilov at mirantis.com
Tue Dec 6 17:25:42 UTC 2016


Hi all,

I try to make a backup of swift cluster by stopping server and backup all files.
Then I create one more cluster with absolutely the same settings and
restore all files
from backup on it. As result swift is working and  'swift glance list'
gives the same
correct list as before, but 'swift glance download' gives 404 for 2
objects of 3.
This 2 object fully available on original cluster and they id
correctly returned by
'list'. 'info' on them return 404  as well. I try to inspect swift db
but it looks correct
as far as I can tell.

Swift log contains no information about this error, except for 404.

CLI results:

# swift list glance
12eb98e1-9f11-44b2-8e92-3320466b65ec
f102e08c-c95e-4594-9994-0f08e25abc28
f99d47a1-5a47-48b1-a723-37b0e86f5edb

# swift stat glance 12eb98e1-9f11-44b2-8e92-3320466b65ec
Object HEAD failed:
http://172.16.27.2:8080/v1/AUTH_fdaed187f1d8483fa5a527634f79054a/glance/12eb98e1-9f11-44b2-8e92-3320466b65ec
404 Not Found

root at node-1:~# swift stat glance f102e08c-c95e-4594-9994-0f08e25abc28
       Account: AUTH_fdaed187f1d8483fa5a527634f79054a
     Container: glance
        Object: f102e08c-c95e-4594-9994-0f08e25abc28
  Content Type: application/octet-stream
Content Length: 13287936
 Last Modified: Fri, 02 Dec 2016 00:53:13 GMT
          ETag: ee1eca47dc88f4879d8a229cc70a07c6
 Accept-Ranges: bytes
    Connection: close
   X-Timestamp: 1480639992.36531
    X-Trans-Id: tx18c34995fb2e4648ad419-005846f370

# swift stat glance f99d47a1-5a47-48b1-a723-37b0e86f5edb
Object HEAD failed:
http://172.16.27.2:8080/v1/AUTH_fdaed187f1d8483fa5a527634f79054a/glance/f99d47a1-5a47-48b1-a723-37b0e86f5edb
404 Not Found

# swift --version
swift 2.4.0

How to investigate this? What files I need to check on disk?
Or update some setting for swift to show me more error information in log?

Thanks

-- 
Kostiantyn Danilov aka koder.ua
Principal software engineer, Mirantis

skype:koder.ua
http://koder-ua.blogspot.com/
http://mirantis.com



More information about the OpenStack-dev mailing list