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

unable to perform SET, Translib write is disabled #333

Open
mfzhsn opened this issue Dec 27, 2024 · 0 comments
Open

unable to perform SET, Translib write is disabled #333

mfzhsn opened this issue Dec 27, 2024 · 0 comments

Comments

@mfzhsn
Copy link

mfzhsn commented Dec 27, 2024

Version: 202405

Issue: when performing SET operation over gRPC, i get this erro Translib write is disabled, How to enable this

[root@srossonic sonic-gnmi]#
[root@srossonic sonic-gnmi]# gnmic -a 172.20.20.2:8080 -u admin -p admin --insecure set --update-path /openconfig-interfaces:interfaces/interface[name=Ethernet0]/config/mtu --update-value 1500 --target OC-YANG
target "172.20.20.2:8080" set request failed: target "172.20.20.2:8080" SetRequest failed: rpc error: code = Unimplemented desc = Translib write is disabled
Error: one or more requests failed

Verbose:

2024/12/27 01:24:10.956835 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Channel #1] Channel switches to new LB policy "pick_first"
2024/12/27 01:24:10.956901 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [pick-first-lb 0xc000b595c0] Received new config {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "172.20.20.2:8080",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "172.20.20.2:8080",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}
2024/12/27 01:24:10.957068 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Channel #1 SubChannel #2] Subchannel created
2024/12/27 01:24:10.957106 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Channel #1] Channel Connectivity change to CONNECTING
2024/12/27 01:24:10.957135 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Channel #1] Channel exiting idle mode
2024/12/27 01:24:10.957192 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Channel #1 SubChannel #2] Subchannel Connectivity change to CONNECTING
2024/12/27 01:24:10.957233 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Channel #1 SubChannel #2] Subchannel picks a new address "172.20.20.2:8080" to connect
2024/12/27 01:24:10.957321 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [pick-first-lb 0xc000b595c0] Received SubConn state update: 0xc000b59740, {ConnectivityState:CONNECTING ConnectionError:<nil>}
2024/12/27 01:24:10.959492 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Channel #1 SubChannel #2] Subchannel Connectivity change to READY
2024/12/27 01:24:10.959566 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [pick-first-lb 0xc000b595c0] Received SubConn state update: 0xc000b59740, {ConnectivityState:READY ConnectionError:<nil>}
2024/12/27 01:24:10.959586 /home/runner/go/pkg/mod/google.golang.org/[email protected]/grpclog/logger.go:53: [gnmic] [core] [Channel #1] Channel Connectivity change to READY
2024/12/27 01:24:10.960683 /home/runner/work/gnmic/gnmic/pkg/app/logging.go:21: [gnmic] target "172.20.20.2:8080" set request failed: target "172.20.20.2:8080" SetRequest failed: rpc error: code = Unimplemented desc = Translib write is disabled
target "172.20.20.2:8080" set request failed: target "172.20.20.2:8080" SetRequest failed: rpc error: code = Unimplemented desc = Translib write is disabled
Error: one or more requests failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant