Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create/delete sandboxes from the context #152

Open
jsitnicki opened this issue Feb 21, 2018 · 2 comments
Open

Create/delete sandboxes from the context #152

jsitnicki opened this issue Feb 21, 2018 · 2 comments

Comments

@jsitnicki
Copy link
Contributor

@jtaleric points out that Rally scenarios should be autonomous, that is they should not depend of the system state created by any scenarios that have run before them.

This is currently not true for scenarios that Rally ovs plugin provides because they depend on having a running controller sandbox (one with ovn-northd and NBDB/SBDB databases). Also, scenarios that involve port binding assume that there are fake chassis sandboxes running.

Instead of having scenarios for creating/destroying sandboxes that we need to run before/after the actual workload scenario, it would make sense to extend existing context(s) or create a new one that will create sandboxes before the scenario runs and clean them up afterwards.

An example of a such context can be found in Rally openstack plugin:
https://github.com/openstack/rally/blob/master/rally/plugins/openstack/context/nova/servers.py

@l8huang
Copy link
Collaborator

l8huang commented Feb 23, 2018

Make sense. Could you please create a new context for setup/teardown sandbox before/after run scenario.

For scalability test, we need to control how many sandbox should be setup before run scenario and keep them after done.

@jsitnicki
Copy link
Contributor Author

@l8huang we'll make sure that current behaviour is unaffected by any changes to contexts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants