Ask Your Question

peegupta's profile - activity

2014-12-22 05:33:44 -0500 received badge  Famous Question (source)
2014-10-30 19:56:11 -0500 received badge  Popular Question (source)
2014-10-30 19:56:11 -0500 received badge  Notable Question (source)
2013-07-01 09:28:15 -0500 answered a question How to set cpuset attribute in vcpu element in instance xml?

Okay, thanks again for your time.

2013-07-01 08:16:03 -0500 answered a question How to set cpuset attribute in vcpu element in instance xml?

Thanks wangpan, that solved my question.

2013-07-01 08:15:48 -0500 answered a question How to set cpuset attribute in vcpu element in instance xml?

Hi wangpan, sorry for replying late, I was busy with some other stuff. I tried it out and guess what, it's working! Thank you very much! One more thing, is there any way to pin cpus dynamically? Meaning that when I give "nova boot" command can I decide which cpus I am going to pin this particular VM and the result reflects in the VM's xml? Does this mechanism works for each instance or just for making groups for libvirt to use?

2013-06-27 07:35:36 -0500 answered a question How to set cpuset attribute in vcpu element in instance xml?

Okay, looks like devstack doesn't have services, it has screens and I am not sure how to restart them. I am gonna need some time to figure that out. Plus, for God knows what reason my devstack setup doesn't log anything!

2013-06-27 06:57:48 -0500 answered a question How to set cpuset attribute in vcpu element in instance xml?

I have added it to the [DEFAULT] section only. When I did head /etc/nova/nova.conf, I got this:

root@peeyush-virtual-machine:/opt/stack/nova# head /etc/nova/nova.conf

[DEFAULT] vcpu_pin_set = 2 log_dir = /var/log/nova firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver compute_driver = libvirt.LibvirtDriver flat_interface = eth0 flat_network_bridge = br100 vlan_interface = eth0 public_interface = br100

I launched a new instance after that and it's still not working. Still there is no cpuset attribute in the vcpu element.

2013-06-27 05:21:31 -0500 answered a question How to set cpuset attribute in vcpu element in instance xml?

Hi wangpan, thanks for the reply. I am running Ubuntu 12.04 as a VM on Fedora 18 host. Here are the details:

  1. I am using kvm.
  2. I have 3 pcpus.
  3. I set vcpu_pin_set = 2 in nova.conf
  4. Here is the xml:

<domain type="qemu"> <name>instance-00000009</name> <uuid>08c556d1-1e23-484e-94b2-e973eeb1b936</uuid> <memory>524288</memory> <currentmemory>524288</currentmemory> <vcpu>1</vcpu> <sysinfo type="smbios"> <system> <entry name="manufacturer">OpenStack Foundation</entry> <entry name="product">OpenStack Nova</entry> <entry name="version">2013.2</entry> <entry name="serial">bd348807-a480-1b3f-eb66-65b2d88cba58</entry> <entry name="uuid">08c556d1-1e23-484e-94b2-e973eeb1b936</entry> </system> </sysinfo> <os> <type arch="x86_64" machine="pc-1.0">hvm</type> <boot dev="hd"/> <smbios mode="sysinfo"/> </os> <features> <acpi/> <apic/> </features> <clock offset="utc"/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none"/> <source file="/opt/stack/data/nova/instances/08c556d1-1e23-484e-94b2-e973eeb1b936/disk"/> <target dev="vda" bus="virtio"/>

</disk> <interface type="bridge"> <mac address="fa:16:3e:79:07:c0"/> <source bridge="br100"/> <model type="virtio"/> <driver name="qemu"/> <filterref filter="nova-instance-instance-00000009-fa163e7907c0"/>
</interface> <serial type="file"> <source path="/opt/stack/data/nova/instances/08c556d1-1e23-484e-94b2-e973eeb1b936/console.log"/> <target port="0"/> </serial> <serial type="pty"> <target port="1"/> </serial> <console type="file"> <source path="/opt/stack/data/nova/instances/08c556d1-1e23-484e-94b2-e973eeb1b936/console.log"/> <target type="serial" port="0"/> </console> <input type="tablet" bus="usb"/> <input type="mouse" bus="ps2"/> <graphics type="vnc" port="-1" autoport="yes" listen="127.0.0.1" keymap="en-us"> <listen type="address" address="127.0.0.1"/> </graphics> <video> <model type="cirrus" vram="9216" heads="1"/>
</video> <memballoon model="virtio">
</memballoon> </devices> </domain>

                                                                                                                                        1,1           Top
2013-06-26 08:40:30 -0500 asked a question How to set cpuset attribute in vcpu element in instance xml?

Hi, in relation to the changes shown here : https://blueprints.launchpad.net/nova/+spec/instance-vcpu-pin (https://blueprints.launchpad.net/nova...) , I want to set cpuset attribute. But I can't enable this. I tried to add vcpu_pin_set to nova.conf , but it's not working. I am using devstack on Ubuntu 12.04. What am I doing wrong?

2013-06-17 08:57:06 -0500 answered a question Does scheduler run in a single node environment?

Yeah, I checked it and nova-scheduler is running. Let me check setting debug to true in config files.

2013-06-17 08:55:30 -0500 answered a question How to trace AMQP calls?

Thanks Keith Tobin, that solved my question.

2013-06-17 08:07:31 -0500 answered a question Does scheduler run in a single node environment?

Thanks Keith. I have installed all the components. So, I guess scheduler is running on my system. Now, as my understanding goes, when I use nova "boot command", scheduler sends a rpc call to compute manager (/compute/manager.py) and then _run_instance() function takes cares of launching the instance. I am trying to track the flow here. So, I put pdb.set_trace() in that particular function. The issue is, that part of program is not being executed (I am not getting redirected to python debugger). If the scheduler is running, the I should encounter debugger before the output on the screen, shouldn't I?

2013-06-13 05:02:31 -0500 asked a question Does scheduler run in a single node environment?

Hi, I have installed openstack on Ubuntu 12.04 LTS. Now, as it is a single node establishment, so there is only one host. As my understanding goes, scheduler selects the hosts to run the instance on. Now, I want to know will the run on my setup as there is just one host and nothing to select from?

2013-06-13 04:44:28 -0500 asked a question How to trace AMQP calls?

So, I am trying to understand the working logic for openstack. Now, using python debugger (pdb), I can track the parts of code that are being executed, but I am not able to trace rpc calls. Is there any mechanism/tool available that can help me?