[ 
https://issues.apache.org/jira/browse/DTACLOUD-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202713#comment-13202713
 ] 

Ronelle Landy edited comment on DTACLOUD-127 at 2/7/12 8:03 PM:
----------------------------------------------------------------

Verification done for checking provider and username/password credentials:

** From the server side:

Valid provider, invalid credentials (ec2)
Server message
Deltacloud::ExceptionHandler::AuthenticationFailure - 401 Unauthorized

Valid provider, invalid creds (rhevm)
    Server message
    Deltacloud::ExceptionHandler::AuthenticationFailure - 401 Unauthorized

Invalid provider, valid creds(ec2)
502 - Backend Server Error
xxx temporarily unavailable: (getaddrinfo: Name or service not known)
 Server message
 Deltacloud::ExceptionHandler::ProviderError - xxx temporarily unavailable: 
(getaddrinfo: Name or service not known)

Invalid provider, valid credentials (rhevm) (using curl this time)
curl -X GET --user 'xx:xx' 
"http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3005/api/images?format=xml";
<error status='500' url='/api/images?format=xml'>
  <kind>backend_error</kind>
  <backend driver='rhevm' provider='xxx'>
    <code>500</code>
  </backend>
  <message><![CDATA[Unhandled exception or status code (getaddrinfo: Name or 
service not known)]]></message>
  <backtrace>
    <![CDATA[/usr/lib/ruby/1.8/net/http.rb:560:in `initialize'
    /usr/lib/ruby/1.8/net/http.rb:560:in `open'
    ......

** From the client side - checking through conductor (where BZ-753880 was 
logged)
Adding an account (either invalid provider, valid credentials OR valid 
provider, invalid creds gives the following error)

Cannot add the provider account.
Errors

    1 error prohibited this record from being saved:
    An error occurred when checking provider credentials. Please check your 
setup and try again.




                
      was (Author: rlandy):
    Verification done for checking provider and username/password credentials:

** From the server side:

Valid provider, invalid credentials (ec2)
Server message
Deltacloud::ExceptionHandler::AuthenticationFailure - 401 Unauthorized

Valid provider, invalid creds (rhevm)
    Server message
    Deltacloud::ExceptionHandler::AuthenticationFailure - 401 Unauthorized

Invalid provider, valid creds(ec2)
502 - Backend Server Error
xxx temporarily unavailable: (getaddrinfo: Name or service not known)
 Server message
 Deltacloud::ExceptionHandler::ProviderError - xxx temporarily unavailable: 
(getaddrinfo: Name or service not known)

Invalid provider, valid credentials (rhevm) (using curl this time)
curl -X GET --user 'xx:xx' 
"http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3005/api/images?format=xml";
<error status='500' url='/api/images?format=xml'>
  <kind>backend_error</kind>
  <backend driver='rhevm' provider='xxx'>
    <code>500</code>
  </backend>
  <message><![CDATA[Unhandled exception or status code (getaddrinfo: Name or 
service not known)]]></message>
  <backtrace>
    <![CDATA[/usr/lib/ruby/1.8/net/http.rb:560:in `initialize'
    /usr/lib/ruby/1.8/net/http.rb:560:in `open'
    ......

** From the client side - checking through conductor (where BZ-753880 was 
logged)
Adding an account (either invalid provider, valid credentials OR valid 
provider, invalid creds gives the following error)

Cannot add the provider account.
Errors

    1 error prohibited this record from being saved:
    An error occurred when checking provider credentials. Please check your 
setup and try again.

Cannot add the provider account.
Errors

    1 error prohibited this record from being saved:
    An error occurred when checking provider credentials. Please check your 
setup and try again.

Cannot add the provider account.
Errors

    1 error prohibited this record from being saved:
    An error occurred when checking provider credentials. Please check your 
setup and try again.

Cannot add the provider account.
Errors

    1 error prohibited this record from being saved:
    An error occurred when checking provider credentials. Please check your 
setup and try again


                  
> Add better error handling on valid_credentials? request
> -------------------------------------------------------
>
>                 Key: DTACLOUD-127
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-127
>             Project: DeltaCloud
>          Issue Type: Improvement
>          Components: Server
>            Reporter: Martyn Taylor
>            Assignee: Michal Fojtik
>
> In order to determine why a particular valid_credentials? request (using the 
> ruby client) has failed.  There should be sufficient error/exceptions.  
> Example:
> thin server (localhost:3002) [deltacloud-mock][22098]:
> Aws::AwsError:ec2-eu-west-1 temporarily unavailable: (getaddrinfo: Name or 
> service not known)
> This causes failure of the valid_credentials? method but offers no more 
> information.
> This is related to this BZ in aeolus-conductor: 
> https://bugzilla.redhat.com/show_bug.cgi?id=753880

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

        

Reply via email to