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

Allow specifying --installation-id in esrally install #1649

Merged
merged 1 commit into from
Jan 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion esrally/rally.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down