om CLI is failing to update director tile when it finds same cluster name under single AZ
search cancel

om CLI is failing to update director tile when it finds same cluster name under single AZ

book

Article ID: 397838

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

One won't able to configure multiple Resource-Pool of same vSphere cluster under single AZ on BOSH tile.

Example:- If one has configured multiple resource-pool of same vSphere cluster under single AZ then fetch the director config.

om --env env.yml staged-director-config > director.yml
$ cat director.yml
.....
az-configuration:
- name: az2
  iaas_configuration_name: pez-vcenter
  clusters:
  - cluster: ClusterNSX
    drs_rule: MUST
    guid: 1a55f07ad92a718291a1
    host_group: null
    resource_pool: RP31
  guid: 9b5c4798c0a0dcfb161b
- name: az3
  iaas_configuration_name: pez-vcenter
  clusters:
  - cluster: ClusterNSX
    drs_rule: MUST
    guid: 6d7300cf99781ee19289
    host_group: null
    resource_pool: RP31
  guid: d0f83ce1c012e1fc29ad
- name: az1
  iaas_configuration_name: pez-vcenter
  clusters:
  - cluster: ClusterNSX
    drs_rule: MUST
    guid: b03410267652422dc7c8
    host_group: null
    resource_pool: RP31
  - cluster: ClusterNSX
    drs_rule: MUST
    guid: 75b4cc4a09ec4b9c79d0
    host_group: null
    resource_pool: RP32
  guid: 35003573abc91f0a393d

.....

 After that if he will try to push same config using om CLI then he will get below error.

om --env=env.yml configure-director --config director.yml 

........
{"errors":{"base":["Cannot delete the cluster 'ClusterNSX' in the availability zone 'az1' of a deployed product","Cannot have multiple clusters with the same guid. Guid: b03410267652422dc7c8"]}}

 

Below is the sample screenshot of BOSH Director Tile from ops-manager UI where two resource pool(RP31 and RP32) are configured under single AZ i.e. az1.

Environment

om CLI 7.13 and v7.15

Tanzu Ops Manager v3.x

Cause

This is bug in om CLI

Resolution

This issue has been fixed in om CLI version 7.15.1