Пример #1
0
from rally import consts
from rally import exceptions
from rally.task import context
from rally.task import hook
from rally.task import runner
from rally.task import scenario
from rally.task import sla
from rally.utils import strutils


LOG = logging.getLogger(__name__)

CONF = cfg.CONF

TASK_ENGINE_OPTS = [
    cfg.IntOpt("raw_result_chunk_size", default=1000, min=1,
               help="Size of raw result chunk in iterations"),
]


class ResultConsumer(object):
    """ResultConsumer class stores results from ScenarioRunner, checks SLA.

    Also ResultConsumer listens for runner events and notifies HookExecutor
    about started iterations.
    """

    def __init__(self, workload_cfg, task, subtask, workload, runner,
                 abort_on_sla_failure, ctx_manager):
        """ResultConsumer constructor.

        :param workload_cfg: A configuration of the Workload
Пример #2
0
 cfg.StrOpt("swift_reseller_admin_role",
            default="ResellerAdmin",
            deprecated_group="tempest",
            help="User role that has reseller admin"),
 cfg.StrOpt("heat_stack_owner_role",
            default="heat_stack_owner",
            deprecated_group="tempest",
            help="Role required for users "
            "to be able to manage Heat stacks"),
 cfg.StrOpt("heat_stack_user_role",
            default="heat_stack_user",
            deprecated_group="tempest",
            help="Role for Heat template-defined users"),
 cfg.IntOpt(
     "flavor_ref_ram",
     default="64",
     deprecated_group="tempest",
     help="Primary flavor RAM size used by most of the test cases"),
 cfg.IntOpt(
     "flavor_ref_alt_ram",
     default="128",
     deprecated_group="tempest",
     help="Alternate reference flavor RAM size used by test that "
     "need two flavors, like those that resize an instance"),
 cfg.IntOpt(
     "flavor_ref_disk",
     default="5",
     help="Primary flavor disk size in GiB used by most of the test "
     "cases"),
 cfg.IntOpt("flavor_ref_alt_disk",
            default="5",
Пример #3
0
#
#         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.common import cfg

OPTS = {
    "openstack": [
        cfg.IntOpt("users_context_resource_management_workers",
                   default=20,
                   deprecated_name="resource_management_workers",
                   deprecated_group="users_context",
                   help="The number of concurrent threads to use for serving "
                   "users context."),
        cfg.StrOpt("project_domain",
                   default="default",
                   deprecated_group="users_context",
                   help="ID of domain in which projects will be created."),
        cfg.StrOpt("user_domain",
                   default="default",
                   deprecated_group="users_context",
                   help="ID of domain in which users will be created."),
        cfg.StrOpt("keystone_default_role",
                   default="member",
                   deprecated_group="users_context",
                   help="The default role name of the keystone to assign to "
                   "users.")
Пример #4
0
# Copyright 2013: Mirantis Inc.
# All Rights Reserved.
#
#    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.common import cfg

OPTS = {
    "openstack": [
        cfg.IntOpt("roles_context_resource_management_workers",
                   default=30,
                   deprecated_name="resource_management_workers",
                   deprecated_group="roles_context",
                   help="How many concurrent threads to use for serving roles "
                   "context"),
    ]
}
Пример #5
0
#         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.common import cfg

KUBERNETES_OPTS = [
    cfg.FloatOpt("start_prepoll_delay",
                 default=0.0,
                 help="Time to sleep before polling for status"),
    cfg.IntOpt("status_total_retries",
               default=50,
               help="Kubernetes total retries to read resource status"),
    cfg.FloatOpt("status_poll_interval",
                 default=1.0,
                 help="Kubernetes status poll interval")
]


def list_opts():
    """Return a list of configuration options.

    This is entry-point which is configured via setup.cfg
    """

    return {"kubernetes": KUBERNETES_OPTS}
Пример #6
0
#    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.common import cfg


DOCKER_OPTS = [
    cfg.IntOpt("resource_deletion_timeout",
               default=600,
               deprecated_group="cleanup",
               help="A timeout in seconds for deleting resources"),
    cfg.IntOpt("cleanup_threads",
               default=20,
               deprecated_group="cleanup",
               help="Number of cleanup threads to run")
]


def list_opts():
    """Return a list of configuration options.

    This is entry-point which is configured via setup.cfg
    """

    return {"docker": DOCKER_OPTS}
Пример #7
0
# All Rights Reserved.
#
#    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.common import cfg

OPTS = {
    "openstack": [
        cfg.FloatOpt("watcher_audit_launch_poll_interval",
                     default=2.0,
                     deprecated_group="benchmark",
                     help="Watcher audit launch interval"),
        cfg.IntOpt("watcher_audit_launch_timeout",
                   default=300,
                   deprecated_group="benchmark",
                   help="Watcher audit launch timeout")
    ]
}
Пример #8
0
# All Rights Reserved.
#
#    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.common import cfg

OPTS = {
    "openstack": [
        cfg.IntOpt("mistral_execution_timeout",
                   default=200,
                   deprecated_group="benchmark",
                   help="mistral execution timeout")
    ]
}
Пример #9
0
               deprecated_group="tempest",
               help="Role required for users "
                    "to be able to create Swift containers"),
    cfg.StrOpt("swift_reseller_admin_role",
               default="ResellerAdmin",
               deprecated_group="tempest",
               help="User role that has reseller admin"),
    cfg.StrOpt("heat_stack_owner_role",
               default="heat_stack_owner",
               deprecated_group="tempest",
               help="Role required for users "
                    "to be able to manage Heat stacks"),
    cfg.StrOpt("heat_stack_user_role",
               default="heat_stack_user",
               deprecated_group="tempest",
               help="Role for Heat template-defined users"),
    cfg.IntOpt("flavor_ref_ram",
               default="64",
               deprecated_group="tempest",
               help="Primary flavor RAM size used by most of the test cases"),
    cfg.IntOpt("flavor_ref_alt_ram",
               default="128",
               deprecated_group="tempest",
               help="Alternate reference flavor RAM size used by test that "
               "need two flavors, like those that resize an instance"),
    cfg.IntOpt("heat_instance_type_ram",
               default="64",
               deprecated_group="tempest",
               help="RAM size flavor used for orchestration test cases")
]}
Пример #10
0
#    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.common import cfg

OPTS = {
    "openstack": [
        cfg.IntOpt("sahara_cluster_create_timeout",
                   default=1800,
                   deprecated_group="benchmark",
                   help="A timeout in seconds for a cluster create operation"),
        cfg.IntOpt("sahara_cluster_delete_timeout",
                   default=900,
                   deprecated_group="benchmark",
                   help="A timeout in seconds for a cluster delete operation"),
        cfg.IntOpt("sahara_cluster_check_interval",
                   default=5,
                   deprecated_group="benchmark",
                   help="Cluster status polling interval in seconds"),
        cfg.IntOpt(
            "sahara_job_execution_timeout",
            default=600,
            deprecated_group="benchmark",
            help="A timeout in seconds for a Job Execution to complete"),
        cfg.IntOpt("sahara_job_check_interval",
Пример #11
0
# All Rights Reserved.
#
#    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.common import cfg

OPTS = {
    "openstack": [
        cfg.IntOpt("murano_deploy_environment_timeout",
                   default=1200,
                   deprecated_name="deploy_environment_timeout",
                   deprecated_group="benchmark",
                   help="A timeout in seconds for an environment deploy"),
        cfg.IntOpt("murano_deploy_environment_check_interval",
                   default=5,
                   deprecated_name="deploy_environment_check_interval",
                   deprecated_group="benchmark",
                   help="Deploy environment check interval in seconds"),
    ]
}