From GUI unable to replace/update the Transport node in the transport node profile after upgrading to 3.2.2.0
search cancel

From GUI unable to replace/update the Transport node in the transport node profile after upgrading to 3.2.2.0

book

Article ID: 345929

calendar_today

Updated On:

Products

VMware NSX Networking

Issue/Introduction

Purpose of this document is to make change/update the Transport zone configuration of the Transport node profile in the  database manually using APIs when GUI is unable to fetch the TZ details correctly.


Symptoms:

>In federation environment below Error reported on the LM when tried to change the transport Zone i the transport zone Profile

"Error: the requested object Policy Transport Zone/9501afe9-2bef-4df5-8393-d9cc60f43f29 could not be found. Object identifiers are case sensitive. (Error code: 600)"

>Observed no entry transport zone in the LM with UUID (9501afe9-2bef-4df5-8393-d9cc60f43f29) observed in the error.


Environment

VMware NSX-T Data Center
VMware NSX-T Data Center 3.x

Cause

Proton is not able to find that object , hence Object not found exception is been displayed on the LM while changing the TZ in the TNP

Resolution

Will be fixed in upcoming versions of NSX-T 3.2.3 and NSX-T 4.1.1 onwards.

Workaround:

Update the TZ in the DB manually using API calls using below steps

1>Fetch the configured TNPs
GET https://<Manager IP>/policy/api/v1/infra/host-transport-node-profiles

2>fetch the information related to particular TNP
GET https://<Manager IP>/policy/api/v1/infra/host-transport-node-profiles/<UUID of the TNP>

3>make update a particular TP with changes
PUT https://<Manager IP>/policy/api/v1/infra/host-transport-node-profiles/<UUID of the TNP> after making changes in the above get out put

4>confirm the changes
GET https://<Manager IP>/policy/api/v1/infra/host-transport-node-profiles/<UUID of the TNP> to see the changes

=================================================================================

1>To fetch all configured TNPs
GET https://<Manager IP>/policy/api/v1/infra/host-transport-node-profiles

2>>To fetch the information related to particular TNP
GET https://<Manager-IP>/api/v1/transport-node-profiles/6850420f-1ee5-4580-8c9d-fad509ed77da

{
    "host_switch_spec": {
        "host_switches": [
            {
                "host_switch_name": "bl-vi1-vds-prod-03",
                "host_switch_id": "50 3d 41 00 6d b3 40 ea-e0 17 ba 17 3a 78 7c f9",
                "host_switch_type": "VDS",
                "host_switch_mode": "STANDARD",
                "host_switch_profile_ids": [
                    {
                        "key": "UplinkHostSwitchProfile",
                        "value": "66db6358-8ad7-4ccb-a008-1029b9a3dda9"
                    }
                ],
                "uplinks": [
                    {
                        "vds_uplink_name": "uplink2",
                        "uplink_name": "uplink-2"
                    },
                    {
                        "vds_uplink_name": "uplink1",
                        "uplink_name": "uplink-1"
                    }
                ],
                "is_migrate_pnics": false,
                "ip_assignment_spec": {
                    "resource_type": "AssignedByDhcp"
                },
                "cpu_config": [],
                "transport_zone_endpoints": [
                    {
                        "transport_zone_id": "c75a6c1d-2ab2-47c4-8bd8-0787bd95c211",
                        "transport_zone_profile_ids": []
                    }
                ],
                "not_ready": false
            }
        ],
        "resource_type": "StandardHostSwitchSpec"
    },
    "ignore_overridden_hosts": false,
    "resource_type": "TransportNodeProfile",
    "id": "6850420f-1ee5-4580-8c9d-fad509ed77da",
    "display_name": "blva-vi1-vc1-bl-vi1-prod-cl03",
    "description": "blva-vi1-vc1.india.airtel.itm",
    "_create_time": 1675258845572,
    "_create_user": "admin",
    "_last_modified_time": 1675524875116,
    "_last_modified_user": "admin",
    "_system_owned": false,
    "_protection": "NOT_PROTECTED",
    "_revision": 1
}


3>>To make an update to a particular TNP with changes
PUT https://<Manager IP>/policy/api/v1/infra/host-transport-node-profiles/<UUID of the TNP> after making changes in the get API output
Example:
Add VLAN TZ and update (Put) transport node profile(6850420f-1ee5-4580-8c9d-fad509ed77da)
PUT https://<Manager IP>/api/v1/transport-node-profiles/6850420f-1ee5-4580-8c9d-fad509ed77da
{
    "host_switch_spec": {
        "host_switches": [
            {
                "host_switch_name": "bl-vi1-vds-prod-03",
                "host_switch_id": " 50 3d 41 00 6d b3 40 ea-e0 17 ba 17 3a 78 7c f9 ",
                "host_switch_type": "VDS",
                "host_switch_mode": "STANDARD",
                "host_switch_profile_ids": [
                    {
                        "key": "UplinkHostSwitchProfile",
                        "value": "66db6358-8ad7-4ccb-a008-1029b9a3dda9"
                    }
                ],
                "uplinks": [
                    {
                        "vds_uplink_name": "uplink2",
                        "uplink_name": "uplink-2"
                    },
                    {
                        "vds_uplink_name": "uplink1",
                        "uplink_name": "uplink-1"
                    }
                ],
                "is_migrate_pnics": false,
                "ip_assignment_spec": {
                    "resource_type": "AssignedByDhcp"
                },
                "cpu_config": [],
                "transport_zone_endpoints": [
                    {
                        "transport_zone_id": "c75a6c1d-2ab2-47c4-8bd8-0787bd95c211",
                        "transport_zone_profile_ids": []
                    },
                    {
                        "transport_zone_id": "128639cb-dc46-4946-b87f-e88610935809", <-----------------------newly added
                        "transport_zone_profile_ids": []
                    }
                ],
                "not_ready": false
            }
        ],
        "resource_type": "StandardHostSwitchSpec"
    },
    "ignore_overridden_hosts": false,
    "resource_type": "TransportNodeProfile",
    "id": "6850420f-1ee5-4580-8c9d-fad509ed77da",
    "display_name": "blva-vi1-vc1-bl-vi1-prod-cl03",
    "description": "blva-vi1-vc1.india.airtel.itm",
    "_create_time": 1675258845572,
    "_create_user": "admin",
    "_last_modified_time": 1675524875116,
    "_last_modified_user": "admin",
    "_system_owned": false,
    "_protection": "NOT_PROTECTED",
    "_revision": 1
}

4>>To see the changes:
GET https://<Manager IP>/api/v1/transport-node-profiles/6850420f-1ee5-4580-8c9d-fad509ed77da

 


Additional Information

Impact/Risks:
Won't be able to update /change the transport zone configuration in the Transport node profile