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

flag provided but not defined: -agent-token #2121

Closed
cloudcafetech opened this issue Nov 13, 2021 · 4 comments
Closed

flag provided but not defined: -agent-token #2121

cloudcafetech opened this issue Nov 13, 2021 · 4 comments
Labels
kind/bug Something isn't working

Comments

@cloudcafetech
Copy link

RKE2 - v1.21.6+rke2r1

  • command

rke2 etcd-snapshot --dir /caas/rk2/etcd-backup/

  • Output
Incorrect Usage. flag provided but not defined: -agent-token

NAME:
   rke2 etcd-snapshot - Trigger an immediate etcd snapshot

USAGE:
   rke2 etcd-snapshot command [command options] [arguments...]

COMMANDS:
   delete       Delete given snapshot(s)
   ls, list, l  List snapshots
   prune        Remove snapshots that exceed the configured retention count
   save         Trigger an immediate etcd snapshot

OPTIONS:
   --debug                                              (logging) Turn on debug logs [$RKE2_DEBUG]
   --config FILE, -c FILE                               (config) Load configuration from FILE (default: "/etc/rancher/rke2/config.yaml") [$RKE2_CONFIG_FILE]
   --log value, -l value                                (logging) Log to file
   --alsologtostderr                                    (logging) Log to standard error as well as file (if set)
   --node-name value                                    (agent/node) Node name [$RKE2_NODE_NAME]
   --data-dir value, -d value                           (data) Folder to hold state (default: "/var/lib/rancher/rke2")
   --name value                                         (db) Set the base name of the etcd on-demand snapshot (appended with UNIX timestamp). (default: "on-demand")
   --s3, --etcd-s3                                      (db) Enable backup to S3
   --s3-endpoint value, --etcd-s3-endpoint value        (db) S3 endpoint url (default: "s3.amazonaws.com")
   --s3-endpoint-ca value, --etcd-s3-endpoint-ca value  (db) S3 custom CA cert to connect to S3 endpoint
   --s3-skip-ssl-verify, --etcd-s3-skip-ssl-verify      (db) Disables S3 SSL certificate validation
   --s3-access-key value, --etcd-s3-access-key value    (db) S3 access key [$AWS_ACCESS_KEY_ID]
   --s3-secret-key value, --etcd-s3-secret-key value    (db) S3 secret key [$AWS_SECRET_ACCESS_KEY]
   --s3-bucket value, --etcd-s3-bucket value            (db) S3 bucket name
   --s3-region value, --etcd-s3-region value            (db) S3 region / bucket location (optional) (default: "us-east-1")
   --s3-folder value, --etcd-s3-folder value            (db) S3 folder
   --s3-insecure, --etcd-s3-insecure                    (db) Disables S3 over HTTPS
   --s3-timeout value, --etcd-s3-timeout value          (db) S3 timeout (default: 30s)
   --dir value, --etcd-snapshot-dir value               (db) Directory to save etcd on-demand snapshot. (default: ${data-dir}/db/snapshots)
   --help, -h                                           show help

FATA[0000] flag provided but not defined: -agent-token
@brandond
Copy link
Member

Duplicate of #2103

@brandond brandond marked this as a duplicate of #2103 Nov 16, 2021
@brandond brandond added this to the v1.21.7+rke2r1 milestone Nov 16, 2021
@brandond brandond added the kind/bug Something isn't working label Nov 16, 2021
@brandond brandond removed this from the v1.21.7+rke2r1 milestone Nov 16, 2021
@cloudcafetech
Copy link
Author

@brandond
Is there any old version (1.21) I can use which don't have this issue?

@brandond
Copy link
Member

You can go back to the previous release in whatever branch you're using, or wait until the end of the week for the next one.

@cloudcafetech
Copy link
Author

v1.21.5+rke2r1 ? Is this OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants