Connecting to existing VM with OS

Asked by Gregory Hanson

Hi,

Very new to Rally. I currently have Rally successfully installed on a VM running Ubuntu. I also have a KVM with OpenStack installed and running on another VM. From the Rally Wiki it sounds like there should be a way to connect to an existing VM image with OpenStack installed but I have been unable to find documentation as how to connect Rally with my OpenStack instance. Where can I find steps or documentation on how to complete this connection?

Question information

Language:
English Edit question
Status:
Answered
For:
Rally Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Boris Pavlovic (boris-42) said :
#1

Just to ensure..

You have:
1) VM with Rally
2) VM with OpenStack

You would like to run Rally against this OpenStack?

Revision history for this message
Gregory Hanson (g-isaac-hanson) said :
#2

Yes, that is what I am trying to do

Revision history for this message
Boris Pavlovic (boris-42) said :
#3

So you should create Rally deployment (that will just present existing one).

Lets assume that admin enpdoint is next: username: admin, password: admin, tenant: admin, auth_url: some_url

so you should create json file (e.g. mycloud.json) with next lines:
  {
    "name": "DummyEngine",
    "endpoint": {
      "auth_url": "some_url",
      "username": "admin",
      "password": "admin",
      "tenant_name": "admin"
    }
  }

So now you should run:
  # rally deployment create --file mycloud.json --name mycloud --use

(If you specify --use it will pass as default deployment uuid, uuid of this created deployment)

So now you should go to horizon and find UUID of cirros images (or upload new images)
and write task input config (task.json):
  {
  "NovaServers.boot_and_delete_server": [
    {"args": {"flavor_id": 42, "image_id": "<YOUR_IMAGE_ID>"},
     "config": {"times": 10, "active_users": 2, "tenants": 2, "users_per_tenant": 3}
     }
   ]
  }

and run task:

rally -v task start task.json

This will run task against your cloud. In task there is only one benchmark scneario, that will do next things:
1) Create 2 TMP tenants
2) Create 3 TMP users in each of these tenants
3) Call this method: NovaServers.boot_and_delete_server 10 times every time using 2 simultaneously working users (that are for every call randomly chosen from temp users)

(btw I am hard working around Rally wiki now, so I made recently some changes on main page, probably it will help you a bit https://wiki.openstack.org/wiki/Rally)

Can you help with this problem?

Provide an answer of your own, or ask Gregory Hanson for more information if necessary.

To post a message you must log in.