From 1866ef201ca56548019afc1751760121a56e4e6a Mon Sep 17 00:00:00 2001 From: Brad Deam Date: Thu, 5 Jan 2023 12:32:56 +1030 Subject: [PATCH] Allow specifying installation id --- esrally/rally.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/esrally/rally.py b/esrally/rally.py index 6da190c06..c881742be 100644 --- a/esrally/rally.py +++ b/esrally/rally.py @@ -489,6 +489,12 @@ def add_track_source(subparser): choices=["docker", "default"], default="default", ) + install_parser.add_argument( + "--installation-id", + required=False, + help="The id to use for the installation", + default=str(uuid.uuid4()), + ) for p in [race_parser, install_parser]: p.add_argument( "--cluster-name", @@ -1050,7 +1056,7 @@ def dispatch_sub_command(arg_parser, args, cfg): configure_mechanic_params(args, cfg) mechanic.download(cfg) elif sub_command == "install": - cfg.add(config.Scope.applicationOverride, "system", "install.id", str(uuid.uuid4())) + cfg.add(config.Scope.applicationOverride, "system", "install.id", args.installation_id) cfg.add(config.Scope.applicationOverride, "mechanic", "network.host", args.network_host) cfg.add(config.Scope.applicationOverride, "mechanic", "network.http.port", args.http_port) cfg.add(config.Scope.applicationOverride, "mechanic", "source.revision", args.revision)