Skip to content

VRF: CreateVrf gives an error "File Exists" #379

@vikumarks

Description

@vikumarks

If docker container is not crashing as mentioned in the #378
CreateVrf gives an error saying File exists, but it does create below vrf and br10.

32: tgreen: <NOARP,MASTER,UP,LOWER_UP> mtu 65575 qdisc noqueue state UP group default
    link/ether 46:76:71:82:7d:ab brd ff:ff:ff:ff:ff:ff
    inet 2.2.2.2/32 scope global tgreen
       valid_lft forever preferred_lft forever
33: br10: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master tgreen state DOWN group default
    link/ether a6:71:6f:33:8a:f3 brd ff:ff:ff:ff:ff:ff

Request Payload:
{ "vrfId": "tgreen", "vrf": { "spec": { "vni": 10, "loopbackIpPrefix": { "addr": { "af": "IP_AF_INET", "v4Addr": 33686018 }, "len": 32 } }, "name": "green" } }

Response Data

Unknown (2)
file exists

GRPC Server LOG

2024/03/26 18:54:21 HTTP Server listening at 8082
2024/03/26 18:54:21 TLS files are not specified. Use insecure connection.
2024/03/26 18:54:21 gRPC server listening at [::]:50151
2024/03/26 18:54:36 [msg INFO :started call protocol grpc grpc.component server grpc.service opi_api.network.evpn_gw.v1alpha1.VrfService grpc.method CreateVrf grpc.method_type unary peer.address 10.72.45.6:54255 grpc.start_time 2024-03-26T18:54:36Z grpc.time_ms 0.023]
2024/03/26 18:54:36 [msg INFO :request received protocol grpc grpc.component server grpc.service opi_api.network.evpn_gw.v1alpha1.VrfService grpc.method CreateVrf grpc.method_type unary peer.address 10.72.45.6:54255 grpc.start_time 2024-03-26T18:54:36Z grpc.recv.duration 23.284µs grpc.request.content vrf_id:"tgreen" vrf:{name:"green" spec:{vni:10 loopback_ip_prefix:{addr:{af:IP_AF_INET v4_addr:33686018} len:32}}}]
2024/03/26 18:54:36 client provided the ID of a resource tgreen, ignoring the name field green
2024/03/26 18:54:36 Creating VRF &{{0 0 0 tgreen  0 0 0 0 <nil>  <nil> 0 0 0 <nil>  <nil> unknown 0 0 0 0 0 0 [] 0 <nil>} 1001}
Failed to create VRF link: file exists2024/03/26 18:54:36 [msg ERROR :finished call protocol grpc grpc.component server grpc.service opi_api.network.evpn_gw.v1alpha1.VrfService grpc.method CreateVrf grpc.method_type unary peer.address 10.72.45.6:54255 grpc.start_time 2024-03-26T18:54:36Z grpc.code Unknown grpc.error file exists grpc.time_ms 4.391]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions