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 (Created) (JIRA)" <ji...@apache.org> on 2012/01/24 19:06:41 UTC

[jira] [Created] (DTACLOUD-131) Error when executing 'GET api/firewalls' Deltacloud API - Ec2 provider; deltacloud-core-0.5.0

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: David Lutterkort


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

        

Re: [jira] [Created] (DTACLOUD-131) Error when executing 'GET api/firewalls' Deltacloud API - Ec2 provider; deltacloud-core-0.5.0

Posted by Francesco Vollero <ra...@gmail.com>.
On Tue, Jan 24, 2012 at 7:06 PM, Ronelle Landy (Created) (JIRA)
<ji...@apache.org> wrote:
> 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: David Lutterkort
>
>
> 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>
>

Ronelle, can you please paste as well, the deltacloud backtrace ?


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

[jira] [Assigned] (DTACLOUD-131) Error when executing 'GET api/firewalls' Deltacloud API - Ec2 provider; deltacloud-core-0.5.0

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

Marios Andreou reassigned DTACLOUD-131:
---------------------------------------

    Assignee: Marios Andreou  (was: David Lutterkort)
    
> 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

        

[jira] [Commented] (DTACLOUD-131) Error when executing 'GET api/firewalls' Deltacloud API - Ec2 provider; deltacloud-core-0.5.0

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

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

can't reproduce on f15 - currently waiting for rhel6 to download so I can reproduce your test environment; to resolve this issue definitely quicker if I could get access to your test blade - ping me when online please
                
> 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

        

[jira] [Commented] (DTACLOUD-131) Error when executing 'GET api/firewalls' Deltacloud API - Ec2 provider; deltacloud-core-0.5.0

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

Ronelle Landy commented on DTACLOUD-131:
----------------------------------------

back trace copied below:

/usr/share/deltacloud-core/bin/../lib/deltacloud/drivers/ec2/ec2_driver.rb:923:in `convert_security_group'
/usr/share/deltacloud-core/bin/../lib/deltacloud/drivers/ec2/ec2_driver.rb:921:in `each'
/usr/share/deltacloud-core/bin/../lib/deltacloud/drivers/ec2/ec2_driver.rb:921:in `convert_security_group'
/usr/share/deltacloud-core/bin/../lib/deltacloud/drivers/ec2/ec2_driver.rb:646:in `firewalls'
/usr/share/deltacloud-core/bin/../lib/deltacloud/drivers/ec2/ec2_driver.rb:645:in `each'
/usr/share/deltacloud-core/bin/../lib/deltacloud/drivers/ec2/ec2_driver.rb:645:in `firewalls'
/usr/share/deltacloud-core/bin/../lib/deltacloud/helpers/application_helper.rb:80:in `send'
/usr/share/deltacloud-core/bin/../lib/deltacloud/helpers/application_helper.rb:80:in `filter_all'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/share/deltacloud-core/bin/../lib/deltacloud/helpers/application_helper.rb:79:in `filter_all'
/usr/share/deltacloud-core/bin/../lib/deltacloud/server.rb:1163
/usr/share/deltacloud-core/bin/../lib/sinatra/rabbit.rb:125:in `instance_eval'
/usr/share/deltacloud-core/bin/../lib/sinatra/rabbit.rb:125:in `GET /api/firewalls'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1151:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1151:in `compile!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:724:in `instance_eval'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:724:in `route_eval'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:708:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:758:in `process_route'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:755:in `catch'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:755:in `process_route'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:707:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:706:in `each'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:706:in `route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:843:in `dispatch!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:644:in `call!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `instance_eval'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `invoke'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `catch'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `invoke'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:644:in `call!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:629:in `call'
/usr/share/deltacloud-core/bin/../lib/sinatra/rack_date.rb:31:in `call'
/usr/share/deltacloud-core/bin/../lib/sinatra/rack_accept.rb:149:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/head.rb:9:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/showexceptions.rb:21:in `call'
/usr/share/deltacloud-core/bin/../lib/sinatra/rack_driver_select.rb:45:in `call'
/usr/share/deltacloud-core/bin/../lib/sinatra/rack_matrix_params.rb:106:in `call'
/usr/share/deltacloud-core/bin/../lib/sinatra/rack_runtime.rb:36:in `call'
/usr/share/deltacloud-core/bin/../lib/sinatra/rack_etag.rb:41:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.3/lib/rack/accept/context.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/head.rb:9:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/commonlogger.rb:18:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/methodoverride.rb:24:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1303:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1272:in `call'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `call'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `spawn_threadpool'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `initialize'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `new'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `spawn_threadpool'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in `defer'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:54:in `process'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `send'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `run_command'
/usr/lib/ruby/gems/1.8/gems/thin-1.2.11/lib/thin/runner.rb:151:in `run!'
/usr/share/deltacloud-core/bin/deltacloudd:235
/usr/bin/deltacloudd:5:in `load'
/usr/bin/deltacloudd:5
                
> 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: David Lutterkort
>
> 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

        

[jira] [Commented] (DTACLOUD-131) Error when executing 'GET api/firewalls' Deltacloud API - Ec2 provider; deltacloud-core-0.5.0

Posted by "Marios Andreou (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (DTACLOUD-131) Error when executing 'GET api/firewalls' Deltacloud API - Ec2 provider; deltacloud-core-0.5.0

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

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

got access to a rhel machine... 2.6.32-220.el6.x86_64

installed 
deltacloud-core-0.5.0-2.rc1.el6.noarch.rpm
deltacloud-core-all-0.5.0-2.rc1.el6.noarch.rpm
deltacloud-core-ec2-0.5.0-2.rc1.el6.noarch.rpm
deltacloud-core-rhevm-0.5.0-2.rc1.el6.noarch.rpm
deltacloud-core-vsphere-0.5.0-2.rc1.el6.noarch.rpm

but cannot reproduce the above (GET /api/firewalls ==> 200 OK) - I guess the best thing to do is to try reproduce on the actual qa machine

                
> 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

        

[jira] [Closed] (DTACLOUD-131) Error when executing 'GET api/firewalls' Deltacloud API - Ec2 provider; deltacloud-core-0.5.0

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

Ronelle Landy closed DTACLOUD-131.
----------------------------------

    Resolution: Fixed

Closing this issue as with the correct version of aws, 2.5.4, the firewalls are accessible.

Fix needed to: deltacloud-core-ec2-0.5.0-2.rc1.el6.noarch.rpm   - which should be setting a minimum of 2.5.4 for aws

                
> 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