Remove validate_ceilometer plugin and use validate_ceilometer from rally

+ Remove existing plugin
+ Use the version of the scenario merged into upstream rally (0.5)

Change-Id: I61f79a85515dcc3ae8a665a78e204b2f130b37ba
This commit is contained in:
Alex Krzos 2016-07-07 08:43:22 -04:00 committed by akrzos
parent cd09901a99
commit eaedad454f
5 changed files with 17 additions and 92 deletions

View File

@ -1,55 +0,0 @@
# Basic set of initial stress tests to test overcloud before running complete set of benchmarks.
browbeat:
results : results/
rerun: 1
cloud_name: openstack
elasticsearch:
enabled: false
host: 1.1.1.1
port: 9200
metadata_files:
- name: hardware-metadata
file: metadata/hardware-metadata.json
- name: environment-metadata
file: metadata/environment-metadata.json
- name: software-metadata
file: metadata/software-metadata.json
ansible:
hosts: ansible/hosts
adjust:
keystone_token: ansible/browbeat/adjustment-keystone-token.yml
neutron_l3: ansible/browbeat/adjustment-l3.yml
nova_db: ansible/browbeat/adjustment-db.yml
workers: ansible/browbeat/adjustment-workers.yml
grafana_snapshot: ansible/browbeat/snapshot-general-performance-dashboard.yml
connmon:
enabled: false
sudo: true
grafana:
enabled: true
grafana_ip: 1.1.1.1
grafana_port: 3000
dashboards:
- openstack-general-system-performance
snapshot:
enabled: false
snapshot_compute: false
rally:
enabled: true
sleep_before: 5
sleep_after: 5
venv: /home/stack/rally-venv/bin/activate
plugins:
- netcreate-boot: rally/rally-plugins/netcreate-boot
- subnet-router-create: rally/rally-plugins/subnet-router-create
- validate-ceilometer: rally/rally-plugins/validate-ceilometer
benchmarks:
- name: plugins
enabled: true
concurrency:
- 2
times: 6
scenarios:
- name: validate-ceilometer
enabled: true
file: rally/rally-plugins/validate-ceilometer/validate-ceilometer.yml

View File

@ -54,6 +54,12 @@ rally:
- 512 - 512
times: 10000 times: 10000
scenarios: scenarios:
- name: authentic-ceilometer
enabled: true
file: rally/authenticate/validate_ceilometer-cc.yml
sla_max_avg_duration: 12
sla_max_seconds: 30
sla_max_failure: 0
- name: authentic-cinder - name: authentic-cinder
enabled: true enabled: true
file: rally/authenticate/validate_cinder-cc.yml file: rally/authenticate/validate_cinder-cc.yml

View File

@ -48,6 +48,12 @@ rally:
- 32 - 32
times: 100 times: 100
scenarios: scenarios:
- name: authentic-ceilometer
enabled: true
file: rally/authenticate/validate_ceilometer-cc.yml
sla_max_avg_duration: 12
sla_max_seconds: 30
sla_max_failure: 0
- name: authentic-cinder - name: authentic-cinder
enabled: true enabled: true
file: rally/authenticate/validate_cinder-cc.yml file: rally/authenticate/validate_cinder-cc.yml

View File

@ -3,14 +3,10 @@
{% set sla_max_failure = sla_max_failure or 0 %} {% set sla_max_failure = sla_max_failure or 0 %}
{% set sla_max_seconds = sla_max_seconds or 60 %} {% set sla_max_seconds = sla_max_seconds or 60 %}
--- ---
KeystonePlugin.validate_ceilometer: Authenticate.validate_ceilometer:
- -
args: args:
repetitions: {{repetitions}} repetitions: {{repetitions}}
runner:
concurrency: {{concurrency}}
times: {{times}}
type: "constant"
context: context:
users: users:
project_domain: "default" project_domain: "default"
@ -18,6 +14,10 @@
tenants: 1 tenants: 1
user_domain: "default" user_domain: "default"
users_per_tenant: 8 users_per_tenant: 8
runner:
concurrency: {{concurrency}}
times: {{times}}
type: "constant"
sla: sla:
max_avg_duration: {{sla_max_avg_duration}} max_avg_duration: {{sla_max_avg_duration}}
max_seconds_per_iteration: {{sla_max_seconds}} max_seconds_per_iteration: {{sla_max_seconds}}

View File

@ -1,32 +0,0 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from rally.plugins.openstack import scenario
from rally.task import atomic
from rally.task import validation
class KeystonePlugin(scenario.OpenStackScenario):
@validation.number("repetitions", minval=1)
@validation.required_openstack(users=True)
@scenario.configure()
def validate_ceilometer(self, repetitions):
"""Check Ceilometer Client to ensure validation of token.
Creation of the client does not ensure validation of the token.
We have to do some minimal operation to make sure token gets validated.
:param repetitions: number of times to validate
"""
ceilometer_client = self.clients("ceilometer")
with atomic.ActionTimer(self, "authenticate.validate_ceilometer_%s_times" %
repetitions):
for i in range(repetitions):
ceilometer_client.meters.list()