ravindra w created LIBCLOUD-999:
-----------------------------------

             Summary: Windows VM can not be created using libcloud 2.3.0 
azure_arm driver
                 Key: LIBCLOUD-999
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-999
             Project: Libcloud
          Issue Type: Bug
          Components: Compute
            Reporter: ravindra w


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': 
u'/subscriptions/23e6c1c2-bb63-4902-b7bc-145ae621a65b/resourceGroups/rgforqa/providers/Microsoft.Network/networkInterfaces/VM-VYF1-nic'}]}}})
 Traceback (most recent call last): File "./az.py", line 171, in <module> print 
a.create_node() File "./az.py", line 136, in create_node 
location=self.location, ex_nic=nic) File 
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/azure_arm.py", 
line 670, in create_node method="PUT") File 
"/usr/local/lib/python2.7/dist-packages/libcloud/common/azure_arm.py", line 
227, in request method=method, raw=raw) File 
"/usr/local/lib/python2.7/dist-packages/libcloud/common/base.py", line 636, in 
request response = responseCls(**kwargs) File 
"/usr/local/lib/python2.7/dist-packages/libcloud/common/base.py", 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
(v7.6.3#76005)

Reply via email to