Unable to find a name for a VHD to use for instance
- 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ả
Hi,
I'm trying to create a simple instance on Azure and I'm getting the exception as attached bellow.
I tried to consult with Azure support but they didn't find something problematic with all definitions that related to my Azure account.
Please note that I'm getting the location, the size and the image properly from the defined driver.
**from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
cls = get_driver(Provider.AZURE_ARM)
driver = cls(tenant_id=tenant_id,
subscription_id=subscription_id,
key=app_id, secret=secret)
loc = [l for l in driver.list_locations() if l.id == default_zone ][0]
size = [s for s in driver.list_sizes(location=loc) if s.name == base_instance_size ][0]
ami = driver.get_image('Canonical:UbuntuServer:16.04-LTS:latest', location=loc)
node = driver.create_node("test_node",
... size=size,
... image=ami,
... location=loc,
... ex_resource_group=resource_group,
... ex_storage_account=storage_account,
... ex_network='iavn1011126702',
... ex_subnet='iasub1011126702',
... auth=None)**
Traceback (most recent call last):
File "", line 9, in
File "/usr/local/lib/python3.6/dist-packages/libcloud/compute/drivers/azure_arm.py", line 600, in create_node
ex_blob_container=ex_blob_container)
File "/usr/local/lib/python3.6/dist-packages/libcloud/compute/drivers/azure_arm.py", line 2298, in _get_instance_vhd
("\n - ".join(errors)))
libcloud.common.types.LibcloudError: 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>
- 'Unexpected status code: 400'>">
what can be the problem here?
Thanks,
Moshik.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong libcloud/compute/drivers/azure_arm.py tại create_node và _get_instance_vhd, sau đó theo dõi các lệnh gọi AzureBlobsStorageDriver trả về trạng thái 400. Tái hiện quy trình tạo instance Azure ARM được trình bày và xác định tên VHD hoặc yêu cầu blob đang bị lỗi; hoàn thành khi nguyên nhân có thể dẫn đến một hành động cụ thể và đường dẫn tạo instance xử lý nguyên nhân đó đúng cách.
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100