From d9220c2d0d9d7bc1dff0037b397fc074ef35c151 Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Fri, 10 Feb 2017 18:17:01 +0000 Subject: [PATCH] Use registered variables for locust commands Since we already have the load balancer vip available, we can use that instead of hardcoding locust to use localhost. Change-Id: I916b14bce56aac94d2810bf96ba15436d6bb2cae --- tests/test-benchmark-keystone-upgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-benchmark-keystone-upgrade.yml b/tests/test-benchmark-keystone-upgrade.yml index 7ac7eae3..2792e2b4 100644 --- a/tests/test-benchmark-keystone-upgrade.yml +++ b/tests/test-benchmark-keystone-upgrade.yml @@ -31,7 +31,7 @@ - { src: "auth.json" , dest: "/opt/auth.json" } - { src: "locustfile.py" , dest: "/opt/locustfile.py" } - name: Run locust - command: locust -f /opt/locustfile.py --no-web --clients=1 --only-summary --host=http://localhost --port=5000 --logfile=/var/log/locust.log + command: locust -f /opt/locustfile.py --no-web --clients=1 --only-summary --host={{ keystone_service_publicuri }} --logfile=/var/log/locust.log async: 1000 poll: 0 register: locust_benchmark