Aliyun ECS create_node fails with code InstanceType.Offline

Đang mở
#1,689 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cloud

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi với demos/example_aliyun_ecs.py bằng Libcloud 3.5.1, sau đó kiểm tra lệnh gọi create_node trong libcloud/compute/drivers/ecs.py và các tham số loại instance mà nó gửi. Hoàn tất có nghĩa là xác định liệu example hay driver Aliyun ECS chịu trách nhiệm cho phản hồi InstanceType.Offline, đồng thời xác định thay đổi liên quan.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

api: compute driver: aliyun ecs

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 <NodeImage: id=ubuntu_20_04_x64_20G_alibase_20220331.vhd, name=ubuntu_20_04_x64_20G_alibase_20220331.vhd, driver=Aliyun ECS  ...>
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 <module>
    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'}
Ngôn ngữ chính
Python
Star
2.1k
Fork
935
Merge trung bình
5 ngày 3 giờ
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/libcloud

Tất cả issue của apache/libcloud

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.