2017-01-24 1 views
0

パブリックサブネットでVSIを作成しようとすると、サブネット指定#1217371(169.44.xxx.0/27)は現在、「利用可能なスロットを持っていませんが、サブネットIDがここにenought IPSにAPI:パブリックサブネットでエラーが発生したVSIを作成する "指定されたサブネット#1217371(169.44.xxx.0/27)に現在使用可能なスロットがありません"

を持つ必要がありますが、ここで質問

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 

答えて

0

よくfi最初に、制御ポータルを使用してそのサブネットでVSIを注文できることを確認する必要があります.APIによって表示されるエラーは実際のエラーについては正確ではないため、コントロールポータルでサブネットを使用できる場合SoftlayerのPythonクライアントに問題がある可能性があります。

Jusサブネットを使用してVSIを注文できない場合は、https://knowledgelayer.softlayer.com/learning/utilizing-subnets-and-ipsのプライマリサブネットのみを実際に使用することができます。

スロットがサブネット内の自由なIPアドレスですあなたはこの方法

http://sldn.softlayer.com/reference/services/SoftLayer_Network_Subnet/getIpAddresses

を使用してサブネットのIPアドレスを取得することができ、それが中reservadedかされていないなら、あなたはの状態を確認する必要がありますすべてのIPが予約されているので、空きスロットはありません。ここ

あなたは、空きスロットに関する関連フォーラムの質問を見ることができます:

SoftLayer API to know and total and available IPs in a VLAN

を、私はそれはあなたの

よろしく

を役に立てば幸い
関連する問題