“雾openstack”认证错误

时间:2018-02-06 13:26:46

标签: ruby curl proxy openstack fog

尝试将本地部署的openstack(pike)与雾连接。

首先,curl连接与命令配合良好: https://hastebin.com/fihojuqize.scala

考虑到这一点,我创建了雾凭证文件:https://hastebin.com/hexanixucu.scala并运行

  

雾openstack

     

计算[:开栈] .servers

这会导致类似(full text here

的错误
  :status        => 302
  :status_line   => "HTTP/1.1 302 Found\r\n"

    from /var/lib/gems/2.3.0/gems/excon-0.60.0/lib/excon/middlewares/expects.rb:7:in `response_call'
    from /var/lib/gems/2.3.0/gems/excon-0.60.0/lib/excon/middlewares/response_parser.rb:9:in `response_call'
    from /var/lib/gems/2.3.0/gems/excon-0.60.0/lib/excon/connection.rb:414:in `response'
    from /var/lib/gems/2.3.0/gems/excon-0.60.0/lib/excon/connection.rb:263:in `request'
    from /var/lib/gems/2.3.0/gems/fog-core-1.45.0/lib/fog/core/connection.rb:81:in `request'
    from /var/lib/gems/2.3.0/gems/fog-openstack-0.1.23/lib/fog/openstack.rb:610:in `get_version'
    from /var/lib/gems/2.3.0/gems/fog-openstack-0.1.23/lib/fog/openstack.rb:583:in `get_supported_microversion'
    from /var/lib/gems/2.3.0/gems/fog-openstack-0.1.23/lib/fog/openstack/core.rb:122:in `set_microversion'
    from /var/lib/gems/2.3.0/gems/fog-openstack-0.1.23/lib/fog/openstack/core.rb:212:in `authenticate'
    from /var/lib/gems/2.3.0/gems/fog-openstack-0.1.23/lib/fog/compute/openstack.rb:397:in `initialize'
    from /var/lib/gems/2.3.0/gems/fog-core-1.45.0/lib/fog/core/service.rb:115:in `new'
    from /var/lib/gems/2.3.0/gems/fog-core-1.45.0/lib/fog/core/service.rb:115:in `new'
    from /var/lib/gems/2.3.0/gems/fog-core-1.45.0/lib/fog/core/services_mixin.rb:16:in `new'
    from /var/lib/gems/2.3.0/gems/fog-core-1.45.0/lib/fog/compute.rb:54:in `new'
    from /var/lib/gems/2.3.0/gems/fog-core-1.45.0/lib/fog/core/services_mixin.rb:4:in `[]'
    from (irb):1:in `<top (required)>'
    from /var/lib/gems/2.3.0/gems/fog-1.42.0/bin/fog:76:in `block in <top (required)>'
    from /var/lib/gems/2.3.0/gems/fog-1.42.0/bin/fog:76:in `catch'
    from /var/lib/gems/2.3.0/gems/fog-1.42.0/bin/fog:76:in `<top (required)>'
    from /usr/local/bin/fog:23:in `load'
    from /usr/local/bin/fog:23:in `<main>'

第一次请求“/ identity / v3 / auth / tokens”已完成,但整体结果不好......

值得一提 - 我已经配置了cntlm代理。

1 个答案:

答案 0 :(得分:0)

导出包含此类

等身份验证信息的openrc文件

导出OS_USERNAME = admin

导出OS_PASSWORD = ADMIN_PASS

导出OS_TENANT_NAME = admin

导出OS_AUTH_URL = http://controller:35357/v3.0