Aliyun ECS create_node fails with code InstanceType.Offline
- Dominant language
- Python
- Stars
- 2.1k
- Forks
- 931
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 4
Description
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'}
```
Contributor guide
Research direction
Start by reproducing the failure with demos/example_aliyun_ecs.py using Libcloud 3.5.1, then inspect the create_node call in libcloud/compute/drivers/ecs.py and the instance-type parameters it sends. Done means determining whether the example or Aliyun ECS driver is responsible for the InstanceType.Offline response and identifying the relevant change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100