From notifications-return-17265-archive-asf-public=cust-asf.ponee.io@libcloud.apache.org Wed Jun 24 14:08:40 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4DCE1180633 for ; Wed, 24 Jun 2020 16:08:40 +0200 (CEST) Received: (qmail 37991 invoked by uid 500); 24 Jun 2020 14:08:39 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 37981 invoked by uid 99); 24 Jun 2020 14:08:39 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2020 14:08:39 +0000 From: =?utf-8?q?GitBox?= To: notifications@libcloud.apache.org Subject: =?utf-8?q?=5BGitHub=5D_=5Blibcloud=5D_moishikb_opened_a_new_issue_=231471=3A?= =?utf-8?q?_Unable_to_find_a_name_for_a_VHD_to_use_for_instance_?= Message-ID: Date: Wed, 24 Jun 2020 14:08:39 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit moishikb opened a new issue #1471: URL: https://github.com/apache/libcloud/issues/1471 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. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org