Hi, thanks it work, but i fail when run this command
$ swift -V 2 -A http://localhost:5000/v2.0 -U admin:admin -K ADMIN stat

[Errno -5] No address associated with hostname

On 9/24/2013 4:58 PM, Hua ZZ Zhang wrote:

try the sample here:
http://docs.openstack.org/grizzly/openstack-compute/admin/content/configuring-swift-to-use-keystone.html

Best Regards,


    Edward Zhang(张华)
    Advisory Software Engineer
    Software Standards & Open Source Software
    Emerging Technology Institute(ETI)
    IBM China Software Development Lab
    e-mail: zhu...@cn.ibm.com
    Notes ID: Hua ZZ Zhang/China/IBM
    Tel: 86-10-82450483
    地址:北京市海淀区东北旺西路8号 中关村软件园28号楼 环宇大厦3层 邮编:100193
    Address: 3F Ring, Building 28 Zhongguancun Software Park, 8 Dongbeiwang West Road, Haidian District, Beijing, P.R.C.100193


Inactive
        hide details for Mahardhika Gilang ---09/24/2013 04:33:12
        PM---Mahardhika Gilang <mahardika.gil...@andalabs.com>Mahardhika Gilang ---09/24/2013 04:33:12 PM---Mahardhika Gilang <mahardika.gil...@andalabs.com>


To

    Hua ZZ Zhang/China/IBM@IBMCN,

cc


Subject

    Re: [Openstack] Swift not detect Keystone and Authtoken

I got this error
LookupError: No loader given in section '
filter:keystoneauth'

On 9/24/2013 2:17 PM, Hua ZZ Zhang wrote:

    I don't get what does it mean for "this syntax give same result"?
    what is your version of swift and keystone?
    Here's my suggestion for 3 sections in the proxy server paste file:

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

      [
      filter:authtoken]
      paste.filter_factory =
      keystoneclient.middleware.auth_token:filter_factory
      signing_dir = /var/cache/swift/
      auth_uri =
      http://10.10.10.40:5000/
      auth_host = 10.10.10.40
      #auth_uri =
      http://192.168.7.85:5000/
      #auth_host = 192.168.7.85
      auth_port = 35357
      auth_protocol = https
      admin_tenant_name = service
      admin_user = swift
      admin_password = admin
      #cache = swift.cache
      auth_token = admin

      [
      filter:keystoneauth]
      #use = egg:swift#keystoneauth
      operator_roles = Member,admin
      is_admin = true
       

    http://docs.openstack.org/grizzly/openstack-compute/admin/content/configuring-swift-to-use-keystone.html


    Inactive hide details for Mahardhika Gilang ---2013-09-24
          上午 11:58:24---Mahardhika Gilang
          <mahardika.gil...@andalabs.com>Mahardhika Gilang ---2013-09-24 上午 11:58:24---Mahardhika Gilang <mahardika.gil...@andalabs.com>
    To
      Hua ZZ Zhang/China/IBM@IBMCN,
    cc
    Subject
      Re: [Openstack] Swift not detect Keystone and Authtoken 

    Hi, i've try change with auth_token and it's work, but does this syntax give same result?

    On 9/24/2013 6:21 AM, Hua ZZ Zhang wrote:

      try this:
      paste.filter_factory =
       keystoneclient.middleware.auth_token:filter_factory



      Inactive hide details for Mahardhika Gilang
            ---2013-09-23 下午 07:15:28---Mahardhika Gilang
            <mahardika.gil...@andalabs.com>Mahardhika Gilang ---2013-09-23 下午 07:15:28---Mahardhika Gilang <mahardika.gil...@andalabs.com>
      To
        Hua ZZ Zhang/China/IBM@IBMCN,
      cc
      Subject
        Re: [Openstack] Swift not detect Keystone and Authtoken 

      Hi, thanks for answering, i believe it work till i stuck at this error
      ImportError: No module named swift_auth

      it's on
      filter:keystone part
      paste.filter_factory = keystone.middleware.swift_auth:filter_factory

      how to solved this issue?

      On 9/23/2013 4:53 PM, Hua ZZ Zhang wrote:


        The
        authtoken and keystone middleware should be put ahead of proxy-server.
        you need to change the main pipeline as below:


        [pipeline:main]
        pipeline = catch_errors healthcheck proxy-logging cache authtoken keystone
        proxy-logging proxy-server


        Best Regards,


          Edward Zhang(张华) 




--
Regards,
Mahardhika Gilang




_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to