Comment 1 for bug 1781365

Revision history for this message
Ilya Shakhat (shakhat) wrote : Re: How to use existing network and VM

It's possible, though requires some manual work.

For example to run network test between 2 VMs you approximately need to do the following:
 1) Create routable network (VM should be able to reach shaker server)
 2) Boot VM from the image built by shaker. Or, alternatively, you can use any other image with 'pyshaker' Python package installed
 3) Start shaker agent on VM: $ shaker-agent --server-endpoint <shaker host:port> --agent-id <e.g. a-001>
 4) Repeat 2) and 3) but with different agent-id, e.g. 'a-002'
 5) Start shaker (server) with scenario like this: https://github.com/openstack/shaker/blob/master/shaker/scenarios/misc/static_agents_pair.yaml Note that agent-ids in scenario should match those from VMs. The execution part of scenario can be taken from OpenStack scenarios, e.g. https://github.com/openstack/shaker/blob/master/shaker/scenarios/openstack/full_l2.yaml#L17-L19