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

Marios Andreou commented on DTACLOUD-131:
-----------------------------------------

ok - managed to reproduce.

the problem is with the version of aws gem that is installed on that machine - 
aws 2.4.5. Basically, prior to version 2.5.4 of the gem there were issues with 
the EC2 security groups parsing code. We fixed that 
(https://github.com/appoxy/aws/pull/81) and so our .gemspec has a minimum 
requirement of aws '>=2.5.4'. Once i (manually) installed latest aws gem 
(2.5.6) the problem went away as expected.

Looks like that minimum requirement didn't make its way into 
deltacloud-core-ec2-0.5.0-2.rc1.el6.noarch.rpm. Its likely that this machine 
already had the aws gem (2.4.5) and when you installed the deltacloud-core-ec2 
rpm there was no attempt to install a newer version (that satisfies our min. 
requirement). Addressing this with Michal
                
> Error when executing 'GET api/firewalls' Deltacloud API  - Ec2 provider; 
> deltacloud-core-0.5.0
> ----------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-131
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-131
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Latest deltacloud-core rpm 
> (http://xxx/deltacloud-core/0.5.0/2.rc1.el6/noarch/deltacloud-core-all-0.5.0-2.rc1.el6.noarch.rpm)
> RHEL 6.2
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>
> curl -X GET --user 'username:password' 
> "http:/server:3001/api/firewalls?format=xml"
> <error status='500' url='/api/firewalls?format=xml'>
>   <kind>backend_error</kind>
>   <backend driver='ec2'>
>     <code>500</code>
>   </backend>
>   <message><![CDATA[undefined method `each' for nil:NilClass]]></message>
> </error>
> PS: Second issue: Looking at the ec2 management console, it looks like (when 
> the user could access firewalls), Deltacloud api returns the firewall name as 
> the id.
>  curl -X GET --user 'uname:password' 
> "http://server:3001/api/firewalls?format=xml";
> <?xml version='1.0' encoding='utf-8' ?>
> <firewalls>
>   <firewall href='http:/server:3001/api/firewalls/quicklaunch-1' 
> id='quicklaunch-1'>
> According to ec2 console,
>  - Group Name: quicklaunch-1
>  - Group ID: sg-ca17faa2

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