首页 文章

API:创建一个公有子网失败的VSI,错误“指定的子网#1217371(169.44.xxx.0 / 27)当前没有可用的插槽”

提问于
浏览
0

尝试创建一个公有子网失败的VSI,错误“指定的子网#1217371(169.44.xxx.0 / 27)当前没有可用的插槽”,但是子网ID应该是ips ips

这是问题

1 what's concept for slot ?
2 how to check slot infor for public subnet by API
3 how to apply slot

这是日志

>>> templateObject = {'domain': 'rccmlk.com', 'localDiskFlag': True, 'maxMemory': 1024, 'networkComponents': [{'maxSpeed': 1000}],'primaryBackendNetworkComponent': {'networkVlan': {'primarySubnetId': 821332}}, 'primaryNetworkComponent': {'networkVlan': {'primarySubnetId': 1217371}}, 'datacenter': {'name': 'dal09'}, 'hourlyBillingFlag': True, 'hostname': 'WDSPARKtest', 'startCpus': 1, 'operatingSystemReferenceCode': 'CENTOS_LATEST_64', 'sshKeys': [{'id': '756355'}]}
    >>> vsi = client['SoftLayer_Virtual_Guest'].createObject(templateObject)
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/local/lib/python2.7/dist-packages/SoftLayer/API.py", line 392, in call_handler
    return self(name, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/SoftLayer/API.py", line 360, in call
    return self.client.call(self.name, name, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/SoftLayer/API.py", line 263, in call
    return self.transport(request)
    File "/usr/local/lib/python2.7/dist-packages/SoftLayer/transports.py", line 195, in __call__
    raise _ex(ex.faultCode, ex.faultString)
    SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_Public): The subnet specified #1217371 (169.44.xxx.xxx/27) does not currently have available slots. Free up space or remove the subnet specification.


    here is subnet infor
    {'addressSpace': 'PUBLIC',
    'broadcastAddress': '169.44.xxx.xxx',
    'cidr': 27,
    'datacenter': {'id': xxxxxx,
    'longName': 'Dallas 9',
    'name': 'xxxxxx',
    'statusId': 2},
    'gateway': '169.44.xxx.xxx',
    'hardware': [],
    'id': 1217371,<<<<<<<<<<<<<<<<<
    'ipAddressCount': 32,
    'isCustomerOwned': False,
    'isCustomerRoutable': False,
    'modifyDate': '2016-05-16T20:43:19-07:00',
    'netmask': '255.255.255.224',
    'networkIdentifier': '169.44.109.0',
    'networkVlan': {'id': 835113, 'networkSpace': 'PUBLIC'},
    'networkVlanId': 835113,
    'sortOrder': '2',
    'subnetType': 'SECONDARY_ON_VLAN',
    'totalIpAddresses': '32',<<<<<<<<<<<<<<<<<<
    'usableIpAddressCount': '29',
    'version': 4,
    'virtualGuests': []},<<<<<<<<<<<<<<<<<<<<<<
    Update 1

1 回答

相关问题