Ask Your Question

How to launch Fake VMs on packstack for performing Load Test

asked 2015-11-21 12:42:42 -0500

Sahana gravatar image

updated 2015-11-21 13:05:38 -0500

I am using Python script to create tenants, users, networks, VMs and assigning floating ips for VMs through python clients. As of now, its working fine, but when launching VMs through script taking nearly 20mins or more. Suppose if i want to launch large number of VMs (simply can say 500 VMs) using script, i have to wait for days!! I read few articles about FakeDriver in Openstack. below are the related links.

Can anyone please help me to try & achieve "Fake Driver in compute" on my laptop (launching more fake instances) for performing Load Test on Packstack.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-12-17 01:02:22 -0500

Sahana gravatar image

I have found solution to launch Fake VMs by configuring Fake Driver on Nova and achieved nearly a 1000vms on PackStack environment for performing Load Test!!

Step1: OpenStack deployment using PackStack

step 2: In /etc/nova/nova.conf:

Enable the fake compute driver

Instead of : #compute_driver = nova.virt.libvirt.LibvirtDriver

replaced with: compute_driver = fake.FakeDriver

Step 3: Disable the scheduler's checking of RAM capacity

Instead of: #scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter, CoreFilter Replaced with: #scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter

Step 4: Restart openstack nova compute and scheduler services

#systemctl restart openstack-nova-compute.service openstack-nova-scheduler.service

Step 5: I ran my Python script to create openstack network topology. It works like charm!! Can able to launch nearly 1000vms on my laptop :)

edit flag offensive delete link more


Awesome A new learning for me ... Thank you

Prateek K gravatar imagePrateek K ( 2015-12-17 01:13:07 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-11-21 12:42:42 -0500

Seen: 393 times

Last updated: Dec 17 '15