Skip to content

Bug Report: missing caller-id flag on some vtctldclient commands #17138

Open
@notfelineit

Description

@notfelineit

Overview of the Issue

Using vtctldclient OnlineDDL without the --caller-id flag results in:

> vtctldclient --server :15999 OnlineDDL cancel <KEYSPACE> <UUID>
E1029 17:24:39.288500      65 main.go:56] rpc error: code = Unknown desc = schema change failed, ExecuteResult: {
  "FailedShards": [
    {
      "Shard": "-",
      "Err": "rpc error: code = Unknown desc = TabletManager.ExecuteQuery on <CELL> error: rpc error: code = Unauthenticated desc = missing caller id: rpc error: code = Unauthenticated desc = missing caller id"
    }
  ],
  "SuccessShards": [],
  "CurSQLIndex": 0,
  "Sqls": [
    "alter vitess_migration <UUID> cancel"
  ],
  "UUIDs": null,
  "ExecutorErr": "",
  "TotalTimeSpent": 24522555
....
}

This works however!

vtctldclient --server localhost:15999 ApplySchema --caller-id <CALLER-ID> --ddl-strategy "online" --sql "alter vitess_migration '<UUID>' cancel" <KEYSPACE>

Reproduction Steps

  1. Start an OnlineDDL vitess migration of any kind
  2. Try to cancel the vitess migration with just vtctldclient --server :15999 OnlineDDL cancel <KEYSPACE> <UUID>
  3. Should error

Binary Version

v18

Operating System and Environment details

> cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
> uname -sr
Linux 5.15.0-1071-aws
> uname -m
x86_64


### Log Fragments

_No response_

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions