ovirtlago package
Submodules
ovirtlago.cmd module
-
ovirtlago.cmd.
do_deploy
(prefix, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_collect
(prefix, output, no_skip, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_engine_setup
(prefix, config, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_reposetup
(prefix, rpm_repo, reposync_yum_config, repoman_config, skip_sync, custom_sources, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_revert
(prefix, snapshot_name, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_runtest
(prefix, test_file, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_serve
(prefix, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_snapshot
(prefix, snapshot_name, no_restore, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_start
(prefix, with_vms, vms_timeout, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_start_hosts
(prefix, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_start_vms
(prefix, vms_timeout, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_status
(prefix, out_format, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_stop
(prefix, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_stop_hosts
(prefix, **kwargs)[source]
-
ovirtlago.cmd.
do_ovirt_stop_vms
(prefix, **kwargs)[source]
ovirtlago.constants module
ovirtlago.paths module
ovirtlago.prefix module
ovirtlago.reposetup module
-
exception
ovirtlago.reposetup.
RepositoryError
[source]
Bases: exceptions.Exception
-
exception
ovirtlago.reposetup.
RepositoryMergeError
[source]
Bases: ovirtlago.reposetup.RepositoryError
-
ovirtlago.reposetup.
merge
(output_dir, sources, repoman_config=None)[source]
Run repoman on sources
, creating a new RPM repository in
output_dir
- Args:
output_dir(str): Path to create new repository
sources(list of str): repoman sources
repoman_config(str): repoman configuration file, if not passed it will
use default repoman configurations, equivalent to:
[main]
on_empty_source=warn
[store.RPMStore]
on_wrong_distro=copy_to_all
with_srcrpms=false
with_sources=false
- Raises:
RepositoryMergeError
: If repoman command failed.
IOError
: If repoman_config
is passed but does not exists.
- Returns:
- None
-
ovirtlago.reposetup.
sync_rpm_repository
(repo_path, yum_config, repos)[source]
-
ovirtlago.reposetup.
with_repo_server
(func)[source]
ovirtlago.testlib module
-
class
ovirtlago.testlib.
LogCollectorPlugin
(prefix)[source]
Bases: nose.plugins.base.Plugin
-
addError
(test, err)[source]
-
addFailure
(test, err)[source]
-
configure
(options, conf)[source]
-
name
= 'log-collector-plugin'
-
options
(parser, env=None)[source]
-
class
ovirtlago.testlib.
TaskLogNosePlugin
(*args, **kwargs)[source]
Bases: nose.plugins.base.Plugin
-
addError
(test, err)[source]
-
configure
(options, conf)[source]
-
name
= 'tasklog-plugin'
-
options
(parser, env)[source]
-
score
= 10000
-
startTest
(test)[source]
-
stopTest
(test)[source]
-
ovirtlago.testlib.
assert_equals_within
(func, value, timeout, allowed_exceptions=None, initial_wait=10)[source]
-
ovirtlago.testlib.
assert_equals_within_long
(func, value, allowed_exceptions=None)[source]
-
ovirtlago.testlib.
assert_equals_within_short
(func, value, allowed_exceptions=None)[source]
-
ovirtlago.testlib.
assert_true_within
(func, timeout, allowed_exceptions=None)[source]
-
ovirtlago.testlib.
assert_true_within_long
(func, allowed_exceptions=None)[source]
-
ovirtlago.testlib.
assert_true_within_short
(func, allowed_exceptions=None)[source]
-
ovirtlago.testlib.
engine_capability
(caps)[source]
-
ovirtlago.testlib.
get_prefixed_name
(entity_name)[source]
-
ovirtlago.testlib.
get_test_prefix
()[source]
-
ovirtlago.testlib.
host_capability
(caps)[source]
-
ovirtlago.testlib.
test_sequence_gen
(test_list)[source]
-
ovirtlago.testlib.
with_ovirt_api
(func)[source]
-
ovirtlago.testlib.
with_ovirt_api4
(func)[source]
-
ovirtlago.testlib.
with_ovirt_prefix
(func)[source]
ovirtlago.utils module
-
ovirtlago.utils.
available_sdks
(modules=None)[source]
-
ovirtlago.utils.
generate_request_handler
(root_dir)[source]
Factory for _BetterHTTPRequestHandler classes
- Args:
- root_dir (path): Path to the dir to serve
- Returns:
- _BetterHTTPRequestHandler: A ready to be used improved http request
- handler
-
ovirtlago.utils.
get_data_file
(basename)[source]
Load a data as a string from the data directory
- Args:
- basename(str): filename
- Returns:
- str: string representation of the file
-
ovirtlago.utils.
partial
(func, *args, **kwargs)[source]
-
ovirtlago.utils.
repo_server_context
(*args, **kwds)[source]
Context manager that starts an http server that serves the given prefix’s
yum repository. Will listen on constants.REPO_SERVER_PORT
and on
the first network defined in the previx virt config
- Args:
- prefix(ovirtlago.prefix.OvirtPrefix): prefix to start the server for
- Returns:
- None
-
ovirtlago.utils.
require_sdk
(version, modules=None)[source]
ovirtlago.virt module