Hi Andrew,<br><br>That's a great idea: but here's my predicament.  I have only one cluster.  One proxy server on the cluster has swauth setup, and working OK.  The others have tempauth.  I'm trying to sync from a tempauth user's container to a swauth user's container.<br>
<br>Setting up the container sync per these docs went great until the second POST.. <a href="http://swift.openstack.org/overview_container_sync.html">http://swift.openstack.org/overview_container_sync.html</a><br><br><pre>
$ swift -A <a href="http://cluster2/auth/v1.0">http://cluster2/auth/v1.0</a> -U test2:tester2 -K testing2 post \
  -t '<a href="http://cluster1/v1/AUTH_208d1854-e475-4500-b315-81de645d060e/container1">http://cluster1/v1/AUTH_208d1854-e475-4500-b315-81de645d060e/container1</a>' \
  -k 'secret' container2</pre>The container2 post fails.  It's my new swauth user.  The container exists.  I can upload a file to it.  The user has .admin group.  But the "post" fails.  In fact, I can't post anything.<br>
<br># swift -A <a href="http://127.0.0.1:8080/auth/v1.0">http://127.0.0.1:8080/auth/v1.0</a> -U test1:tester1 -K testing1 post -t 'test' -k 'test' newmusic<br>Container POST failed: <a href="http://127.0.0.1:8080/v1/AUTH_65d1b0c0-5899-4c30-9d72-f4afb93fb9b4/newmusic">http://127.0.0.1:8080/v1/AUTH_65d1b0c0-5899-4c30-9d72-f4afb93fb9b4/newmusic</a> 400 Bad Request<br>
<br>syslog shows: <br><br>Dec  1 18:22:27 proxy01-c01 proxy-server - - 01/Dec/2011/23/22/27 GET /v1/AUTH_.auth/test1/tester1 HTTP/1.0 200 - Swauth - - - - tx28849e183a04451aa7e7c609ee4e7054 - 0.0159<br>Dec  1 18:22:27 proxy01-c01 proxy-server - - 01/Dec/2011/23/22/27 GET /v1/AUTH_.auth/.token_9/AUTH_tkecd237e696b84dc98b8967fb5c074639 HTTP/1.0 200 - Swauth - - - - tx5e4815e3b240464481ee6751a8940f0f - 0.0104<br>
Dec  1 18:22:27 proxy01-c01 proxy-server - - 01/Dec/2011/23/22/27 GET /v1/AUTH_.auth/test1/.services HTTP/1.0 200 - Swauth - - - - tx08081e0df5b44664936d3c9100072c53 - 0.0129<br>Dec  1 18:22:27 proxy01-c01 swauth - 127.0.0.1 01/Dec/2011/23/22/27 GET /auth/v1.0 HTTP/1.0 200 - - - - - - - - 0.0427<br>
Dec  1 18:22:27 proxy01-c01 proxy-server 127.0.0.1 127.0.0.1 01/Dec/2011/23/22/27 POST /v1/AUTH_65d1b0c0-5899-4c30-9d72-f4afb93fb9b4/newmusic HTTP/1.0 400 - - test1%3Atester1%2CAUTH_tkecd237e696b84dc98b8967fb5c074639 - - - tx2b90e21df50145f2a0e6a47275eaf3d0 - 0.0419<br>
<br>container-server problem?  I used chef to turn all my container-servers into sync points, and restarted the container servers by hand.<br><br>No POSTs make it to any of my sysogs. :(<br><br>Thanks for the help!<br><br>
-judd<br><br><div class="gmail_quote">On Thu, Dec 1, 2011 at 4:51 PM, Andrew Hale <span dir="ltr"><<a href="mailto:Andrew.Hale@rackspace.co.uk">Andrew.Hale@rackspace.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey Judd!<br>
<br>
I think you're out of luck with any quick db hacks to do this but have you looked at using container-sync to move the content to the new account? I just tested it fine on a SAIO box though haven't tried in a multi server environment - it should be fine though and does the copy within the cluster rather than streaming in and out.<br>

<br>
Andrew<br>
<div><div class="h5"><br>
<br>
On 1 Dec 2011, at 20:54, Judd Maltin wrote:<br>
<br>
> Aloha Swifters!<br>
><br>
> After a day of looking long and hard at Swift, I'm pretty sure that I'm going to have to write a script, and I can't just tweak the underlying sqlite db files.<br>
><br>
> I'm going to write a script to walk the containers in "account A" via http and write (stream?) the objects it finds into containers on "account B", also via http.  A pointer to sample code would be helpful here. :-)<br>

><br>
> It's not the end of the world.  But I just want to confirm with those in-the-know that there is no hacking of the DBs I can do to move the objects from one account to another.<br>
><br>
> Many thanks!<br>
><br>
> -judd<br>
><br>
<br>
</div></div>Andrew Hale<br>
Linux Systems Engineer II<br>
<br>
Tel: <a href="tel:%2B442087342500" value="+442087342500">+442087342500</a><br>
Mob: <a href="tel:%2B447720948819" value="+447720948819">+447720948819</a><br>
Fax:<br>
Web: <a href="http://www.rackspace.co.uk" target="_blank">www.rackspace.co.uk</a><br>
<br>
_______________________________________________<br>
> Openstack-operators mailing list<br>
> <a href="mailto:Openstack-operators@lists.openstack.org">Openstack-operators@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br>
</blockquote></div><br>