Centralized repo for EnOS based benchmarks on Neutron. This includes a collection of scripts/examples/docs.
Currently the tests are made on vbox but having everything in this centralized place would ease the transition to Grid'5000 in the future.
Run enos deploy
NB: the configuration is set to use an external persistent registry. You can start one on the host machine :
docker run -e "REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io" -p 0.0.0.0:4000:5000 --name registry -ti registry:2
Rationale: bootstrap a vagrant(vbox) environment for testing/debugging purpose on Grid'5000 (because we have bigger machine there)
Requirements:
- enoslib
Run enos deploy -f reservation.yml
Use case: run the following (unmerged) rally scenario : https://review.opendev.org/#/c/662781/
In this particular case we can't do it from EnOs directly because the patch isn't a rally plugin (some core file seems modified --https://review.opendev.org/#/c/662781/ ). Instead we'll have to run rally from the sources.
- Install rally, the regular way [0] as a non-root user.
- Install rally-openstack from the source. Checkout the right patchset:
source ~/rally/bin/activate
git clone https://github.com/openstack/rally-openstack
cd rally-openstack
git fetch https://review.opendev.org/openstack/rally-openstack refs/changes/81/662781/5 && git checkout FETCH_HEAD
pip install -U -e .
- Add the existing deployment [1]
And run a task:
rally task start samples/tasks/scenarios/neutron/create-and-bind-ports.yaml
In reservation.yaml
:
kolla:
[...]
enable_osprofiler: true
enable_elasticsearch: true
Related Rally documentation [3]
Note that the HMAC key is hard-coded in EnOS:
OSPROFILER_HMAC_KEY=79cca0a7b4fe3022077f1e1291dfccf9
. ( One can check the
current/password.yml
)
To retrieve a trace, you need elasticsearch client installed:
pip install "elasticsearch>=2.0.0,<3.0.0"
The trace can be retrieved using:
osprofiler trace show --html --out trace.html 2931c692-3f37-43db-982a-692e37cc1e96 --connection-string elasticsearch://192.168.42.243:9200