apache / apache/libcloud

Inconsistent uuid generation in azure_arm

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

説明

## Summary

Azure returns inconsistent casing of the resource groups name in the id string, resulting in different uuid's for the same node (depending on what calls you make).

## Detailed Information

When a node is created, the resource groups name in the id string is lower case. In subsequent calls, like in list_nodes(), for some reason Azure returns the resource groups name in upper case. This results in a different uuid from when create_node() is called. This also breaks wait_until_running(). Forcing the id string to lower case in _to_node() seems to resolve this issue.

I made the change here: https://github.com/foospidy/libcloud/commit/2682d1229466fa577d4360ababd650d777ea49f3

I'd be happy to submit a PR.

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

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

調査の方向性

まず Azure ARM provider の _to_node() メソッドを見つけ、create_node() と list_nodes() で ID がどのように生成されるかを比較します。resource-group の大文字と小文字の違いによってノードの UUID が変わらなくなっていること、および wait_until_running() が一貫して動作することを確認します。参照されている commit をコンテキストとして使用し、provider のテスト構成から適切な場所が特定できる場合は、対象を絞ったテストを追加または更新します。

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

評価

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

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

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