← Back to team overview

openstack team mailing list archive

Re: swift-get-nodes lies to me?


The first argument to swift-get-nodes is the swift hash of the user name, typically some like AUTH_mumble, not the user name itself.

-----Original Message-----
From: openstack-bounces+bob.souza=hp.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+bob.souza=hp.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Pete Zaitcev
Sent: Friday, March 09, 2012 9:03 PM
To: openstack@xxxxxxxxxxxxxxxxxxx
Subject: [Openstack] swift-get-nodes lies to me?

Dear All:

A strange thing seems to happen. It looks like this:

- I upload a key named "testdata"

[zaitcev@simbelmyne tests]$ /q/zaitcev/hail/swift-tip/bin/swift -A http://kvm-rei:5000/v1.0 -U zaitcev -K pass list test-1235163301
[zaitcev@simbelmyne tests]$ 

  I have a script that also finds size (104857600) and MD5

- Then, I run swift-get-node, on the node where proxy resides:

[root@kvm-rei zaitcev]# swift-get-nodes /etc/swift/object.ring.gz zaitcev test-1235163301 testdata

Account         zaitcev 
Container       test-1235163301
Object          testdata

Partition       147444  
Hash            8ffd13698cf92ef170db5db21f5efd9f

Server:Port Device vdb
Server:Port Device vdc
Server:Port Device vdb
Server:Port Device vdc  [Handoff]

curl -I -XHEAD "";
curl -I -XHEAD "";
curl -I -XHEAD "";
curl -I -XHEAD ""; # [Handoff]

ssh "ls -lah /srv/node/vdb/objects/147444/d9f/8ffd13698cf92ef170db5db21f5efd9f/"
ssh "ls -lah /srv/node/vdc/objects/147444/d9f/8ffd13698cf92ef170db5db21f5efd9f/"
ssh "ls -lah /srv/node/vdb/objects/147444/d9f/8ffd13698cf92ef170db5db21f5efd9f/"
ssh "ls -lah /srv/node/vdc/objects/147444/d9f/8ffd13698cf92ef170db5db21f5efd9f/" # [Handoff]
[root@kvm-rei zaitcev]# 

- Finally, I actually find the file and verify it:

[root@kvm-rei zaitcev]# find /srv/node/vdc -type f -a -size 104857600c
[root@kvm-rei zaitcev]# md5sum /srv/node/vdc/objects/221984/51c/d8c8047f0c10449d1a264371874f851c/1331343894.44919.data
49289935f687585f5e95e94c7c1ec29d  /srv/node/vdc/objects/221984/51c/d8c8047f0c10449d1a264371874f851c/1331343894.44919.data
[root@kvm-rei zaitcev]# 

The question is, why the discrepancy? Before I dive into the construction
of the ring, is this a known issue? Or do I do something obviously wrong
with arguments of swift-get-nodes?

-- Pete

Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

Follow ups