Re: [Openstack] Issue in debugging OpenStack Swift

2013-07-22 Thread Gareth
the key reason it here:
https://github.com/openstack/swift/blob/master/swift/common/utils.py#L1047

you have many ways to stop flush IO; I prefer add a line stdio_files = []
after line 1037


On Sun, Jul 21, 2013 at 1:58 AM, Muhammad Kazim kazima...@gmail.com wrote:

 Hi all,

 I wanted to debug Swift source code. I have a Devstack setup running on my
 machine that i have configured to only run keystone, mysql and swift.

 I have used pdb to debug source code. I was able to debug
 python-swiftclient, middleware (common), and proxy-server code. However,
 when i try to debug Object Server of Swift, by issuing pdb.set_trace() call
 in diskwrite or any write function in /swift/obj/server.py (except
 constructor) and than issue a 'swift post' or 'swift upload' command from
 other terminal, the object server crashes. The screen of s-object shows an
 error in the line in which 'pdb.set_trace()' is called.

 Can someone please guide me how can i debug the Swift s-object code in
 /swift/obj/server.py. Thanks.

 Regards,
 Muhammad Kazim

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




-- 
Gareth

*Cloud Computing, OpenStack, Fitness, Basketball*
*OpenStack contributor*
*Company: UnitedStack http://www.ustack.com*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [OpenStack][DevStack] How to contribute?

2013-05-07 Thread Gareth
Hi all

In OpenStack 'how-to-contribute' document, the first step is join the team
in Launchpad. All of ~swift, ~nova, ~glance are ok. But ~devstack is a
restricted team here[1].

Does that 'joining the team' is a necessary step for contributing?


[1] https://launchpad.net/~devstack https://launchpad.net/~devstack

-- 
Gareth

*Cloud Computing, OpenStack, Fitness, Basketball*
*OpenStack contributor*
*Company: UnitedStack http://www.ustack.com*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [OpenStack][DevStack] How to contribute?

2013-05-07 Thread Gareth
Great thanks!


On Wed, May 8, 2013 at 10:33 AM, Dean Troyer dtro...@gmail.com wrote:

 On Tue, May 7, 2013 at 9:16 PM, Gareth academicgar...@gmail.com wrote:
  In OpenStack 'how-to-contribute' document, the first step is join the
 team in Launchpad. All of ~swift, ~nova, ~glance are ok. But ~devstack is a
 restricted team here[1].
 
  Does that 'joining the team' is a necessary step for contributing?

 Not for DevStack, the only team we have set up is the core team.
 IIRC, if you are not a member of any other teams you would need to
 join the OpenStack team[1] that is linked in the grey box under the
 team list.

 Otherwise you just need to have completed the CLA-related bits that
 allows you to send reviews to Gerrit.

 dt

 [1] https://launchpad.net/~openstack

 --

 Dean Troyer
 dtro...@gmail.com




-- 
Gareth

*Cloud Computing, OpenStack, Fitness, Basketball*
*OpenStack contributor*
*Company: UnitedStack http://www.ustack.com*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [OpenStack] some sites don't work now

2013-04-26 Thread Gareth
Hi

=
[root@krugle-opensearch ~]# ping status.openstack.org
PING static.openstack.org (166.78.153.26) 56(84) bytes of data.

--- static.openstack.org ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4000ms

=
[root@krugle-opensearch ~]# ping logs.openstack.org
PING static.openstack.org (166.78.153.26) 56(84) bytes of data.

--- static.openstack.org ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3000ms


-- 
Gareth

*Cloud Computing, Openstack, Fitness, Basketball
*
*OpenStack contributor*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] problems with my openstack-dev mailing list

2013-04-02 Thread Gareth
Hi, all

I have subscribed openstack-dev mailing list. I can recieve digest mail
everyday, but I can't recieve any one topic mail like here
http://lists.openstack.org/pipermail/openstack-dev/2013-April/date.html#start

I have set with some options, like:
set ALL topic for “*Which topic categories would you like to subscribe to?”*
set yes for “*Do you want to receive messages that do not match any topic
filter?*”

Just one minute ago, I fresh the page:
http://lists.openstack.org/pipermail/openstack-dev/2013-April/date.html#start,
I still can't recieve the newest message.


Thanks for any help


Gareth

*Cloud Computing, Openstack, Fitness, Basketball
*
*Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] problems with my openstack-dev mailing list

2013-04-02 Thread Gareth
I have change the settings like your advice.
None for *Which topic categories would you like to subscribe to?*
Yes for *Do you want to receive messages that do not match any topic
filter?*

And for *Set Digest Mode*, shoud I keep it On or Off?


On Wed, Apr 3, 2013 at 2:53 AM, Stefano Maffulli stef...@openstack.orgwrote:

 On 04/02/2013 01:29 AM, Gareth wrote:

 I have set with some options, like:
 set ALL topic for “*Which topic categories would you like to subscribe
 to?”*


 If you want to subscribe to all the topics, I suggest you to uncheck all
 of them (set NONE) and ...

  set yes for “*Do you want to receive messages that do not match any
 topic filter?*”


 ... keep this as Yes.

 try it out and let me know.

 cheers,
 stef




-- 
Gareth

*Cloud Computing, Openstack, Fitness, Basketball
*
*Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] openstack installation of swift

2013-03-20 Thread Gareth
 xtrace
 stack@tce:~/devstack$ ~







 On Wed, Mar 20, 2013 at 10:09 AM, Gareth academicgar...@gmail.com wrote:

 stack.sh is a complicated script
 If some devstack developer cloud help you, it's ok. If not, your could
 run stack.sh again (install ubuntu again first). It maybe have good chance
 to build successfully.


 On Wed, Mar 20, 2013 at 11:52 AM, Arun Fera fer...@gmail.com wrote:

 I have followed the instructions in
 http://devstack.org/guides/single-machine.html
 But I get the following message while doing ./stack.sh

 keystone endpoint-create: error: argument --service-id/--service_id:
 expected one argument

 ++ failed

 ++ local r=2

 +++ jobs -p

 ++ kill

 ++ set +o xtrace

 How to overcome this problem? Can anyone plz help me in this issue.





 On Thu, Mar 7, 2013 at 1:17 PM, Gareth academicgar...@gmail.com wrote:

 In addition,

 install swift in one machine:
 http://docs.openstack.org/developer/swift/development_saio.html
 install swift cluster:
 http://docs.openstack.org/developer/swift/howto_installmultinode.html



 On Thu, Mar 7, 2013 at 3:33 PM, Chmouel Boudjnah 
 chmo...@chmouel.comwrote:

 You can install Swift as standalone and you can even use its builtin
 auth server like swauth if you really don't want deps on other things
 than swift. (auth v1 only).

 Chmouel.

 On Thu, Mar 7, 2013 at 8:28 AM, Arun Fera fer...@gmail.com wrote:
  Is it necessary to install all the components for using swift alone.
 I need
  to store some data in cloud. that is my only need. Can anyone help
 me.
 
  --
  Arun Fera M
  Assistant Professor,
  Department of Information Technology,
  Thiagarajar College of Engineering,
  Madurai-15.
  Mob:9790292924
  E-mail:f...@tce.edu
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp
 

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




 --
 Gareth
 *Cloud Computing, Openstack, Fitness, Basketball
 *
 *Novice Openstack contributer*
 *My promise: if you find any spelling or grammar mistake in my email
 from Mar 1 2013, notice me *
 *and I'll donate 1$ or 1¥ to open organization specified by you.*




 --
 Arun Fera M
 Assistant Professor,
 Department of Information Technology,
 Thiagarajar College of Engineering,
 Madurai-15.
 Mob:9790292924
 E-mail:f...@tce.edu




 --
 Gareth
 *Cloud Computing, Openstack, Fitness, Basketball
 *
 *Novice Openstack contributer*
 *My promise: if you find any spelling or grammar mistake in my email
 from Mar 1 2013, notice me *
 *and I'll donate 1$ or 1¥ to open organization specified by you.*




 --
 Arun Fera M
 Assistant Professor,
 Department of Information Technology,
 Thiagarajar College of Engineering,
 Madurai-15.
 Mob:9790292924
 E-mail:f...@tce.edu




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] openstack installation of swift

2013-03-19 Thread Gareth
stack.sh is a complicated script
If some devstack developer cloud help you, it's ok. If not, your could run
stack.sh again (install ubuntu again first). It maybe have good chance to
build successfully.


On Wed, Mar 20, 2013 at 11:52 AM, Arun Fera fer...@gmail.com wrote:

 I have followed the instructions in
 http://devstack.org/guides/single-machine.html
 But I get the following message while doing ./stack.sh

 keystone endpoint-create: error: argument --service-id/--service_id:
 expected one argument

 ++ failed

 ++ local r=2

 +++ jobs -p

 ++ kill

 ++ set +o xtrace

 How to overcome this problem? Can anyone plz help me in this issue.





 On Thu, Mar 7, 2013 at 1:17 PM, Gareth academicgar...@gmail.com wrote:

 In addition,

 install swift in one machine:
 http://docs.openstack.org/developer/swift/development_saio.html
 install swift cluster:
 http://docs.openstack.org/developer/swift/howto_installmultinode.html



 On Thu, Mar 7, 2013 at 3:33 PM, Chmouel Boudjnah chmo...@chmouel.comwrote:

 You can install Swift as standalone and you can even use its builtin
 auth server like swauth if you really don't want deps on other things
 than swift. (auth v1 only).

 Chmouel.

 On Thu, Mar 7, 2013 at 8:28 AM, Arun Fera fer...@gmail.com wrote:
  Is it necessary to install all the components for using swift alone. I
 need
  to store some data in cloud. that is my only need. Can anyone help me.
 
  --
  Arun Fera M
  Assistant Professor,
  Department of Information Technology,
  Thiagarajar College of Engineering,
  Madurai-15.
  Mob:9790292924
  E-mail:f...@tce.edu
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp
 

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




 --
 Gareth
 *Cloud Computing, Openstack, Fitness, Basketball
 *
 *Novice Openstack contributer*
 *My promise: if you find any spelling or grammar mistake in my email
 from Mar 1 2013, notice me *
 *and I'll donate 1$ or 1¥ to open organization specified by you.*




 --
 Arun Fera M
 Assistant Professor,
 Department of Information Technology,
 Thiagarajar College of Engineering,
 Madurai-15.
 Mob:9790292924
 E-mail:f...@tce.edu




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Gerrit Code Review issue

2013-03-18 Thread Gareth
Hi all
I tried to search some patches in my own query. And I follow this link:
https://review.openstack.org/Documentation/user-search.html

There's a little mistake on that.

Like the
owner:'USER'
Changes originally submitted by USER.

It should be
owner:USER
Changes originally submitted by USER.

Example:
this url works: https://review.openstack.org/#/q/owner:Kun
Huang,n,zhttps://review.openstack.org/#/q/owner:

but this failed: https://review.openstack.org/#/q/owner:'Kun Huang',n,z
https://review.openstack.org/#/q/owner:--
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Swift PUT error

2013-03-15 Thread Gareth
rfile.readline().split(;, 1)[0] here is empty string.

Could give the size of object your uploaded, in bytes.


On Fri, Mar 15, 2013 at 7:02 AM, Lokare, Bageshree
bageshree.lok...@hp.comwrote:

  Hello Suchi,

 ** **

 We are doing some similar stress testing for Swift and its working fine
 for a normal 100 user (1sec ramp-up)/1MB object size.

 Can you please give some more details on your set-up like,

 **-  **Object size

 **-  **Load/concurrent users

 **-  **Size of cluster

 **-  **# of LG and ramp-up time

 **-  **LG and swift target set-up (both in-cloud/out of cloud)

 ** **

 

 Thanks,

 SHREE

  

 ** **

 *From:* openstack-bounces+nayna.patel=hp@lists.launchpad.net [
 mailto:openstack-bounces+nayna.patel=hp@lists.launchpad.netopenstack-bounces+nayna.patel=hp@lists.launchpad.net]
 *On Behalf Of *Suchi Sinha (susinha)
 *Sent:* Thursday, March 14, 2013 3:35 PM
 *To:* openstack@lists.launchpad.net
 *Subject:* [Openstack] Swift PUT error

 ** **

 We are seeing lot of this error when we do  load/ stress testing on our
 swift  cluster..

 Our assumption  connection  time between  proxy  and object  server is
 timeing out.

 We increase client time out option. Still  no luck..

 Anybody  else has seen  this erro.. 

 ** **

 ERROR __call__ error with PUT

 ** **

 Traceback (most recent call last):

   File /usr/lib/python2.7/dist-packages/swift/obj/server.py, line 932,
 in __call__

 res = method(req)

   File /usr/lib/python2.7/dist-packages/swift/common/utils.py, line
 1459, in wrapped

 return func(*a, **kw)

   File /usr/lib/python2.7/dist-packages/swift/obj/server.py, line 612,
 in PUT

 for chunk in iter(lambda: reader(self.network_chunk_size), ''):

   File /usr/lib/python2.7/dist-packages/swift/obj/server.py, line 612,
 in lambda

 for chunk in iter(lambda: reader(self.network_chunk_size), ''):

   File /usr/lib/python2.7/dist-packages/eventlet/wsgi.py, line 147, in
 read

 return self._chunked_read(self.rfile, length)

   File /usr/lib/python2.7/dist-packages/eventlet/wsgi.py, line 137, in
 _chunked_read

 self.chunk_length = int(rfile.readline().split(;, 1)[0], 16)

 ValueError: invalid literal for int() with base 16: ''

 ** **

 ** **

 ** **

 ~Suchi

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




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Swift PUT error

2013-03-15 Thread Gareth
I just know some basic about chunked data.
Our codes build chunked data with '%x\r\n%s\r\n' and '0\r\n\r\n', but in
eventlet.wsgi, it split with ';' I found that and have no more ideas.


On Fri, Mar 15, 2013 at 3:35 PM, Gareth academicgar...@gmail.com wrote:

 rfile.readline().split(;, 1)[0] here is empty string.

 Could give the size of object your uploaded, in bytes.


 On Fri, Mar 15, 2013 at 7:02 AM, Lokare, Bageshree 
 bageshree.lok...@hp.com wrote:

  Hello Suchi,

 ** **

 We are doing some similar stress testing for Swift and its working fine
 for a normal 100 user (1sec ramp-up)/1MB object size.

 Can you please give some more details on your set-up like,

 **-  **Object size

 **-  **Load/concurrent users

 **-  **Size of cluster

 **-  **# of LG and ramp-up time

 **-  **LG and swift target set-up (both in-cloud/out of cloud)***
 *

 ** **

 

 Thanks,

 SHREE

  

 ** **

 *From:* openstack-bounces+nayna.patel=hp@lists.launchpad.net [
 mailto:openstack-bounces+nayna.patel=hp@lists.launchpad.netopenstack-bounces+nayna.patel=hp@lists.launchpad.net]
 *On Behalf Of *Suchi Sinha (susinha)
 *Sent:* Thursday, March 14, 2013 3:35 PM
 *To:* openstack@lists.launchpad.net
 *Subject:* [Openstack] Swift PUT error

 ** **

 We are seeing lot of this error when we do  load/ stress testing on our
 swift  cluster..

 Our assumption  connection  time between  proxy  and object  server is
 timeing out.

 We increase client time out option. Still  no luck..

 Anybody  else has seen  this erro.. 

 ** **

 ERROR __call__ error with PUT

 ** **

 Traceback (most recent call last):

   File /usr/lib/python2.7/dist-packages/swift/obj/server.py, line 932,
 in __call__

 res = method(req)

   File /usr/lib/python2.7/dist-packages/swift/common/utils.py, line
 1459, in wrapped

 return func(*a, **kw)

   File /usr/lib/python2.7/dist-packages/swift/obj/server.py, line 612,
 in PUT

 for chunk in iter(lambda: reader(self.network_chunk_size), ''):

   File /usr/lib/python2.7/dist-packages/swift/obj/server.py, line 612,
 in lambda

 for chunk in iter(lambda: reader(self.network_chunk_size), ''):

   File /usr/lib/python2.7/dist-packages/eventlet/wsgi.py, line 147, in
 read

 return self._chunked_read(self.rfile, length)

   File /usr/lib/python2.7/dist-packages/eventlet/wsgi.py, line 137, in
 _chunked_read

 self.chunk_length = int(rfile.readline().split(;, 1)[0], 16)

 ValueError: invalid literal for int() with base 16: ''

 ** **

 ** **

 ** **

 ~Suchi

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




 --
 Gareth
 *Cloud Computing, Openstack, Fitness, Basketball
 *
 *Novice Openstack contributer*
 *My promise: if you find any spelling or grammar mistake in my email from
 Mar 1 2013, notice me *
 *and I'll donate 1$ or 1¥ to open organization specified by you.*




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Swift]

2013-03-15 Thread Gareth
Kuo's answering is the point. But v1.0 is not the answer because keystone
use v2.0 now.
Look at your docuement, http://AUTH_HOSTNAME:5000/auth/v2.0 and
http://AUTH_HOSTNAME:5000/v2.0
have been used.

The second works for me. Try these two yourself.


On Fri, Mar 15, 2013 at 11:55 PM, Kuo Hugo tonyt...@gmail.com wrote:

 It should be a doc bug in the instruction .

 The first one is v1.0 auth (legacy auth)
 The URL suppose to be http://localhost:5000/auth/v1.0


 Hope it help


 2013/3/15 Tomáš Šoltys tomas.sol...@gmail.com

 Hi,

 I am following the OpenStack WalkThrough instructions and I am failing to
 verify my setup as described here:

 http://docs.openstack.org/folsom/openstack-compute/install/yum/content/verify-swift-installation.html

 In this forum I have found that the instructions are not exactly correct
 so I tried what was suggested but without any success.

 Following command always return '404 Not Found'

 curl -k -v -H 'X-Storage-User: service:swift' -H 'X-Storage-Pass:
 12345678' -X 'POST' http://localhost:5000/v2.0/auth

 But when for following it works:

 curl -k -v -X 'POST' http://localhost:5000/v2.0/tokens -d
 '{auth:{passwordCredentials:{username:swift,
 password:12345678}, tenantName:service}}' -H 'Content-type:
 application/json' -H 'Accept: application/xml'

 What am I missing here?

 Thanks

 Tomáš Šoltys

 tomas.sol...@gmail.com
 http://www.range-software.com
 (+420) 776-843-663

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




 --
 +Hugo Kuo+
 h...@swiftstack.com
 tonyt...@gmail.com
 +886 935004793

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




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Swift]

2013-03-15 Thread Gareth
I'm not familiar with that legacy auth =,=
In my experience, v1.0 works for tempauth, and v2.0 works for keystone.
The format of two kinds of url is not totally same.
My keystone env use http://AUTH_HOSTNAME:5000/v2.0 in this case.
And my tempauth use http://127.0.0.1:8080/auth/v1.0

I think Tomáš Šoltys has misused path as /auth/v2.0. It should be /v2.0 or
/auth/v2.0
BTW, I use newest codes.

Any misunderstanding from me?


On Sat, Mar 16, 2013 at 12:48 AM, Kuo Hugo tonyt...@gmail.com wrote:

 As I know that legacy auth was been removed from ESSEX release in
 Keystone.





 2013/3/15 Gareth academicgar...@gmail.com

 Kuo's answering is the point. But v1.0 is not the answer because keystone
 use v2.0 now.
 Look at your docuement, http://AUTH_HOSTNAME:5000/auth/v2.0 and 
 http://AUTH_HOSTNAME:5000/v2.0
 have been used.

 The second works for me. Try these two yourself.


 On Fri, Mar 15, 2013 at 11:55 PM, Kuo Hugo tonyt...@gmail.com wrote:

 It should be a doc bug in the instruction .

 The first one is v1.0 auth (legacy auth)
 The URL suppose to be http://localhost:5000/auth/v1.0


 Hope it help


 2013/3/15 Tomáš Šoltys tomas.sol...@gmail.com

 Hi,

 I am following the OpenStack WalkThrough instructions and I am failing
 to verify my setup as described here:

 http://docs.openstack.org/folsom/openstack-compute/install/yum/content/verify-swift-installation.html

 In this forum I have found that the instructions are not exactly
 correct so I tried what was suggested but without any success.

 Following command always return '404 Not Found'

 curl -k -v -H 'X-Storage-User: service:swift' -H 'X-Storage-Pass:
 12345678' -X 'POST' http://localhost:5000/v2.0/auth

 But when for following it works:

 curl -k -v -X 'POST' http://localhost:5000/v2.0/tokens -d
 '{auth:{passwordCredentials:{username:swift,
 password:12345678}, tenantName:service}}' -H 'Content-type:
 application/json' -H 'Accept: application/xml'

 What am I missing here?

 Thanks

 Tomáš Šoltys

 tomas.sol...@gmail.com
 http://www.range-software.com
 (+420) 776-843-663

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




 --
 +Hugo Kuo+
 h...@swiftstack.com
 tonyt...@gmail.com
 +886 935004793

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




 --
 Gareth
 *Cloud Computing, Openstack, Fitness, Basketball
 *
 *Novice Openstack contributer*
 *My promise: if you find any spelling or grammar mistake in my email
 from Mar 1 2013, notice me *
 *and I'll donate 1$ or 1¥ to open organization specified by you.*




 --
 +Hugo Kuo+
 h...@swiftstack.com
 tonyt...@gmail.com
 +886 935004793




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Swift with Keystone problem

2013-03-14 Thread Gareth
misconfiguration of the rings
Could you tell something about this? Maybe it'll help me avoid some future
failures.


On Wed, Mar 13, 2013 at 5:58 PM, Adam Huffman adam.huff...@gmail.comwrote:

 Thanks for looking.  With lots of help from tongli on #openstack, I
 realised that there had been a misconfiguration of the rings.  When
 that was fixed, it started working.

 Adam

 On Tue, Mar 12, 2013 at 4:15 PM, Gareth academicgar...@gmail.com wrote:
  Give your whole proxy.conf here.
 
 
  On Tue, Mar 12, 2013 at 8:54 PM, Adam Huffman adam.huff...@gmail.com
  wrote:
 
  I'm having trouble with Swift, using Keystone auth, on Folsom.
 
  When I try something simple like 'swift stat', there are two errors:
 
  Firstly a logging error:
 
  147proxy-server STDOUT: No handlers could be found for logger
  keystone.middleware.auth_token
 
  More importantly, the authorization fails:
 
  Account HEAD failed:
  http://ip:8080/v1/AUTH_dfb9c6d687be4d34bceee256cc3cb123 401
  Unauthorized
 
  With SWIFTCLIENT_DEBUG set, I can see there are two separate requests:
 
  curl -i http://ip:8080/v1/AUTH_dfb9c6d687be4d34bceee256cc3cb123 -X
  HEAD -H X-Auth-Token: da38c4407cff40b69f236ef0da9d73e8
 
  and two instances of:
 
  curl -i http://ip:8080/v1/AUTH_dfb9c6d687be4d34bceee256cc3cb123 -X
  HEAD -H X-Auth-Token: 0fc76ee28c2e43f0929c7c3ef158830d
 
  The proxy-server log for these requests is:
 
  proxy-server Authorizing as anonymous
 
  which is puzzling.  The keystone log shows that real local credentials
  are being sent:
 
  2013-03-12 12:46:11DEBUG [keystone.common.wsgi]
   REQUEST BODY 
  2013-03-12 12:46:11DEBUG [keystone.common.wsgi] {auth:
  {tenantName: admin, passwordCredentials: {username: admin,
  password: password}}}
 
  then
 
  2013-03-12 12:46:11  WARNING [keystone.common.wsgi] Authorization
  failed. Invalid user / password from ip
  2013-03-12 12:46:11DEBUG [keystone.common.wsgi] {error:
  {message: Invalid user / password, code: 401, title: Not
  Authorized}}
 
  Keystone auth works for all the other services.
 
  Any suggestions appreciated.
 
  Adam
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp
 
 
 
 
  --
  Gareth
  Cloud Computing, Openstack, Fitness, Basketball
  Novice Openstack contributer
  My promise: if you find any spelling or grammar mistake in my email from
 Mar
  1 2013, notice me
  and I'll donate 1$ or 1¥ to open organization specified by you.




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] swift containers panel permissions?

2013-03-14 Thread Gareth
thanks for your cases


On Wed, Mar 13, 2013 at 10:48 PM, Wyllys Ingersoll 
wyllys.ingers...@evault.com wrote:


 On Mar 12, 2013, at 6:56 PM, Kieran Spear kisp...@gmail.com wrote:

  Hi Wyllys,
 
  On 13 March 2013 04:19, Wyllys Ingersoll wyllys.ingers...@evault.com
 wrote:
  Can someone point me to docs describing how to add/modify/delete
 permissions for a horizon panel?
 
  I want a non-admin user to be able to access the Swift object-store
 containers panel in horizon.  Currently, the containers panel.py has the
 permissions set to:
 permissions = ('openstack.services.object-store',),
 
  Only users with Admin role seem to have access to this panel.  Can
 this be changed, and if so, where do I look to make the changes?
 
  This permission comes from your keystone service catalog. If you have
  an object-store entry in your catalog, then all users should see
  this.


 I figured it out.  The swift proxy-config had the following entry:

 [filter:keystoneauth]
 use = egg:swift#keystoneauth
 operator_roles = admin, swiftoperator

 But I did not have any swift operator role defined. I must have
 cut-and-pasted that entry from an online guide somewhere.  I changed
 swiftoperator to Member and now the non-admin users can access the
 container information.

 thanks,
 -Wyllys




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




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Swift with Keystone problem

2013-03-12 Thread Gareth
Give your whole proxy.conf here.


On Tue, Mar 12, 2013 at 8:54 PM, Adam Huffman adam.huff...@gmail.comwrote:

 I'm having trouble with Swift, using Keystone auth, on Folsom.

 When I try something simple like 'swift stat', there are two errors:

 Firstly a logging error:

 147proxy-server STDOUT: No handlers could be found for logger
 keystone.middleware.auth_token

 More importantly, the authorization fails:

 Account HEAD failed:
 http://ip:8080/v1/AUTH_dfb9c6d687be4d34bceee256cc3cb123 401
 Unauthorized

 With SWIFTCLIENT_DEBUG set, I can see there are two separate requests:

 curl -i http://ip:8080/v1/AUTH_dfb9c6d687be4d34bceee256cc3cb123 -X
 HEAD -H X-Auth-Token: da38c4407cff40b69f236ef0da9d73e8

 and two instances of:

 curl -i http://ip:8080/v1/AUTH_dfb9c6d687be4d34bceee256cc3cb123 -X
 HEAD -H X-Auth-Token: 0fc76ee28c2e43f0929c7c3ef158830d

 The proxy-server log for these requests is:

 proxy-server Authorizing as anonymous

 which is puzzling.  The keystone log shows that real local credentials
 are being sent:

 2013-03-12 12:46:11DEBUG [keystone.common.wsgi]
  REQUEST BODY 
 2013-03-12 12:46:11DEBUG [keystone.common.wsgi] {auth:
 {tenantName: admin, passwordCredentials: {username: admin,
 password: password}}}

 then

 2013-03-12 12:46:11  WARNING [keystone.common.wsgi] Authorization
 failed. Invalid user / password from ip
 2013-03-12 12:46:11DEBUG [keystone.common.wsgi] {error:
 {message: Invalid user / password, code: 401, title: Not
 Authorized}}

 Keystone auth works for all the other services.

 Any suggestions appreciated.

 Adam

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




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] openstack installation of swift

2013-03-06 Thread Gareth
In addition,

install swift in one machine:
http://docs.openstack.org/developer/swift/development_saio.html
install swift cluster:
http://docs.openstack.org/developer/swift/howto_installmultinode.html



On Thu, Mar 7, 2013 at 3:33 PM, Chmouel Boudjnah chmo...@chmouel.comwrote:

 You can install Swift as standalone and you can even use its builtin
 auth server like swauth if you really don't want deps on other things
 than swift. (auth v1 only).

 Chmouel.

 On Thu, Mar 7, 2013 at 8:28 AM, Arun Fera fer...@gmail.com wrote:
  Is it necessary to install all the components for using swift alone. I
 need
  to store some data in cloud. that is my only need. Can anyone help me.
 
  --
  Arun Fera M
  Assistant Professor,
  Department of Information Technology,
  Thiagarajar College of Engineering,
  Madurai-15.
  Mob:9790292924
  E-mail:f...@tce.edu
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp
 

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




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Swift] Define storage size for specified tenant/user

2013-03-04 Thread Gareth
You have many choices,
1. Chmouel's answer (middleware is a good implementation)
2. ACL helps you allow or abandon usage of some user, but cannot give a
specified storage limit
3. If you're developer, you could add this feature and merge it into swift.
(It's not difficult I think)



On Mon, Mar 4, 2013 at 10:57 PM, Chmouel Boudjnah chmo...@chmouel.comwrote:

 Maybe this is what you are looking for :

 https://github.com/cschwede/swquota

 Chmouel.

 On Mon, Mar 4, 2013 at 3:17 PM, jeffty wantwater...@gmail.com wrote:
  Thanks Gareth,
 
  But how to set the storage limit? The swift is installed in a single
  node, and all the authorized user can use the upload.
 
  The total amount of storage can be configured and new hard disc can be
  added into the ring, but I don't know how to divide individual space for
  a user. I try to find related info in manual but failed.
 
  Thanks.
 
  On 3/4/2013 12:43 AM, Gareth wrote:
  I think storage limit is a good feature.
 
 
  On Sat, Mar 2, 2013 at 1:14 PM, jeffty wantwater...@gmail.com
  mailto:wantwater...@gmail.com wrote:
 
  Hi All,
 
  I can upload/download in swift by execute 'swift upload' and 'swift
  download'. Is it possible to create storage and define its size for
 a
  specified tenant/user without providing any instance?
 
  Then the user can upload/download his own files in swift and don't
 need
  to own an vm instance.
 
  Thanks.
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  mailto:openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp
 
 
 
 
  --
  Gareth
  /Cloud Computing, Openstack, Fitness, Basketball
  /
  /Novice Openstack contributer/
  /My promise: if you find any spelling or grammar mistake in my email
  from Mar 1 2013, notice me /
  /and I'll donate 1$ or 1¥ to open organization specified by you./
 
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Swift] Define storage size for specified tenant/user

2013-03-04 Thread Gareth
sorry... it's Chmouel


On Tue, Mar 5, 2013 at 1:37 AM, Gareth academicgar...@gmail.com wrote:

 HI, Chomouel

 Do you think storage limit (for account or for container) is good feature
 in swift?


 On Tue, Mar 5, 2013 at 1:27 AM, Gareth academicgar...@gmail.com wrote:

 You have many choices,
 1. Chmouel's answer (middleware is a good implementation)
 2. ACL helps you allow or abandon usage of some user, but cannot give a
 specified storage limit
  3. If you're developer, you could add this feature and merge it into
 swift. (It's not difficult I think)



 On Mon, Mar 4, 2013 at 10:57 PM, Chmouel Boudjnah chmo...@chmouel.comwrote:

 Maybe this is what you are looking for :

 https://github.com/cschwede/swquota

 Chmouel.

 On Mon, Mar 4, 2013 at 3:17 PM, jeffty wantwater...@gmail.com wrote:
  Thanks Gareth,
 
  But how to set the storage limit? The swift is installed in a single
  node, and all the authorized user can use the upload.
 
  The total amount of storage can be configured and new hard disc can be
  added into the ring, but I don't know how to divide individual space
 for
  a user. I try to find related info in manual but failed.
 
  Thanks.
 
  On 3/4/2013 12:43 AM, Gareth wrote:
  I think storage limit is a good feature.
 
 
  On Sat, Mar 2, 2013 at 1:14 PM, jeffty wantwater...@gmail.com
  mailto:wantwater...@gmail.com wrote:
 
  Hi All,
 
  I can upload/download in swift by execute 'swift upload' and
 'swift
  download'. Is it possible to create storage and define its size
 for a
  specified tenant/user without providing any instance?
 
  Then the user can upload/download his own files in swift and
 don't need
  to own an vm instance.
 
  Thanks.
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  mailto:openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp
 
 
 
 
  --
  Gareth
  /Cloud Computing, Openstack, Fitness, Basketball
  /
  /Novice Openstack contributer/
  /My promise: if you find any spelling or grammar mistake in my email
  from Mar 1 2013, notice me /
  /and I'll donate 1$ or 1¥ to open organization specified by you./
 
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp




 --
 Gareth
 *Cloud Computing, Openstack, Fitness, Basketball
 *
 *Novice Openstack contributer*
 *My promise: if you find any spelling or grammar mistake in my email
 from Mar 1 2013, notice me *
  *and I'll donate 1$ or 1¥ to open organization specified by you.*




 --
 Gareth
 *Cloud Computing, Openstack, Fitness, Basketball
 *
 *Novice Openstack contributer*
 *My promise: if you find any spelling or grammar mistake in my email from
 Mar 1 2013, notice me *
 *and I'll donate 1$ or 1¥ to open organization specified by you.*




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Swift] Define storage size for specified tenant/user

2013-03-04 Thread Gareth
HI, Chomouel

Do you think storage limit (for account or for container) is good feature
in swift?


On Tue, Mar 5, 2013 at 1:27 AM, Gareth academicgar...@gmail.com wrote:

 You have many choices,
 1. Chmouel's answer (middleware is a good implementation)
 2. ACL helps you allow or abandon usage of some user, but cannot give a
 specified storage limit
 3. If you're developer, you could add this feature and merge it into
 swift. (It's not difficult I think)



 On Mon, Mar 4, 2013 at 10:57 PM, Chmouel Boudjnah chmo...@chmouel.comwrote:

 Maybe this is what you are looking for :

 https://github.com/cschwede/swquota

 Chmouel.

 On Mon, Mar 4, 2013 at 3:17 PM, jeffty wantwater...@gmail.com wrote:
  Thanks Gareth,
 
  But how to set the storage limit? The swift is installed in a single
  node, and all the authorized user can use the upload.
 
  The total amount of storage can be configured and new hard disc can be
  added into the ring, but I don't know how to divide individual space for
  a user. I try to find related info in manual but failed.
 
  Thanks.
 
  On 3/4/2013 12:43 AM, Gareth wrote:
  I think storage limit is a good feature.
 
 
  On Sat, Mar 2, 2013 at 1:14 PM, jeffty wantwater...@gmail.com
  mailto:wantwater...@gmail.com wrote:
 
  Hi All,
 
  I can upload/download in swift by execute 'swift upload' and 'swift
  download'. Is it possible to create storage and define its size
 for a
  specified tenant/user without providing any instance?
 
  Then the user can upload/download his own files in swift and don't
 need
  to own an vm instance.
 
  Thanks.
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  mailto:openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp
 
 
 
 
  --
  Gareth
  /Cloud Computing, Openstack, Fitness, Basketball
  /
  /Novice Openstack contributer/
  /My promise: if you find any spelling or grammar mistake in my email
  from Mar 1 2013, notice me /
  /and I'll donate 1$ or 1¥ to open organization specified by you./
 
 
  ___
  Mailing list: https://launchpad.net/~openstack
  Post to : openstack@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~openstack
  More help   : https://help.launchpad.net/ListHelp




 --
 Gareth
 *Cloud Computing, Openstack, Fitness, Basketball
 *
 *Novice Openstack contributer*
 *My promise: if you find any spelling or grammar mistake in my email from
 Mar 1 2013, notice me *
 *and I'll donate 1$ or 1¥ to open organization specified by you.*




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Swift][Keystone] Authentication problems with Swift and Keystone by Grizzly release

2013-03-03 Thread Gareth
-MIH8AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASBgD0cne0M65sCpOWFFSBqmA9rm14ecxkLtI9+fYJapMFIY3URuFxp8dWD2!
  YPNeR7Jxw0
 lBcGLX418nG15G559pAqtk7-vKVV+X4tvJYRuHOt33fw37-b4hsX3ZEbdeif24j4eQEJKqDe2r7cLy8Iox2rCMjC2yKfZwjhIZdmNf7ZS,

 issued_at: 2013-02-14T14:29:59.842424,
 tenant: {
 enabled: true,
 id: 56977bb5a0554761bf0eb9d6ca770d75,
 name: testing
 }
 },
 user: {
 id: 4cd4a74e15e1482f9fa16f524afd8ebe,
 name: user,
 roles: [
 {
 name: admin
 },
 {
 name: KeystoneServiceAdmin
 },
 {
 name: KeystoneAdmin
 }
 ],
 roles_links: [],
 username: user
 }
 }
 }


 Next try with swift client:

 swift -V 2.0 -A http://localhost:5000/v2.0 -U testing:user -K
 user_testing2013 stat
 ~ Account HEAD 
 failed:http://xx.xx.xx.xx:8080/v1/AUTH_56977bb5a0554761bf0eb9d6ca770d75 401
 Unauthorized



 In Swift Log:
 http://paste.ubuntu.com/1650988/



 
 ## Swift config ##
 #
 # The importent parts of config



 [pipeline:main]
 pipeline = catch_errors healthcheck proxy-logging cache ratelimit
 authtoken keystoneauth container-quotas proxy-logging proxy-server

 [app:proxy-server]
 use = egg:swift#proxy
 recheck_account_existence = 60
 recheck_container_existence = 60
 set log_level = DEBUG
 allow_account_management = true
 account_autocreate = true

 [filter:authtoken]
 paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
 auth_host = localhost
 auth_port = 35357
 auth_protocol = http
 auth_uri = http://localhost:5000/


 Is this corrrect?  Are they running on the same server?

  admin_tenant_name = service
 admin_user = swift
 admin_password = swift_testing2012

  set these as the envvars and make sure you can talk to Keystone using
 them.

 OS_USERNAME
 OS_PASSWORD

 Or with curl as above.

 If it is ssl, make sure the certs are set up correctly on both sides of
 the connection.  Again, curl should allow you to debug.  Keystone certs are
 in /etc/keystone/ssl/certs



  admin_token = xx
 auth_token = xx
 service_port = 5000
 service_host = 127.0.0.1
 delay_auth_decision = 1
 signing_dir=/etc/swift


 [filter:keystoneauth]
 use = egg:swift#keystoneauth
 # Operator roles is the role which user would be allowed to manage a
 # tenant and be able to create container or give ACL to others.
 operator_roles = admin, Member



 I think the problem is the openssl validation or parsing, i don't know.
 You see exit status of openssl in swift log and i think thats the problem.
 Is it a bug or i've configured some thinks wrong ? Do anyone runs in a
 similar problem ?


 If anyone have questions or need detailled informations, please let me know.

 Greetings
 Heiko




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




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



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




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to open organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Keystone and Swift Integration

2013-02-28 Thread Gareth
That 8080 is set in proxy conf
 X-Auth-Token is generated by keystone(actually keystoneclient) and sent by
swift. That't the token for admin:admin
admin_token is set in keystone conf

service_port = 5000
service_host = 127.0.0.1
auth_port = 35357
auth_host = 127.0.0.1
auth_protocol = http
auth_uri = http://127.0.0.1:5000/
auth_token = 012345SECRET99TOKEN012345
admin_token = 012345SECRET99TOKEN012345
admin_tenant_name = service
admin_user = swift
admin_password = swift

Such things depend on your env, which data you build in keystone. But some
details need to check documents. (checking source codes is better[?])

On Thu, Feb 28, 2013 at 11:07 PM, Julian Learmonth 
julian.learmo...@mobius.co.uk wrote:

 Hi,

 I've built an OpenStack (Folsom) demo VM (Ubuntu 12.10) and manually
 installed Swift. I am trying to get Swift to use Keystone for
 authentication, but am having trouble finding what I need to do to the
 /etc/swift/swift-proxy.conf file. The instructions I have been following
 say I should Configure the paste file for swift-proxy
 (`/etc/swift/swift-proxy.conf`), but I don't know what needs to be done.
 The document I am following is here:
 http://docs.openstack.org/folsom/openstack-compute/admin/content/configuring-swift-to-use-keystone.html

 I've only been using OpenStack for about a week, so my apologies if this
 is obvious, but I can't figure it out. I've tried googling the config file,
 but I just get the document I am using (or the previous Wessex version) and
 there's no sample file in the Swift distribution.

 The second config file I need to edit is the /etc/swift/proxy-swift.conf
 file. I have a couple of questions about this too. There's a section I need
 to paste into it as follows:

 ===
 [filter:authtoken]
 paste.filter_factory = keystone.middleware.auth_token:filter_factory
 # Delaying the auth decision is required to support token-less
 # usage for anonymous referrers ('.r:*').
 delay_auth_decision = 10
 service_port = 5000
 service_host = 127.0.0.1
 auth_port = 35357
 auth_host = 127.0.0.1
 auth_protocol = http
 auth_uri = http://127.0.0.1:5000/
 auth_token = 012345SECRET99TOKEN012345
 admin_token = 012345SECRET99TOKEN012345
 admin_tenant_name = service
 admin_user = swift
 admin_password = swift
 ===

 Do I need to change the auth port? I can run the following command
 successfully:

 ===
 root@openstack02:/home/stack/bin# curl -v -H 'X-Storage-User:
 admin:admin' -H 'X-Storage-Pass: admin' http://127.0.0.1:8080/auth/v1.0
 * About to connect() to 127.0.0.1 port 8080 (#0)
 *   Trying 127.0.0.1...
 * connected
 * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
  GET /auth/v1.0 HTTP/1.1
  User-Agent: curl/7.27.0
  Host: 127.0.0.1:8080
  Accept: */*
  X-Storage-User: admin:admin
  X-Storage-Pass: admin
 
 * additional stuff not fine transfer.c:1037: 0 0
 * HTTP 1.1 or later with persistent connection, pipelining supported
  HTTP/1.1 200 OK
  X-Storage-Url: http://127.0.0.1:8080/v1/AUTH_admin
  X-Auth-Token: AUTH_tk0022e539fae64647883b9fa529311982
  Content-Type: text/html; charset=UTF-8
  X-Storage-Token: AUTH_tk0022e539fae64647883b9fa529311982
  Content-Length: 0
  Date: Wed, 28 Feb 2013 15:00:02 GMT
 
 * Connection #0 to host 127.0.0.1 left intact
 * Closing connection #0
 root@openstack02:/home/stack/bin#
 ===

 So does that mean by auth_port is 8080? I assume that the X-Auth-Token is
 both the admin_token and auth_token? Is the admin_user (given the example
 above) going to be admin:admin?

 Any assistance would very much be appreciated!

 Regards,
 Julian.


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




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to the organization specified by you.*
360.gif___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] swift multinode test

2013-02-28 Thread Gareth
That goes infinite seems like waiting connection. You should check
connection first.

To use curl any_url is ok. Any response depends on successful connection.


On Fri, Mar 1, 2013 at 5:41 AM, Paras pradhan pradhanpa...@gmail.comwrote:

 Hi,

 I have a swift proxy node and a storage node. Also keystone resides in
 another server. Swift is from ubuntu cloud archive i.e 1.7.4. I am
 using private keys in swift proxy if it matters.The below command is
 returning nothing and goes infinite.192.168.122.20 is my keystone
 server.

 --
 root@controller:/var/log# swift -V 2 -A
 http://192.168.122.20:35357/v2.0 -U service:swift -K service_pass stat
 --

 proxy-server.conf  is http://pastebin.com/B5hXqHns


 How do start debugging? I am not seeing anything special on proxy node
 syslog and keystone.log on keystone server.

 Thanks,
 Paras

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




-- 
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*Novice Openstack contributer*
*My promise: if you find any spelling or grammar mistake in my email from
Mar 1 2013, notice me *
*and I'll donate 1$ or 1¥ to the organization specified by you.*
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp