Tier-1 ゲートウェイの作成が、"Insufficient resources to do auto allocation in edge cluster <EdgeCluster-UUID> <EdgeCluster-Name> of pool type LB_ALLOCATION_POOL"というエラーで失敗します。
search cancel

Tier-1 ゲートウェイの作成が、"Insufficient resources to do auto allocation in edge cluster <EdgeCluster-UUID> <EdgeCluster-Name> of pool type LB_ALLOCATION_POOL"というエラーで失敗します。

book

Article ID: 425407

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

免責事項:これは英文の記事「Tier-1 Gateway creation fails with "Insufficient resources to do auto allocation in edge cluster <EdgeCluster-UUID> <EdgeCluster-Name> of pool type LB_ALLOCATION_POOL"」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

  • 新しい Tier-1 ゲートウェイを作成しようとすると、失敗状態になります。


  • さらに、上記の画面で「エラー」タブを選択すると、次のメッセージが表示されます。
    YYYY/MM/DD HH:MM:SS : [error_code=10087, module_name=ROUTING, error_message='[Routing] Insufficient resources to do auto allocation in edge cluster <EdgeCluster-UUID> <EdgeCluster-Name> of pool type LB_ALLOCATION_POOL because of below reason(s).', error_code=10149, module_name=ROUTING, error_message='[Routing] Node(s) [EdgeTransportNode/<EdgeTN-UUID>, ...(repeated for each node in the cluster)] don't have enough capacity to allocate.']
    [Routing] Insufficient resources to do auto allocation in edge cluster <EdgeCluster-UUID> of pool type LB_ALLOCATION_POOL because of below reason(s).
    [Routing] Node(s) [EdgeTransportNode/<EdgeTN-UUID>, ...(repeated for each node in the cluster)] don't have enough capacity to allocate.


  • NSX Manager の /var/log/proton/nsxapi.log ファイルに次のメッセージが記録されます。
    YYYY-MM-DDTHH:MM:SS.NNNZ  WARN providerTaskExecutor-1-131 ECResourceAllocationServiceImpl ##### FABRIC [nsx@#### comp="nsx-manager" level="WARNING" subcomp="manager"] Node(s) [EdgeTransportNode/<EdgeTN-UUID>, ...(repeated for each node in the cluster)]  don't have enough capacity to allocate
    YYYY-MM-DDTHH:MM:SS.NNNZ  INFO providerTaskExecutor-1-131 AlarmServiceImpl ##### POLICY [nsx@#### comp="nsx-manager" level="INFO" subcomp="manager"] Message returned [error_code=10087, module_name=ROUTING, error_message='[Routing] Insufficient resources to do auto allocation in edge cluster <EdgeCluster-UUID> path=[/infra/sites/default/enforcement-points/default/edge-clusters/<EdgeCluster-UUID>] of pool type LB_ALLOCATION_POOL because of below reason(s).', error_code=10149, module_name=ROUTING, error_message='[Routing] Node(s) [EdgeTransportNode/<EdgeTN-UUID>, ...(repeated for each node in the cluster)] don't have enough capacity to allocate.']
    YYYY-MM-DDTHH:MM:SS.NNNZ  INFO providerTaskExecutor-1-131 AlarmServiceImpl ##### POLICY [nsx@#### comp="nsx-manager" level="INFO" subcomp="manager"] Message returned Found errors in the request. Please refer to the related errors for details.
    YYYY-MM-DDTHH:MM:SS.NNNZ ERROR providerTaskExecutor-1-131 PolicyProviderUtil ##### POLICY [nsx@#### comp="nsx-manager" errorCode="PM0" level="ERROR" subcomp="manager"] Created alarm Alarm [policyPath=/infra/realized-state/enforcement-points/default/tier-1-logical-routers/<Tier1-Name>/alarms/<Tier1-UUID>, message=[error_code=10087, module_name=ROUTING, error_message='[Routing] Insufficient resources to do auto allocation in edge cluster <EdgeCluster-UUID> path=[/infra/sites/default/enforcement-points/default/edge-clusters/<EdgeCluster-UUID>] of pool type LB_ALLOCATION_POOL because of below reason(s).', error_code=10149, module_name=ROUTING, error_message='[Routing] Node(s) [EdgeTransportNode/<EdgeTN-UUID>, ...(repeated for each node in the cluster)] don't have enough capacity to allocate.'],errorId=PROVIDER_INVOCATION_FAILURE, path=null, apiError=error_code=10000, module_name=ROUTING, error_message='Found errors in the request. Please refer to the related errors for details.'
      related_errors=[
      error_code=10087, module_name=ROUTING, error_message='[Routing] Insufficient resources to do auto allocation in edge cluster <EdgeCluster-UUID> of pool type LB_ALLOCATION_POOL because of below reason(s).'
      error_code=10149, module_name=ROUTING, error_message='[Routing] Node(s) [EdgeTransportNode/<EdgeTN-UUID>, ...(repeated for each node in the cluster)] don't have enough capacity to allocate.'
      ], sourceSiteId=null].

Environment

VMware NSX

Cause

  • この問題は、選択したクラスター内のエッジ ノードに、Tier-1 ゲートウェイで構成された特定のエッジ クラスター割り当てサイズに一致する使用可能なロード バランサ サービス スロットがない場合に発生します。

     

  • 負荷分散用のTier-1ゲートウェイを作成する際に、割り当てサイズ(LB Small、LB Mediumなど)が定義されます。 
    この時点で論理ルーターに割り当てられたエッジに、要求されたLBサイズに対応する十分なリソースがない場合、実現は失敗します。

Resolution

この問題を解決するには、使用可能な容量を持つエッジ ノードがあるかどうかを識別するか、環境にリソースを追加します。

ステップ 1: エッジ ノードの使用状況を確認する
NSX API を使用して、特定のエッジ ノードの現在のロード バランサの使用状況と容量を確認できます。

GET /api/v1/loadbalancer/usage-per-node/<EdgeTN-uuid>

応答例(リソース不足):

{
  "form_factor" : "XLARGE_VIRTUAL_MACHINE",
  "edge_cluster_id" : "<EdgeCluster-UUID>",
  "current_credit_number" : 80, 
  "remaining_credit_number" : 0,
  "usage_percentage" : 100.0, 
  "severity" : "RED", <<<<<<<<<<<
  "current_pool_members" : 77,
  "current_virtual_servers" : 44,
  "current_pools" : 38,
  "current_small_load_balancer_services" : 0,
  "current_medium_load_balancer_services" : 8,
  "current_large_load_balancer_services" : 0,
  "current_xlarge_load_balancer_services" : 0,
  "remaining_small_load_balancer_services" : 0,  <<<<<<<<<<<
  "remaining_medium_load_balancer_services" : 0,  <<<<<<<<<<<
  "remaining_large_load_balancer_services" : 0,  <<<<<<<<<<<
  "remaining_xlarge_load_balancer_services" : 0,  <<<<<<<<<<<
  "remaining_pool_members" : 9923,
  "type" : "LbEdgeNodeUsage",
  "node_id" : "<EdgeTN-UUID>"
}



応答例(利用可能な容量):

{
  "form_factor" : "XLARGE_VIRTUAL_MACHINE",
  "edge_cluster_id" : "<EdgeCluster-UUID>",
  "current_credit_number" : 40,
  "remaining_credit_number" : 40,
  "usage_percentage" : 50.0,  
  "severity" : "GREEN", <<<<<<<<<<<
  "current_pool_members" : 6,
  "current_virtual_servers" : 9,
  "current_pools" : 3,
  "current_small_load_balancer_services" : 0,
  "current_medium_load_balancer_services" : 4,
  "current_large_load_balancer_services" : 0,
  "current_xlarge_load_balancer_services" : 0,
  "remaining_small_load_balancer_services" : 40,  <<<<<<<<<<<
  "remaining_medium_load_balancer_services" : 4,  <<<<<<<<<<<
  "remaining_large_load_balancer_services" : 1,  <<<<<<<<<<<
  "remaining_xlarge_load_balancer_services" : 0,
  "remaining_pool_members" : 9994,
  "type" : "LbEdgeNodeUsage",
  "node_id" : "<EdgeTN-UUID>"
}

 

ステップ 2: 緩和戦略
手動割り当て (即時回避策) API チェックで、特定のエッジ ノードにはまだ容量がある (重大度: 緑) のに他のノードがいっぱいであることが判明した場合、自動配置アルゴリズムは失敗する可能性があります。

  1. 障害が発生した Tier-1 ゲートウェイを編集します。
  2. エッジ クラスターの自動割り当てを無効にします。
  3. 使用可能な容量があると特定されたエッジ ノードを手動で選択します。
  4. 設定を保存します。

すべてのノードが容量制限に達した場合は、既存のエッジクラスターにエッジノードを追加するか、より大きなサイズのエッジノードを作成して割り当てることを検討してください。
注: エッジクラスターには最大10個のエッジノードを含めることができます。

追加リソース:  VMware 構成の上限