You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Rajaguganeswaran K (Created) (JIRA)" <ji...@apache.org> on 2012/02/09 10:04:59 UTC

[jira] [Created] (DTACLOUD-141) Invalid URI error.

Invalid URI error.
------------------

                 Key: DTACLOUD-141
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
             Project: DeltaCloud
          Issue Type: Bug
         Environment: Fedora 15
            Reporter: Rajaguganeswaran K
            Assignee: David Lutterkort


Hai,

Can we use deltacloudc command to list all the images of ec2 as given for the mock?

deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api

I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.

/usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: AKIAJ2QALBYPWQHIUEGQ:smeeL+hNiZXyprNziLUDiqEVEcg1IbpozWfXAF (or bad hostname?) (URI::InvalidURIError)
	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
	from /usr/bin/deltacloudc:19:in `load'
	from /usr/bin/deltacloudc:19

what could be the reason?


Gugan


--
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

        

[jira] [Resolved] (DTACLOUD-141) Invalid URI error.

Posted by "Ronelle Landy (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronelle Landy resolved DTACLOUD-141.
------------------------------------

    Resolution: Fixed

Marking this JIRA resolved - patch posted fixes the issue.
Will close out JIRA once we have tested the patch on the master branch.
                
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Updated] (DTACLOUD-141) Invalid URI error.

Posted by "Rajaguganeswaran K (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajaguganeswaran K updated DTACLOUD-141:
----------------------------------------

    Description: 
Hai,

Can we use deltacloudc command to list all the images of ec2 as given for the mock?

deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api

I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.

/usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
	from /usr/bin/deltacloudc:19:in `load'
	from /usr/bin/deltacloudc:19

what could be the reason?


Gugan


  was:
Hai,

Can we use deltacloudc command to list all the images of ec2 as given for the mock?

deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api

I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.

/usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: AKIAJ2QALBYPWQHIUEGQ:smeeL+hNiZXyprNziLUDiqEVEcg1IbpozWfXAF (or bad hostname?) (URI::InvalidURIError)
	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
	from /usr/bin/deltacloudc:19:in `load'
	from /usr/bin/deltacloudc:19

what could be the reason?


Gugan


    
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Commented] (DTACLOUD-141) Invalid URI error.

Posted by "Ronelle Landy (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252565#comment-13252565 ] 

Ronelle Landy commented on DTACLOUD-141:
----------------------------------------

Tested with deltacloud git commit version: 84d3c990959acd90be76f93d1d149d2124f4c94f 	branch 'master' of https://git-wip-us.apache.org/repos/asf/deltacloud plus patch posted by mfojtik

Using mock driver:

./bin/deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api 
img1       | img1                 | x86_64 | Fedora 10            |   fedoraproject
img2       | img2                 | i386   | Fedora 10            |   fedoraproject
img3       | img3                 | i386   | JBoss                |        mockuser

Using rhevm and vsphere which have special characters in their username:password combos:

>> ./bin/deltacloudc images index -U <username with @ > -P <password> -u http://localhost:3004/api
53f70a9e-2 | 0177a2f0-ef7e-4c1c-a | x86_64 | Template by iwhd     |  <username>
...
6867beb2-f | 69eda91e-f390-486e-8 | x86_64 | Template by iwhd     |  <username>

>> ./bin/deltacloudc images index -U <username> -P <password with special character> -u http://localhost:3006/api
factory-im | factory-image-01f5c7 | x86_64 | Other Linux (64-bit) |   <username>
...
tI2        | tI2                  | x86_64 | Other Linux (64-bit) |   <username>



                
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Reopened] (DTACLOUD-141) Invalid URI error.

Posted by "Ronelle Landy (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronelle Landy reopened DTACLOUD-141:
------------------------------------


Reopening this JIRA as Michal Fojtik sent a patch for deltacloudc username/password issue.
                
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Closed] (DTACLOUD-141) Invalid URI error.

Posted by "Ronelle Landy (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronelle Landy closed DTACLOUD-141.
----------------------------------

    Resolution: Not A Problem

Closing the JIRA as there has been no correspondence since 02/29/2012. If the reported concern remains a problem, please continue the discussion on the Deltacloud mailing list: dev@deltacloud.apache.org.
                
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Commented] (DTACLOUD-141) Invalid URI error.

Posted by "David Lutterkort (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219358#comment-13219358 ] 

David Lutterkort commented on DTACLOUD-141:
-------------------------------------------

Hi Gugan,

I can't reproduce the issue here. The command line seems correct, the only thing a little hinky is that you have the options after the argument (i.e. 'images index' should go last)

But in my testing that doesn't cause a problem. Can you provide some more information ? Are you sure the URL passed in is really the one you mention in the ticket ? The error you get indicates that the URL is invalid, and can not be parsed.
                
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Closed] (DTACLOUD-141) Invalid URI error.

Posted by "Ronelle Landy (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ronelle Landy closed DTACLOUD-141.
----------------------------------


Closing this issues as fixed in deltacloud git commit version: 6499cf7feba60ccdd26a750627b4df7d798036e6	branch 'master' of https://git-wip-us.apache.org/repos/asf/deltacloud

Starting server:
>> API_PROVIDER="https://qeblade26.rhq.lab.eng.bos.redhat.com:8443/api;4051216f-a778-488f-8ae4-5a2541b009ff" ./bin/deltacloudd -i rhevm -r localhost -p 3004

Querying client:
>>./bin/deltacloudc images index -U <username with @> -P <password> -u http://localhost:3004/api 

53f70a9e-2 | 0177a2f0-ef7e-4c1c-a | x86_64 | Template by iwhd     |  <username>
dec26433-9 | 03cee940-a7b0-4819-a | x86_64 | Template by iwhd     |  <username>

Querying client:
>> ./bin/deltacloudc images index -U <username> -P <password with special character> -u http://localhost:3005/api 
factory-im | factory-image-01f5c7 | x86_64 | Other Linux (64-bit) |   <username>
factory-im | factory-image-4d7d2e | x86_64 | Other Linux (64-bit) |   <username>



                
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Closed] (DTACLOUD-141) Invalid URI error.

Posted by "Rajaguganeswaran K (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajaguganeswaran K closed DTACLOUD-141.
---------------------------------------

    Resolution: Fixed
    
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Commented] (DTACLOUD-141) Invalid URI error.

Posted by "Rajaguganeswaran K (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248401#comment-13248401 ] 

Rajaguganeswaran K commented on DTACLOUD-141:
---------------------------------------------

Thank you Sir.


Regards,
Raja.


On Fri, Apr 6, 2012 at 2:14 AM, David Lutterkort (Commented) (JIRA) <


                
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Reopened] (DTACLOUD-141) Invalid URI error.

Posted by "Rajaguganeswaran K (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajaguganeswaran K reopened DTACLOUD-141:
-----------------------------------------

    
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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

        

[jira] [Commented] (DTACLOUD-141) Invalid URI error.

Posted by "David Lutterkort (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247649#comment-13247649 ] 

David Lutterkort commented on DTACLOUD-141:
-------------------------------------------

To add to this: certain characters in the username/password need to be escaped in URI's. In particular, the character '@' should be replaced with '%40', and the character ':' should be replaced with '%3A'; so if your usernam is 'foo:yo' and your password is 'b@r', you should use a URL like 'http://foo%3Ayo:b%40r@example.com/api'

                
> Invalid URI error.
> ------------------
>
>                 Key: DTACLOUD-141
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-141
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Fedora 15
>            Reporter: Rajaguganeswaran K
>            Assignee: David Lutterkort
>
> Hai,
> Can we use deltacloudc command to list all the images of ec2 as given for the mock?
> deltacloudc images index -u http://mockuser:mockpassword@localhost:3001/api
> I tried the above with ec2 access id and secret key. It results in InvalidURIError as given below.
> /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize': the scheme http does not accept registry part: accessid:secret key of ec2 (or bad hostname?) (URI::InvalidURIError)
> 	from /usr/lib/ruby/1.8/uri/http.rb:78:in `initialize'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `new'
> 	from /usr/lib/ruby/1.8/uri/common.rb:488:in `parse'
> 	from /usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.5.0/bin/deltacloudc:100
> 	from /usr/bin/deltacloudc:19:in `load'
> 	from /usr/bin/deltacloudc:19
> what could be the reason?
> Gugan

--
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