apache / apache/libcloud

Aliyun ECS create_node fails with code InstanceType.Offline

オープン
#1,689 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
api: compute driver: aliyun ecs
主要言語
Python
スター
2.1k
フォーク
931
平均マージ
1日 2時間
マージ済み PR(30日)
4

説明

Im using your example code for Aliyun ECS create_node and its throwing an error, i wasnt able to find what the error is
Libcloud version: 3.5.1

Code being used
https://github.com/apache/libcloud/blob/trunk/demos/example_aliyun_ecs.py

Output:
```
华东1(杭州)
Found 132 images
Use image
Found 1 security groups
Use security group sg-bp1d92f8g6cz5sc0i31w
Found 0 nodes
Starting create a new node
Traceback (most recent call last):
File "C:\Users\PC\AppData\Roaming\JetBrains\PyCharm2021.3\scratches\scratch_22.py", line 56, in
node = ecs.create_node(
File "C:\Users\PC\PycharmProjects\djangoProject\vhbfnfd\lib\site-packages\libcloud\compute\drivers\ecs.py", line 556, in create_node
resp = self.connection.request(self.path, params=params)
File "C:\Users\PC\PycharmProjects\djangoProject\vhbfnfd\lib\site-packages\libcloud\common\base.py", line 659, in request
return request_to_be_executed(
File "C:\Users\PC\PycharmProjects\djangoProject\vhbfnfd\lib\site-packages\libcloud\common\base.py", line 721, in _retryable_request
response = responseCls(**kwargs)
File "C:\Users\PC\PycharmProjects\djangoProject\vhbfnfd\lib\site-packages\libcloud\common\base.py", line 165, in __init__
raise exception_from_message(
libcloud.common.exceptions.BaseHTTPError: {'code': 'InstanceType.Offline', 'message': 'The specified InstanceType has been offline.', 'request_id': '3D68DD7A-0D9D-5D7B-9726-F33A803A37C6', 'host_id': 'ecs.aliyuncs.com'}
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Libcloud 3.5.1を使用して demos/example_aliyun_ecs.py で失敗を再現し、次に libcloud/compute/drivers/ecs.py の create_node 呼び出しと、それが送信するインスタンスタイプのパラメーターを調べます。完了の条件は、InstanceType.Offline 応答の原因が example と Aliyun ECS driver のどちらにあるのかを特定し、関連する変更を特定することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。