apache / apache/libcloud

ECS driver does not work.

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

説明

## Summary

ECS driver does use wrong host name; if I fix this in the code the package send a request to AWS causing internal server error.
## Detailed Information

apache-libcloud==3.3.1/Python 3.8.5/ubuntu20.04

Running the example provided in the documentation:
```
cls = get_driver(Provider.ECS)

conn = cls(access_id=os.getenv('AWS_ID'),
secret=os.getenv('AWS_KEY'),
region=os.getenv('AWS_REGION'))

for cluster in conn.list_clusters():
print(cluster.name)

```
This results an error message: `requests.exceptions.InvalidURL: Failed to parse: https://ecs.%s.amazonaws.com/`

If I change the line 69 in libcloud/container/drivers/ecs.py to `super(ElasticContainerDriver, self).__init__(access_id, secret, host=ECR_HOST % (region))`, I get a response 500 from AWS.

Expected behavior: list the ECS cluster names.

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

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

調査の方向性

libcloud/container/drivers/ecs.py から始め、特に 69 行目と Elastic Container Service ドライバーの初期化を確認します。報告されたリージョンを使ってドキュメントの例を実行し、list_clusters() を呼び出す前に生成されたホストを調べます。完了条件は、InvalidURL や AWS 500 応答なしで、例から ECS クラスター名を一覧表示できることです。

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

評価

技術スタック
aws, python
領域
backend, cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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