Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/hp/block_storage_tests.rb fails without network connection #2986

Closed
voxik opened this issue Jun 9, 2014 · 4 comments
Closed

tests/hp/block_storage_tests.rb fails without network connection #2986

voxik opened this issue Jun 9, 2014 · 4 comments
Assignees

Comments

@voxik
Copy link
Contributor

voxik commented Jun 9, 2014

There are 5 failing tests such as:


  Fog::HP::BlockStorage (hp, blockstorage)
    Test good credentials + returns {:auth_token=>"auth_token", :endpoint_url=>"http://127.0.0.1/bpath/", :service_catalog=>{:"Block Storage"=>{:zone=>"http://127.0.0.1/bpath/"}}, :expires=>"2014-06-10T16:42:17+02:00"}
    Test expired credentials
      - raises Excon::Errors::Unauthorized
      getaddrinfo: Name or service not known (SocketError) (Excon::Errors::SocketError)
        /usr/share/gems/gems/excon-0.33.0/lib/excon/socket.rb:181:in `getaddrinfo'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/socket.rb:181:in `connect'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/ssl_socket.rb:131:in `connect'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/socket.rb:28:in `initialize'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/ssl_socket.rb:9:in `initialize'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/connection.rb:414:in `new'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/connection.rb:414:in `socket'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/connection.rb:126:in `request_call'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/middlewares/mock.rb:42:in `request_call'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/middlewares/instrumentor.rb:22:in `request_call'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/middlewares/base.rb:15:in `request_call'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/middlewares/base.rb:15:in `request_call'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/middlewares/base.rb:15:in `request_call'
        /usr/share/gems/gems/excon-0.33.0/lib/excon/connection.rb:269:in `request'
        /usr/share/gems/gems/fog-core-1.22.0/lib/fog/core/connection.rb:56:in `request'
        /builddir/build/BUILD/rubygem-fog-1.22.0/usr/share/gems/gems/fog-1.22.0/lib/fog/xml.rb:24:in `request'
        /builddir/build/BUILD/rubygem-fog-1.22.0/usr/share/gems/gems/fog-1.22.0/lib/fog/hp/core.rb:198:in `authenticate_v2'
        /builddir/build/BUILD/rubygem-fog-1.22.0/usr/share/gems/gems/fog-1.22.0/lib/fog/hp/block_storage.rb:121:in `initialize'
        /builddir/build/BUILD/rubygem-fog-1.22.0/usr/share/gems/gems/fog-1.22.0/tests/hp/block_storage_tests.rb:26:in `new'
        /builddir/build/BUILD/rubygem-fog-1.22.0/usr/share/gems/gems/fog-1.22.0/tests/hp/block_storage_tests.rb:26:in `block (3 levels) in <top (required)>'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:132:in `instance_eval'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:132:in `assert'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:108:in `raises'
        /builddir/build/BUILD/rubygem-fog-1.22.0/usr/share/gems/gems/fog-1.22.0/tests/hp/block_storage_tests.rb:26:in `block (2 levels) in <top (required)>'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:79:in `instance_eval'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:79:in `tests'
        /builddir/build/BUILD/rubygem-fog-1.22.0/usr/share/gems/gems/fog-1.22.0/tests/hp/block_storage_tests.rb:24:in `block in <top (required)>'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:79:in `instance_eval'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:79:in `tests'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:38:in `initialize'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:13:in `new'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo.rb:13:in `tests'
        /builddir/build/BUILD/rubygem-fog-1.22.0/usr/share/gems/gems/fog-1.22.0/tests/hp/block_storage_tests.rb:3:in `<top (required)>'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo/bin.rb:61:in `load'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo/bin.rb:61:in `block (2 levels) in run_in_thread'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo/bin.rb:58:in `each'
        /usr/share/gems/gems/shindo-0.3.8/lib/shindo/bin.rb:58:in `block in run_in_thread'

They fails when the host cannot be resolved, e.g. when /etc/resolv.conf is not available. This is default configuration for Fedora build infrastructure.

Althouhg not a show stopper, I would appreciate if this could be fixed.

@geemus
Copy link
Member

geemus commented Jun 9, 2014

@mwhagedorn could you take a look? Thanks!

@mwhagedorn
Copy link
Contributor

yup will do

@mwhagedorn mwhagedorn self-assigned this Jun 10, 2014
@plribeiro3000
Copy link
Member

@mwhagedorn Did you got a chance to take a look into this?

@plribeiro3000
Copy link
Member

Closing since we don't support HP since #3854.

Per http://www.hpcloud.com/ the HP public cloud has been shutdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants