Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create/Update Hub BGP Connection #22213

Closed
ksridhar57 opened this issue Dec 17, 2021 · 7 comments
Closed

Create/Update Hub BGP Connection #22213

ksridhar57 opened this issue Dec 17, 2021 · 7 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-author-feedback Workflow: More information is needed from author to address the issue. Network - Virtual WAN Network no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@ksridhar57
Copy link

ksridhar57 commented Dec 17, 2021

  • Package Name: azure-mgmt-network
  • Package Version: 19.1.0
  • Operating System: Linux
  • Python Version: 3.6.9

Describe the bug
Unable to create or update a BGP peer resource of virtual HUB. The following is the code used -

DEFAULT_TRANSIT_VNET_CONN_NAME = "Prisma-SD-WAN-Transit-VNET_Connect"

` network_mgmt_client.virtual_hub_bgp_connection.begin_delete(
resource_group_name=resource_group,
virtual_hub_name=vhub_name,
connection_name=peer
).wait()

    vnet_conn_id = '/subscriptions/' + azure_subscription_id + '/resourceGroups/' + resource_group + '/providers/Microsoft.Network/virtualHubs/' + vhub_name + '/hubVirtualNetworkConnections/' + DEFAULT_TRANSIT_VNET_CONN_NAME
    print(vnet_conn_id)

Prints: /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/hubVirtualNetworkConnections/Prisma-SD-WAN-Transit-VNET_Connect

    bgp_peer_parameters = network_models.BgpConnection(
        id=vnet_conn_id,
        name=DEFAULT_TRANSIT_VNET_CONN_NAME,
        peer_asn=300
        peer_ip='10.5.8.12'
    )

        bgp_peer_resource_oper = network_mgmt_client.virtual_hub_bgp_connection.begin_create_or_update(
            resource_group_name=resource_group,
            virtual_hub_name="Prisma-SD-WAN-vHub",
            connection_name="Prisma-SD-WAN-vIon1-Peer",
            parameters=bgp_peer_parameters
        )

            bgp_peer_resource_oper.wait()`

The hub virtual network connection named Prisma-SD-WAN-Transit-VNET_Connect has been provisioned successfully.

The error I get is:
{'err': HttpResponseError('(HubBgpConnectionMustReferenceFullyProvisionedHubVirtualNetworkConnection) HubBgpConnection /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/bgpConnections/Prisma-SD-WAN-vIon1-Peer must reference existing provisioned HubVirtualNetworkConnection.\nCode: HubBgpConnectionMustReferenceFullyProvisionedHubVirtualNetworkConnection\nMessage: HubBgpConnection /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/bgpConnections/Prisma-SD-WAN-vIon1-Peer must reference existing provisioned HubVirtualNetworkConnection.',)}

Any advise?

Thanks!

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 17, 2021
@yunhaoling yunhaoling added CXP Attention Mgmt This issue is related to a management-plane library. Network labels Dec 17, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Dec 17, 2021
@yunhaoling
Copy link
Contributor

@ksridhar57 thanks for reaching out, we'll investigate it ASAP.

@msyyc
Copy link
Member

msyyc commented Dec 30, 2021

According to the log info, it seems that some of your parameter is not valid for service. It needs domain knowledge from service team to help.

@msyyc msyyc added Network - Virtual WAN Service Attention Workflow: This issue is responsible by Azure service team. labels Dec 30, 2021
@ghost
Copy link

ghost commented Dec 30, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @vwansuppgithub.

Issue Details
  • Package Name: azure-mgmt-network
  • Package Version: 19.1.0
  • Operating System: Linux
  • Python Version: 3.6.9

Describe the bug
Unable to create or update a BGP peer resource of virtual HUB. The following is the code used -

DEFAULT_TRANSIT_VNET_CONN_NAME = "Prisma-SD-WAN-Transit-VNET_Connect"

` network_mgmt_client.virtual_hub_bgp_connection.begin_delete(
resource_group_name=resource_group,
virtual_hub_name=vhub_name,
connection_name=peer
).wait()

    vnet_conn_id = '/subscriptions/' + azure_subscription_id + '/resourceGroups/' + resource_group + '/providers/Microsoft.Network/virtualHubs/' + vhub_name + '/hubVirtualNetworkConnections/' + DEFAULT_TRANSIT_VNET_CONN_NAME
    print(vnet_conn_id)

Prints: /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/hubVirtualNetworkConnections/Prisma-SD-WAN-Transit-VNET_Connect

    bgp_peer_parameters = network_models.BgpConnection(
        id=vnet_conn_id,
        name=DEFAULT_TRANSIT_VNET_CONN_NAME,
        peer_asn=300
        peer_ip='10.5.8.12'
    )

        bgp_peer_resource_oper = network_mgmt_client.virtual_hub_bgp_connection.begin_create_or_update(
            resource_group_name=resource_group,
            virtual_hub_name="Prisma-SD-WAN-vHub",
            connection_name="Prisma-SD-WAN-vIon1-Peer",
            parameters=bgp_peer_parameters
        )

            bgp_peer_resource_oper.wait()`

The hub virtual network connection named Prisma-SD-WAN-Transit-VNET_Connect has been provisioned successfully.

The error I get is:
{'err': HttpResponseError('(HubBgpConnectionMustReferenceFullyProvisionedHubVirtualNetworkConnection) HubBgpConnection /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/bgpConnections/Prisma-SD-WAN-vIon1-Peer must reference existing provisioned HubVirtualNetworkConnection.\nCode: HubBgpConnectionMustReferenceFullyProvisionedHubVirtualNetworkConnection\nMessage: HubBgpConnection /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/bgpConnections/Prisma-SD-WAN-vIon1-Peer must reference existing provisioned HubVirtualNetworkConnection.',)}

Any advise?

Thanks!

Author: ksridhar57
Assignees: msyyc
Labels:

question, Network, Service Attention, Mgmt, customer-reported, Network - Virtual WAN, CXP Attention

Milestone: -

@ghost ghost added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Dec 30, 2021
@JeffGiroux
Copy link

I ran into same issue on terraform. What is the status of the fix?

hashicorp/terraform-provider-azurerm#17872

@xiangyan99
Copy link
Member

Can you check the latest azure-mgmt-network library to see if it is fixed?

@xiangyan99 xiangyan99 added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Aug 25, 2023
@github-actions github-actions bot removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Aug 25, 2023
@github-actions
Copy link

Hi @ksridhar57. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@github-actions
Copy link

github-actions bot commented Sep 1, 2023

Hi @ksridhar57, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Sep 1, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-author-feedback Workflow: More information is needed from author to address the issue. Network - Virtual WAN Network no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

6 participants