libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LIBCLOUD-1033) Cannot create a network interface on Azure
Date Tue, 01 Jan 2019 02:16:00 GMT
Mitar created LIBCLOUD-1033:
-------------------------------

             Summary: Cannot create a network interface on Azure
                 Key: LIBCLOUD-1033
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1033
             Project: Libcloud
          Issue Type: Bug
          Components: Compute
    Affects Versions: 2.4.0
            Reporter: Mitar


It seems calling ex_create_network_interface is failing now with:

 
{noformat}
libcloud.common.exceptions.BaseHTTPError: [InvalidApiVersionParameter] The api-version '2015-06-15'
is invalid. The supported versions are '2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.{noformat}
 

I have a script like:
{noformat}
for location in driver.list_locations():
    if location.name == 'East US':
        break
else:
    raise Exception("Location could not be found.")

for size in driver.list_sizes(location=location):
    if size.name == 'Standard_D64s_v3':
        break
else:
    raise Exception("Size could not be found.")

for image in sorted(driver.list_images(location=location, ex_publisher='Canonical', ex_offer='UbuntuServer',
ex_sku='18.04-LTS'), key=lambda i: i.version, reverse=True):
    break
else:
    raise Exception("Image could not be found.")

for resource_group in driver.ex_list_resource_groups():
    if resource_group.location == location.id and resource_group.name ==  'shared':
        break
else:
    raise Exception("Resource group could not be found.")

for network in driver.ex_list_networks():
    if network.location == location.id and network.name == 'test':
        break
else:
    raise Exception("Network could not be found.")

for subnet in driver.ex_list_subnets(network=network):
    if subnet.name == 'default':
        break
else:
    raise Exception("Subnet could not be found.")

network_interface = driver.ex_create_network_interface(
    name='test-1-nic',
    subnet=subnet,
    resource_group=resource_group,
    location=location,
){noformat}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message