无法使用deltacloud启动AWS EC2实例

andpei

我正在尝试通过curl使用deltacloud API管理EC2云实例使用模拟驱动程序,一切正常: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"

但是使用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"

返回:缺少执行此操作所需的功能

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

因此,很明显,deltacloud处理GET,但不将POST请求转发给AWS

即使单击Web界面(10.0.0.3:3001)上的“开始”按钮,也会发生此问题。accesskey和secretaccesskey在python-boto上运行良好。

谁能建议我怎么了?

andpei

简短的答案是,您无法在当前版本1.1.3(2013-04-17)中使用deltacloud启动已停止的Amazon EC2实例也许很快就会有一个更新的版本,但是由于Red Hat减少了对他们的支持,因此deltacloud开发速度减慢了。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章