You could give up on the API, and just go hack the db's directly...<div><br><br><div class="gmail_quote">On Fri, Jan 6, 2012 at 3:49 PM, Judd Maltin <span dir="ltr"><<a href="mailto:openstack@newgoliath.com">openstack@newgoliath.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm using swauth. I authenticated as .super_admin (the tenant:account<br>
didn't work last time) and tried this:<br>
<br>
curl -ik -H 'X-Auth-Token: AUTH_XXX' -XPOST -H 'X-Container-Sync-Key:'<br>
-H 'X-Container-Sync-To:'<br>
<a href="https://voxfiles.net/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaa" target="_blank">https://voxfiles.net/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaa</a><br>
<br>
HTTP/1.1 204 No Content<br>
X-Container-Sync-Key: abcde<br>
X-Container-Object-Count: 765515<br>
X-Container-Sync-To: <a href="https://voxfiles.net/aaa" target="_blank">https://voxfiles.net/aaa</a><br>
X-Container-Read: .r:*<br>
X-Container-Bytes-Used: 121156834308<br>
Accept-Ranges: bytes<br>
Content-Length: 0<br>
X-Trans-Id: tx17a2fc45c71941078ffb3b6467cf15f2<br>
Date: Fri, 06 Jan 2012 20:43:27 GMT<br>
<br>
So, I try to remove the values:<br>
<br>
curl -ik -H 'X-Auth-Token: AUTH_XXX' -XPOST -H 'X-Container-Sync-Key:'<br>
-H 'X-Container-Sync-To:'<br>
<a href="https://voxfiles.net/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaa
HTTP/1.1" target="_blank">https://voxfiles.net/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaa<br>
HTTP/1.1</a> 204 No Content<br>
Content-Length: 0<br>
Content-Type: text/html; charset=UTF-8<br>
X-Trans-Id: tx6327f934a46b433f9883c1132c7bea2f<br>
Date: Fri, 06 Jan 2012 20:44:23 GMT<br>
<br>
But the values are still there:<br>
<br>
curl -ik -H 'X-Auth-Token: AUTH_XXX' -XHEAD<br>
<a href="https://voxfiles.net/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaaHTTP/1.1" target="_blank">https://voxfiles.net/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaaHTTP/1.1</a><br>
204 No Content<br>
X-Container-Sync-Key: abcde<br>
X-Container-Object-Count: 765515<br>
X-Container-Sync-To: <a href="https://voxfiles.net/aaa" target="_blank">https://voxfiles.net/aaa</a><br>
X-Container-Read: .r:*<br>
X-Container-Bytes-Used: 121156834308<br>
Accept-Ranges: bytes<br>
Content-Length: 0<br>
X-Trans-Id: txe53ef78f72da45e5b0cce88a7991fea8<br>
Date: Fri, 06 Jan 2012 20:44:26 GMT<br>
<br>
I'm going to try a few more permutations..<br>
<br>
Anyone out there?<br>
<span class="HOEnZb"><font color="#888888"><br>
-judd<br>
</font></span><div class="im HOEnZb"><br>
On Wed, Jan 4, 2012 at 6:00 PM, andi abes <<a href="mailto:andi.abes@gmail.com">andi.abes@gmail.com</a>> wrote:<br>
> keep the sync-to, but kill the sync-key?<br>
><br>
> On Wed, Jan 4, 2012 at 5:53 PM, Judd Maltin <<a href="mailto:openstack@newgoliath.com">openstack@newgoliath.com</a>><br>
> wrote:<br>
>><br>
</div><div class="HOEnZb"><div class="h5">>> Hey everyone!<br>
>><br>
>> How can I shut down container sync for just this container?<br>
>><br>
>><br>
>> root@proxy02-c01:/etc/swift# curl -i -XPOST -H 'x-auth-token:<br>
>> AUTH_tk39cf30deaeb04ff4a83d02544bc8edb5' -H 'X-Container-Sync-To: ""'<br>
>> -H 'X-Container-Sync-Key: secret'<br>
>> <a href="https://example.net:8080/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaa" target="_blank">https://example.net:8080/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaa</a><br>
>> HTTP/1.1 400 Bad Request<br>
>> Content-Type: text/html; charset=UTF-8<br>
>> Date: Wed, 04 Jan 2012 22:32:45 GMT<br>
>> X-Trans-Id: tx3c142fabff79437ab382dc47eb67e2cb<br>
>> Connection: close<br>
>> Content-Length: 187<br>
>><br>
>> 400 Bad Request<br>
>><br>
>> The server could not comply with the request since it is either<br>
>> malformed or otherwise incorrect.<br>
>><br>
>> Invalid scheme '' in X-Container-Sync-To, must be "http" or "https".<br>
>> root@proxy02-c01:/etc/swift#<br>
>><br>
>> Thanks!<br>
>> -judd<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>
><br>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">On Wed, Jan 4, 2012 at 5:53 PM, Judd Maltin <<a href="mailto:openstack@newgoliath.com">openstack@newgoliath.com</a>> wrote:<br>
</div><div class="HOEnZb"><div class="h5">> Hey everyone!<br>
><br>
> How can I shut down container sync for just this container?<br>
><br>
><br>
> root@proxy02-c01:/etc/swift# curl -i -XPOST -H 'x-auth-token:<br>
> AUTH_tk39cf30deaeb04ff4a83d02544bc8edb5' -H 'X-Container-Sync-To: ""'<br>
> -H 'X-Container-Sync-Key: secret'<br>
> <a href="https://example.net:8080/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaa" target="_blank">https://example.net:8080/v1/AUTH_2c96271e-cf06-4eec-80a8-9441e3d1cf40/aaa</a><br>
> HTTP/1.1 400 Bad Request<br>
> Content-Type: text/html; charset=UTF-8<br>
> Date: Wed, 04 Jan 2012 22:32:45 GMT<br>
> X-Trans-Id: tx3c142fabff79437ab382dc47eb67e2cb<br>
> Connection: close<br>
> Content-Length: 187<br>
><br>
> 400 Bad Request<br>
><br>
> The server could not comply with the request since it is either<br>
> malformed or otherwise incorrect.<br>
><br>
> Invalid scheme '' in X-Container-Sync-To, must be "http" or "https".<br>
> root@proxy02-c01:/etc/swift#<br>
><br>
> Thanks!<br>
> -judd<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>
</div></div></blockquote></div><br></div>