Inconsistent uuid generation in azure_arm
- Ngôn ngữ chính
- Python
- Star
- 2.1k
- Fork
- 931
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 4
Mô tả
## 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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xác định phương thức _to_node() của Azure ARM provider và so sánh cách create_node() và list_nodes() tạo ra các ID. Xác minh rằng việc viết hoa/viết thường của resource-group không còn làm thay đổi UUID của một node và rằng wait_until_running() hoạt động nhất quán; sử dụng commit được tham chiếu làm ngữ cảnh và thêm hoặc cập nhật các test tập trung nếu cấu trúc test của provider xác định được một vị trí phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, python
- Lĩnh vực
- cloud
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100