You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (Closed) (JIRA)" <ji...@apache.org> on 2012/03/09 22:18:58 UTC

[jira] [Closed] (DTACLOUD-38) Bad URI's are reported when server started with -r 0.0.0.0

     [ https://issues.apache.org/jira/browse/DTACLOUD-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronelle Landy closed DTACLOUD-38.
---------------------------------


Closing this issue as verified in: deltacloud git commit; 61ac9fef965dd7d1af7c213357ea7d66630d88d7	clone: from https://git-wip-us.apache.org/repos/asf/deltacloud.git


./bin/deltacloudd -i ec2 -r 0.0.0.0 -p 4003
Starting Deltacloud API :: ec2 :: http://0.0.0.0:4003/api

/usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:105: warning: already initialized constant HEX
/usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:107: warning: already initialized constant TO_REMEMBER
/usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:108: warning: already initialized constant ASCII
/usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/errors.rb:128: warning: already initialized constant DEFAULT_CLOSE_ON_4XX_PROBABILITY
/usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/parsers.rb:47: warning: already initialized constant DEFAULT_XML_LIBRARY
/usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/awsbase.rb:66: warning: already initialized constant AMAZON_PROBLEMS
/usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/awsbase.rb:86: warning: already initialized constant DEFAULT_SIGNATURE_VERSION
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Debugging ON
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:4003, CTRL+C to stop
127.0.0.1 - - [09/Mar/2012 16:13:06] "GET /api/drivers?format=xml HTTP/1.1" 200 2040 0.1751

>> curl -X GET --user 'uname:password' "http://localhost:4003/api/drivers?format=xml"
<drivers>
  <driver href='http://localhost:4003/api/drivers/openstack' id='openstack'>
    <name>Openstack</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/condor' id='condor'>
    <name>Condor</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/rackspace' id='rackspace'>
    <name>Rackspace</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/vsphere' id='vsphere'>
    <name>VSphere</name>
    <provider id='default'></provider>
  </driver>
  <driver href='http://localhost:4003/api/drivers/rhevm' id='rhevm'>
    <name>RHEVM</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/sbc' id='sbc'>
    <name>SBC</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/mock' id='mock'>
    <name>Mock</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/azure' id='azure'>
    <name>Azure</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/gogrid' id='gogrid'>
    <name>Gogrid</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/google' id='google'>
    <name>Google</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/ec2' id='ec2'>
    <name>EC2</name>
    <provider id='ap-southeast-1'></provider>
    <provider id='ap-northeast-1'></provider>
    <provider id='sa-east-1'></provider>
    <provider id='eu-west-1'></provider>
    <provider id='us-west-1'></provider>
    <provider id='us-west-2'></provider>
    <provider id='us-east-1'></provider>
  </driver>
  <driver href='http://localhost:4003/api/drivers/rimuhosting' id='rimuhosting'>
    <name>RimuHosting</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/opennebula' id='opennebula'>
    <name>Opennebula</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/terremark' id='terremark'>
    <name>Terremark</name>
  </driver>
  <driver href='http://localhost:4003/api/drivers/eucalyptus' id='eucalyptus'>
    <name>Eucalyptus</name>
    <provider id='default'></provider>
  </driver>
</drivers>


                
> Bad URI's are reported when server started with -r 0.0.0.0
> ----------------------------------------------------------
>
>                 Key: DTACLOUD-38
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-38
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: 0.3.0, started with -i ec2
>            Reporter: Libor Zoubek
>            Assignee: David Lutterkort
>
> If you want you deltacloudd listen on all interfaces, you must start it with -r 0.0.0.0. Problem is, that deltacloud reports bad URI links when listing instances/keys/images and drivers.
> Part of XML response returned by http://localhost:3000/api/drivers?format=xml
>  
> <drivers>
> <driver href="http://0.0.0.0:3000/api/drivers/terremark" id="terremark">
> <name>
> Terremark
> </name>
> </driver>
> ....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira