Skip to content

roachprod: roachprod ssh can connect you to an unrelated cluster besides the one you requested #63637

@rickystewart

Description

@rickystewart
cockroach$ ./bin/roachprod ssh ricky-test:1
Warning: Permanently added '35.185.81.185' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-1052-gcp x86_64)
 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
0 packages can be updated.
0 updates are security updates.
New release '18.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@davidh-large-console-test-0024:~$ ls
cockroach  lib  logs

The node I was connected to is node 24 of the cluster davidh-large-console-test, which is definitely not ricky-test.

I think the cluster ricky-test was deleted by the time I tried to SSH in, though I don't know why it would have chosen a completely different node/cluster and silently connected me.

Epic CRDB-10428

Jira issue: CRDB-6679

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-roachprodC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-testengTestEng Team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions