Jump to: navigation, search

Difference between revisions of "Rally/FullExamples"

m (Simple deploy with devstask fakevirt in lxc container on host 10.2.250.110)
(Simple deploy with devstask fakevirt in lxc container on host 10.2.250.110)
Line 1: Line 1:
 
=== Simple deploy with devstask fakevirt in lxc container on host 10.2.250.110 ===
 
=== Simple deploy with devstask fakevirt in lxc container on host 10.2.250.110 ===
 +
 +
Please note that containers are attached to host's physical network, so container's ip addresses should be in the same ip range (see start_ip_address option)
  
 
  {
 
  {
Line 23: Line 25:
 
             }
 
             }
 
         }
 
         }
    },
 
    "tests": {
 
        "verify": [],
 
        "benchmark": {}
 
 
     }
 
     }
 
  }
 
  }

Revision as of 16:30, 25 November 2013

Simple deploy with devstask fakevirt in lxc container on host 10.2.250.110

Please note that containers are attached to host's physical network, so container's ip addresses should be in the same ip range (see start_ip_address option)

{
   "deploy": {
       "name": "LxcEngine",
       "provider": {
           "name": "DummyProvider",
           "credentials": ["root@10.2.250.110"]
       },
       "distribution": "ubuntu",
       "container_name_prefix": "lxc-fakevirt-test-",
       "start_ip_address": "10.2.13.1/16",
       "nodes_per_server": 1,
       "container_config": {
           "gateway": "10.2.0.1",
           "nameserver": "172.18.208.44"
       },
       "engine": {
           "name": "DevstackEngine",
           "localrc": {
               "API_RATE_LIMIT": "False",
               "VIRT_DRIVER": "fake"
           }
       }
   }
}

Multhihost deploy with one controller and 4 computes with devstack

{
   "deploy": {
       "name": "MultihostEngine",
       "controller": {
           "name": "DevstackEngine",
           "localrc": {
               "MULTI_HOST": "1",
               "DATABASE_TYPE": "mysql",
               "ADMIN_PASSWORD": "admin",
               "MYSQL_PASSWORD": "admin",
               "RABBIT_PASSWORD": "admin",
               "SERVICE_PASSWORD": "admin",
               "API_RATE_LIMIT": "False",
               "SERVICE_TOKEN": "ststst",
               "disable_service n-cpu  #": "",
               "disable_service n-net  #": ""
           },
           "provider": {
             "name": "OpenStackProvider",
             "deployment_name": "eye-cloud-test-controller",
             "user": "admin",
             "tenant": "admin",
             "flavor_id": "2",
             "password": "admin",
               "auth_url": "http://example.net:5000/v2.0",
               "amount": 1,
               "image": {
                   "checksum": "4e004e691d5adefbd01e71c9d1252ff9",
                   "name": "Ubuntu 13.04 Raring (added by rally)",
                   "format": "qcow2",
                   "userdata": "#cloud-config\r\n disable_root: false\r\n manage_etc_hosts: true\r\n",
                   "url": "http://cloud-images.ubuntu.com/raring/current/raring-server-cloudimg-amd64-disk1.img"
               }
           }
       },
       "nodes": [
           {  
               "name": "DevstackEngine",
               "localrc": {
                   "MULTI_HOST": "1",
                   "SERVICE_HOST": "{controller_ip}",
                   "SERVICE_TOKEN": "ststst",
                   "MYSQL_HOST": "{controller_ip}",
                   "DATABASE_TYPE": "mysql",
                   "RABBIT_HOST": "{controller_ip}",
                   "GLANCE_HOSTPORT": "{controller_ip}:9292",
                   "ADMIN_PASSWORD": "admin",
                   "MYSQL_PASSWORD": "admin",
                   "RABBIT_PASSWORD": "admin",
                   "SERVICE_PASSWORD": "admin",
                   "ENABLED_SERVICES": "n-cpu,n-net",
                   "API_RATE_LIMIT": "False"
               },
               "provider": {
                 "name": "OpenStackProvider",
                 "deployment_name": "eye-cloud-test-compute",
                 "user": "admin",
                 "tenant": "admin",
                 "flavor_id": "2",
                 "password": "admin",
                   "auth_url": "http://example.net:5000/v2.0",
                   "amount": 4,
                   "image": {
                       "checksum": "4e004e691d5adefbd01e71c9d1252ff9",
                       "name": "Ubuntu 13.04 Raring (added by rally)",
                       "format": "qcow2",
                       "userdata": "#cloud-config\r\n disable_root: false\r\n manage_etc_hosts: true\r\n",
                       "url": "http://cloud-images.ubuntu.com/raring/current/raring-server-cloudimg-amd64-disk1.img"
                   }
               }
           }
       ]
   }
  }
}