You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Christian Karnath (JIRA)" <ji...@apache.org> on 2012/07/06 12:01:35 UTC
[jira] [Created] (DTACLOUD-254) EC2 and Eucalyptus driver
GET-request errors
Christian Karnath created DTACLOUD-254:
------------------------------------------
Summary: EC2 and Eucalyptus driver GET-request errors
Key: DTACLOUD-254
URL: https://issues.apache.org/jira/browse/DTACLOUD-254
Project: DeltaCloud
Issue Type: Bug
Components: Server
Environment: ruby1.8, deltacloud-core-1.0.0, deltacloud-core-head
Reporter: Christian Karnath
If deltacloudd is not started with the ec2 or eucalyptus driver (i. e. deltacloudd -i mock) and the driver is changed via X-Deltacloud-Driver to ec2 or eucalyptus, the following errors will occur:
/api/firewalls
-> The required capability to execute this operation is missing
/api/addresses
-> The required capability to execute this operation is missing
/api/realms/<realm>
-> Not Found
/api/images/<image>
-> Not Found
/api/keys/<key>
-> Not Found
--
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-254) EC2 and Eucalyptus driver
GET-request errors
Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy closed DTACLOUD-254.
----------------------------------
Verified in deltacloud commit version: dfa9c3535f0705ead13a18e0016ca6333b74a6c4 . Test results are included below:
>> ./bin/deltacloudd -i mock -r <server> -p 3009
>> curl -X GET -H "X-Deltacloud-Driver:ec2" -H "X-Deltacloud-Provider:us-east-1" --user "un;pw5" "http://nec-em16.rhts.eng.bos.redhat.com:3009/api/addresses?format=xml"
<?xml version='1.0' encoding='utf-8' ?>
<addresses>
<address href='http://nec-em16.rhts.eng.bos.redhat.com:3009/api/addresses/23.23.228.199' id='23.23.228.199'>
<ip>23.23.228.199</ip>
<actions>
<link href='http://nec-em16.rhts.eng.bos.redhat.com:3009/api/addresses/23.23.228.199' method='delete' rel='destroy' />
<link href='http://nec-em16.rhts.eng.bos.redhat.com:3009/api/disassociate_addresses/23.23.228.199' method='post' rel='disassociate' />
</actions>
<instance href='http://nec-em16.rhts.eng.bos.redhat.com:3009/api/instances/i-5f31ae24' id='i-5f31ae24'></instance>
</address>
</addresses>
> EC2 and Eucalyptus driver GET-request errors
> --------------------------------------------
>
> Key: DTACLOUD-254
> URL: https://issues.apache.org/jira/browse/DTACLOUD-254
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: ruby1.8, deltacloud-core-1.0.0, deltacloud-core-head
> Reporter: Christian Karnath
> Assignee: Michal Fojtik
>
> If deltacloudd is not started with the ec2 or eucalyptus driver (i. e. deltacloudd -i mock) and the driver is changed via X-Deltacloud-Driver to ec2 or eucalyptus, the following errors will occur:
> /api/firewalls
> -> The required capability to execute this operation is missing
> /api/addresses
> -> The required capability to execute this operation is missing
> /api/realms/<realm>
> -> Not Found
> /api/images/<image>
> -> Not Found
> /api/keys/<key>
> -> Not Found
--
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-254) EC2 and Eucalyptus driver
GET-request errors
Posted by "Michal Fojtik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Fojtik resolved DTACLOUD-254.
------------------------------------
Resolution: Fixed
commit 5470471eb20e6bb17ab91c2eb4856f215f91c38e
Author: Michal Fojtik <mf...@redhat.com>
Date: Tue Jul 10 14:49:51 2012 +0200
Core: Bumped the sinatra-rabbit version in gemspec (DTACLOUD-254)
commit 255bb89e0453601c4af48faf996171a6fd2cb58a
Author: Michal Fojtik <mf...@redhat.com>
Date: Tue Jul 10 14:31:23 2012 +0200
Core: Replaced 'check_capability' method with Sinatra::Base 'set' method
The 'check_capability' method set a class variable in Sinatra::Rabbit
to a lambda that was evaluated when server was starting.
However this class variable was not replaced when client switched the
driver using HTTP headers.
This patch will replace it with 'set' and now the lambda is evaluated
for every request in Sinatra::Rabbit (sinatra-rabbit 1.0.7)
> EC2 and Eucalyptus driver GET-request errors
> --------------------------------------------
>
> Key: DTACLOUD-254
> URL: https://issues.apache.org/jira/browse/DTACLOUD-254
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: ruby1.8, deltacloud-core-1.0.0, deltacloud-core-head
> Reporter: Christian Karnath
> Assignee: Michal Fojtik
>
> If deltacloudd is not started with the ec2 or eucalyptus driver (i. e. deltacloudd -i mock) and the driver is changed via X-Deltacloud-Driver to ec2 or eucalyptus, the following errors will occur:
> /api/firewalls
> -> The required capability to execute this operation is missing
> /api/addresses
> -> The required capability to execute this operation is missing
> /api/realms/<realm>
> -> Not Found
> /api/images/<image>
> -> Not Found
> /api/keys/<key>
> -> Not Found
--
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-254) EC2 and Eucalyptus driver
GET-request errors
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou reassigned DTACLOUD-254:
---------------------------------------
Assignee: Marios Andreou
> EC2 and Eucalyptus driver GET-request errors
> --------------------------------------------
>
> Key: DTACLOUD-254
> URL: https://issues.apache.org/jira/browse/DTACLOUD-254
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: ruby1.8, deltacloud-core-1.0.0, deltacloud-core-head
> Reporter: Christian Karnath
> Assignee: Marios Andreou
>
> If deltacloudd is not started with the ec2 or eucalyptus driver (i. e. deltacloudd -i mock) and the driver is changed via X-Deltacloud-Driver to ec2 or eucalyptus, the following errors will occur:
> /api/firewalls
> -> The required capability to execute this operation is missing
> /api/addresses
> -> The required capability to execute this operation is missing
> /api/realms/<realm>
> -> Not Found
> /api/images/<image>
> -> Not Found
> /api/keys/<key>
> -> Not Found
--
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-254) EC2 and Eucalyptus driver
GET-request errors
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou reassigned DTACLOUD-254:
---------------------------------------
Assignee: Michal Fojtik (was: Marios Andreou)
OK - tracked issue to sinatra-rabbit - seems to be that capabilities are evaluated based on driver deltacloudd is started with - rather than the one user requests through headers/matrix params...
.../gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb
===> 372 def self.control(&block)
===> 359 def self.has_capability?
assigning to michal for faster resolution as he wrote sinatra-rabbit
> EC2 and Eucalyptus driver GET-request errors
> --------------------------------------------
>
> Key: DTACLOUD-254
> URL: https://issues.apache.org/jira/browse/DTACLOUD-254
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: ruby1.8, deltacloud-core-1.0.0, deltacloud-core-head
> Reporter: Christian Karnath
> Assignee: Michal Fojtik
>
> If deltacloudd is not started with the ec2 or eucalyptus driver (i. e. deltacloudd -i mock) and the driver is changed via X-Deltacloud-Driver to ec2 or eucalyptus, the following errors will occur:
> /api/firewalls
> -> The required capability to execute this operation is missing
> /api/addresses
> -> The required capability to execute this operation is missing
> /api/realms/<realm>
> -> Not Found
> /api/images/<image>
> -> Not Found
> /api/keys/<key>
> -> Not Found
--
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