libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quentin Pradet (JIRA)" <>
Subject [jira] [Commented] (LIBCLOUD-999) Windows VM can not be created using libcloud 2.3.0 azure_arm driver
Date Mon, 18 Jun 2018 20:50:00 GMT


Quentin Pradet commented on LIBCLOUD-999:


Is this something that was working in the past and stopped working?

It looks like we never supported Windows images and always passed Linux osType, but we would
be happy to review pull requests adding support for this.


> Windows VM can not be created using libcloud 2.3.0 azure_arm driver
> -------------------------------------------------------------------
>                 Key: LIBCLOUD-999
>                 URL:
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>            Reporter: ravindra w
>            Priority: Major
> root@ubuntu:/home/ubuntu# pip freeze |grep libcloud apache-libcloud==2.3.0   Test log
of create_node request: =========================== : : : (\\{'name': 'VM-VYF1', 'tags': {},
'id': '/subscriptions/23e6c1c2-bb63-4902-b7bc-145ae621a65b/resourceGroups/rgforqa/providers/Microsoft.Compute/virtualMachines/VM-VYF1',
'location': 'westus', 'type': 'Microsoft.Compute/virtualMachines', 'properties': \\{'hardwareProfile':
{'vmSize': 'Standard_B1ms'}, 'storageProfile': \\{'imageReference': {'sku': '2016-Datacenter',
'publisher': 'MicrosoftWindowsServer', 'version': 'latest', 'offer': 'WindowsServer'}, *'osDisk':
\{'osType': 'linux',* 'caching': 'ReadWrite', 'createOption': 'FromImage', 'name': 'VM-VYF1',
'managedDisk': \{'storageAccountType': 'Standard_LRS'}}}, 'osProfile': \\{'adminUsername':
'azureuser', 'computerName': 'VM-VYF1', 'linuxConfiguration': {'disablePasswordAuthentication':
'false'}, 'adminPassword': 'Passw0rd@123'}, 'networkProfile': \\{'networkInterfaces': [{'id':
Traceback (most recent call last): File "./", line 171, in <module> print a.create_node()
File "./", line 136, in create_node location=self.location, ex_nic=nic) File "/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/",
line 670, in create_node method="PUT") File "/usr/local/lib/python2.7/dist-packages/libcloud/common/",
line 227, in request method=method, raw=raw) File "/usr/local/lib/python2.7/dist-packages/libcloud/common/",
line 636, in request response = responseCls(**kwargs) File "/usr/local/lib/python2.7/dist-packages/libcloud/common/",
line 153, in __init__ headers=self.headers) l*ibcloud.common.exceptions.BaseHTTPError: [InvalidParameter]
The value 'Linux' of parameter 'osDisk.osType' is not allowed. Allowed values are 'Windows'.* 
>  ================
> urn used to get image : 'MicrosoftWindowsServer:WindowsServer:2016-Datacenter:latest'
> It always fails for any windows distribs/urns specified.   
> Churning entire azure_arm driver library, doesn't show-up handling for windows vm creation.  

This message was sent by Atlassian JIRA

View raw message