apache / apache/libcloud

Unable to find a name for a VHD to use for instance

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

説明

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.

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

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

調査の方向性

libcloud/compute/drivers/azure_arm.py の create_node と _get_instance_vhd から始め、次にステータス 400 を返す AzureBlobsStorageDriver の呼び出しを追跡します。示されている Azure ARM インスタンス作成フローを再現し、失敗している VHD 名または blob リクエストを特定します。原因に対して具体的な対応が可能で、インスタンス作成パスがそれを正しく処理できれば完了です。

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

評価

技術スタック
azure, python
領域
cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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