Ask Your Question
0

How to launch nearly 500 Vms using FakeDriver on Packstack

asked 2015-11-21 13:01:13 -0600

Sahana gravatar image

updated 2015-11-21 13:10:02 -0600

Spawning a tons of VMs is a tough job! I read about FakeDrivers (nova.virt.fake) to achieve this, but I didn't understand a lot about it. I want to load test for purpose of nova scheduling using Python clients. Can anyone Plz suggest me what configuration should i follow to achieve "spawning the more number of VMs using Python scripts" on my laptop. It could be very usefull!!

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-12-17 01:08:05 -0600

Sahana gravatar image

Hey!! found solution to spawning a tons of VMs using Fake Driver on PackSatck environment for performing Load test..:)

Its easy to configure Fake Driver on Nova. Just have a look below:

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: Finally i ran my Python script to create openstack network topology. It works like charm!! Can able to launch nearly 800vms to 1000vms on my laptop :) And all the provisioned VMs shows ACTIVE state !

edit flag offensive delete link more

Comments

Good One..!!

Praveen N gravatar imagePraveen N ( 2015-12-28 10:05:44 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-11-21 13:01:13 -0600

Seen: 272 times

Last updated: Dec 17 '15