Skip to content

Migration for BGP failes due to use of old API call #9

@jramsgaard

Description

@jramsgaard

VCD: 10.5.1
NSX_V2T_Migraton_tool: 1.4.2.1

Migrating of an NSX-V Edge where there is used BGP. It failed using the:
/cloudapi/1.0.0/edgeGateways/{gatewayid}/routing/bgp

I could get the same error using VCD swagger and therefor decide to opened a support case. They could replicate the problem, but support also said that I should use the API call below instead:
/1.0.0/externalNetworks/{externalNetworkId}/providerGatewayServices/routing/bgp

This will query the API BGP config from the VRF lite provider gateway. Not sure how or where to change in the code to make it work.

`2024-06-12 11:27:25,921 [connectionpool]:[_make_request]:452 [DEBUG] [dc1.compute02.01] | https://vcd.:443 "GET /network/edges/a28fd9a0-10f2-4daf-be28-7df445d10377/routing/config/ HTTP/1.1" 200 None
2024-06-12 11:27:25,924 [vcdConfigureEdgeGatewayServices]:[configBGP]:1095 [DEBUG] [dc1.compute02.01] | BGP is getting configured in Source Edge Gateway - cust.edge.01
2024-06-12 11:27:25,926 [connectionpool]:[_new_conn]:971 [DEBUG] [dc1.compute02.01] | Starting new HTTPS connection (1): vcd.:443
2024-06-12 11:27:26,026 [connectionpool]:[_make_request]:452 [DEBUG] [dc1.compute02.01] | https://vcd.:443 "GET /cloudapi/1.0.0/edgeGateways/urn:vcloud:gateway:a5f002f6-e2df-4dcf-ae6a-77f74b65c4e3/routing/bgp HTTP/1.1" 403 None
2024-06-12 11:27:26,031 [connectionpool]:[_new_conn]:971 [DEBUG] [dc1.compute02.01] | Starting new HTTPS connection (1): vcd.:443
2024-06-12 11:27:26,124 [connectionpool]:[_make_request]:452 [DEBUG] [dc1.compute02.01] | https://vcd.:443 "PUT /cloudapi/1.0.0/edgeGateways/urn:vcloud:gateway:a5f002f6-e2df-4dcf-ae6a-77f74b65c4e3/routing/bgp HTTP/1.1" 403 None
2024-06-12 11:27:26,128 [vcdConfigureEdgeGatewayServices]:[configureServices]:85 [ERROR] [dc1.compute02.01] | Traceback (most recent call last):
File "src\core\vcd\vcdConfigureEdgeGatewayServices.py", line 74, in configureServices
File "src\core\vcd\vcdValidations.py", line 150, in wrapped
File "src\core\vcd\vcdValidations.py", line 90, in inner
File "src\core\vcd\vcdValidations.py", line 80, in inner
File "src\core\vcd\vcdConfigureEdgeGatewayServices.py", line 1134, in configBGP
Exception: Failed to configure BGP in Source Edge Gateway cust.edge.01 - [ 454f2646-211c-4273-869c-9caa4d238aaf ] Either you need some or all of the following rights [ORG_VDC_GATEWAY_CONFIGURE_BGP_ROUTING] to perform operations [GATEWAY_CONFIGURE_BGP_ROUTING_NSX_T] for a5f002f6-e2df-4dcf-ae6a-77f74b65c4e3 or the target entity is invalid.

2024-06-12 11:27:26,136 [threadUtils]:[waitForThreadToComplete]:172 [DEBUG] [MainThread] | Traceback (most recent call last):
File "src\commonUtils\threadUtils.py", line 169, in waitForThreadToComplete
File "concurrent\futures_base.py", line 432, in result
File "concurrent\futures_base.py", line 388, in __get_result
File "concurrent\futures\thread.py", line 57, in run
File "src\core\vcd\vcdConfigureEdgeGatewayServices.py", line 74, in configureServices
File "src\core\vcd\vcdValidations.py", line 150, in wrapped
File "src\core\vcd\vcdValidations.py", line 90, in inner
File "src\core\vcd\vcdValidations.py", line 80, in inner
File "src\core\vcd\vcdConfigureEdgeGatewayServices.py", line 1134, in configBGP
Exception: Failed to configure BGP in Source Edge Gateway cust.edge.01 - [ 454f2646-211c-4273-869c-9caa4d238aaf ] Either you need some or all of the following rights [ORG_VDC_GATEWAY_CONFIGURE_BGP_ROUTING] to perform operations [GATEWAY_CONFIGURE_BGP_ROUTING_NSX_T] for a5f002f6-e2df-4dcf-ae6a-77f74b65c4e3 or the target entity is invalid.

2024-06-12 11:27:26,137 [vcdNSXMigrator]:[run]:1050 [DEBUG] [MainThread] | Traceback (most recent call last):
File "src\vcdNSXMigrator.py", line 1031, in run
File "src\vcdNSXMigrator.py", line 904, in runServices
File "src\commonUtils\threadUtils.py", line 175, in waitForThreadToComplete
Exception: VCD V2T Migration Tool Failed, Please Check the logs for the exceptions

2024-06-12 11:27:26,137 [vcdNSXMigrator]:[run]:1051 [ERROR] [MainThread] | VCD V2T Migration Tool Failed, Please Check the logs for the exceptions
Traceback (most recent call last):
File "src\vcdNSXMigrator.py", line 1031, in run
File "src\vcdNSXMigrator.py", line 904, in runServices
File "src\commonUtils\threadUtils.py", line 175, in waitForThreadToComplete
Exception: VCD V2T Migration Tool Failed, Please Check the logs for the exceptions`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions