This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rally/benchmark/scenarios/utils.py b/rally/benchmark/scenarios/utils.py | |
index 4825795..4063fe3 100644 | |
--- a/rally/benchmark/scenarios/utils.py | |
+++ b/rally/benchmark/scenarios/utils.py | |
@@ -144,7 +144,7 @@ def atomic_action_timer(name): | |
return wrap | |
-class AtomicAction(object): | |
+class AtomicAction(utils.Timer): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
191 def run(self, name, context, args): | |
192 cls_name, method_name = name.split(".", 1) | |
193 cls = base.Scenario.get_by_name(cls_name) | |
194 | |
195 scenario_context = copy.deepcopy(getattr(cls, method_name).context) | |
196 # TODO(boris-42): We should keep default behavior for `users` context | |
197 # as a part of work on pre-created users this should be | |
198 # removed. | |
199 scenario_context.setdefault("users", {}) | |
200 # merge scenario context and task context configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Pdb) bt | |
/home/mmorais/rallyve/bin/rally(10)<module>() | |
-> sys.exit(main()) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/main.py(44)main() | |
-> return cliutils.run(sys.argv, categories) | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/cliutils.py(193)run() | |
-> ret = fn(*fn_args, **fn_kwargs) | |
<string>(2)start() | |
/home/mmorais/rallyve/lib/python2.7/site-packages/rally/cmd/envutils.py(63)default_from_global() | |
-> return f(*args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mmorais@displaytoday rally$ tox -c mytox.ini -e pep8,py27 | |
pep8 develop-inst-noop: /home/mmorais/rally | |
pep8 runtests: commands[0] | flake8 | |
py27 develop-inst-noop: /home/mmorais/rally | |
py27 runtests: commands[0] | python setup.py testr --slowest --testr-args= | |
running testr | |
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests --list | |
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning) | |
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests --load-list /tmp/tmp7Jrd4c | |
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests --load-list /tmp/tmpkfGpvS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat copy_ssh_keys.sh | |
#!/usr/bin/env bash | |
file="$1" | |
if [ ! -f "$file" ] ; then | |
echo "Usage: $0 [FILE]" | |
exit 1 | |
fi | |
user=`whoami` | |
echo "password: \c" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# execute (python|pip|virtualenv) as 'env PATH=${PREFIX}:${PATH} python' | |
PREFIX=/opt/mypy | |
if [ $# -gt 0 ] ; then | |
PREFIX=$1 | |
fi | |
PYVER=2.7.6 | |
if [ $# -gt 1 ] ; then | |
PYVER=$2 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### python-virtualenv-notes ### | |
Notes from virtualenv documentation on pypi http://pypi.python.org/pypi/virtualenv | |
o Install | |
instructions for installing | |
http://www.virtualenv.org/en/latest/#installation | |
in case you haven't already install pip | |
$ sudo apt-get install python-pip | |
OR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(rallyve)mmorais@displaytoday rally$ rally --verbose task start --deploy-id=4f449b2d-ba2d-4096-a7a8-2e77969b3bae --task dummy.json | |
/home/mmorais/rallyve/lib/python2.7/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability. | |
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning) | |
================================================================================ | |
Task a4ff5c81-a60d-4a34-93bc-41f25e1d337c is started | |
-------------------------------------------------------------------------------- | |
2014-06-19 17:37:17.720 24773 INFO rally.orchestrator.api [-] Benchmark Task a4ff5c81-a60d-4a34-93bc-41f25e1d337c on Deployment 4f449b2d-ba2d-4096-a7a8-2e77969b3bae | |
2014-06-19 17:37:17.720 24773 INFO rally.benchmark.engine [-] Task a4ff5c81-a60d-4a34-93bc-41f25e1d337c | Starting: Check cloud. | |
2014-06-19 17:37:18.037 24773 INFO rally.benchmark.e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reset root password | |
o Stop MySQL | |
$ sudo /sbin/service mysqld stop | |
o Restart it manually with the skip-grant-tables option: | |
$ mysqld_safe --skip-grant-tables | |
o Run the MySQL client: | |
$ mysql -u root | |
o Reset the root password manually with this MySQL command: | |
mysql> UPDATE mysql.user SET Password=PASSWORD('XXX') WHERE User='root'; | |
o Flush the privileges with this MySQL command: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
components: | |
# Order matters here! | |
- general | |
- db | |
- rabbit-mq | |
# Oslo libraries | |
- oslo-config | |
- oslo-messaging | |
- pycadf |
OlderNewer