简体   繁体   English

无法使用deltacloud启动AWS EC2实例

[英]Unable to start AWS EC2 instance with deltacloud

I am trying to manage a EC2 cloud instance with deltacloud API through curl . 我正在尝试通过curl使用deltacloud API管理EC2云实例。 With the mock driver everything works fine: deltacloudd -i mock -r 10.0.0.3 使用模拟驱动程序,一切正常:deltacloudd -i模拟-r 10.0.0.3

curl --user "mockuser:mockpassword" "http://10.0.0.3:3001/api/instances?format=xml"
curl -X POST --user "mockuser:mockpassword" "http://10.0.0.3:3001/api/instances/inst1/stop?format=xml"

But with EC2 I am unable to start a stopped instance: deltacloudd -i ec2 -P eu-west-1 -r 10.0.0.3 -V 但是使用EC2时,我无法启动停止的实例: deltacloudd -i ec2 -P eu-west-1 -r 10.0.0.3 -V

curl --user "accesskey:secretaccesskey" "http://10.0.0.3:3001/api/instances?format=xml"
curl -X POST --user "accesskey:secretaccesskey" "http://10.0.0.3:3001/api/instances/i-NNNNNNNN/start?format=xml"

Returns: The required capability to execute this operation is missing 返回: 缺少执行此操作所需的功能

Deltacloud log output: Deltacloud日志输出:

Listening on 10.0.0.3:3001, CTRL+C to stop
D, [2014-06-25T10:47:34.149001 #3575] DEBUG -- : New Aws::Ec2 using per_thread-connection mode
D, [2014-06-25T10:47:34.150897 #3575] DEBUG -- : Opening new HTTPS connection to ec2.eu-west-1.amazonaws.com:443
10.0.0.5 - - [25/Jun/2014 10:47:34] "GET /api/instances?format=xml HTTP/1.1" ec2 eu-west-1 200 1628 0.6204
10.0.0.5 - - [25/Jun/2014 10:48:14] "POST /api/instances/i-NNNNNNNN/start?format=xml {} HTTP/1.1" ec2 eu-west-1 412 60 0.0077

Its therefore obvious that deltacloud process GET, but not forward the POST request to AWS . 因此,很明显,deltacloud处理GET,但不将POST请求转发给AWS

The Problem also happens even by clicking the start button at the webinterface (10.0.0.3:3001). 即使单击Web界面(10.0.0.3:3001)上的“开始”按钮,也会发生此问题。 The accesskey and secretaccesskey are working fine with python-boto. accesskey和secretaccesskey在python-boto上运行良好。

Can anyone suggest me whats wrong? 谁能建议我怎么了?

The short answer is, that you can not start a stopped Amazon EC2 instance with deltacloud in the current version 1.1.3 (2013-04-17). 简短的答案是,您无法在当前版本1.1.3(2013-04-17)中使用deltacloud 启动已停止的Amazon EC2实例 Perhaps there will be soon a newer version, but since Red Hat reduced their support the development of deltacloud slowed down. 也许很快就会有一个新版本,但是由于Red Hat 减少了对他们的支持 ,因此deltacloud开发速度减慢了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM