Esrally setup error

Hi Team,

I am setting up esrally on k8s. To do that I have created k8s deployment file with the below details. but when I am getting an error. Error logs below & deployment file used.

Error:

Traceback (most recent call last):

File "/usr/local/bin/esrally", line 8, in

sys.exit(main())

File "/usr/local/lib/python3.8/site-packages/esrally/rally.py", line 912, in main

console.init(quiet=args.quiet)

AttributeError: 'Namespace' object has no attribute 'quiet'

esrally.yml

apiVersion: apps/v1
kind: Deployment
metadata:
name: esrally
spec:
replicas: 1
selector:
matchLabels:
app: esrally
template:
metadata:
labels:
app: esrally
spec:
containers:
- name: esrally
image: elastic/rally:latest

Hi @purushothamkdr143, thanks for your question.

I think this is because no arguments are passed to the esrally binary.

If you take Kubernetes out of the picture and just run the below you get the same error:

$ docker run elastic/rally:latest
Traceback (most recent call last):
  File "/usr/local/bin/esrally", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/esrally/rally.py", line 910, in main
    console.init(quiet=args.quiet)
AttributeError: 'Namespace' object has no attribute 'quiet'

Try passing in some arguments, like list tracks below.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: esrally
spec:
  replicas: 1
  selector:
    matchLabels:
      app: esrally
  template:
    metadata:
      labels:
        app: esrally
    spec:
      containers:
      - name: esrally
        image: elastic/rally:latest
        args: ["list", "tracks"]

You can refer to the docs too.

Thank you for info.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.