Ask Your Question
1

capture network usage based on floating ip

asked 2015-03-10 13:17:29 -0600

lanpar gravatar image

i am interested in capture network usage based on the floatingip, ie- what data is leaving the vm out of the cloud...currently the network usage is on the server's port and i want to avoid internal data transmissions

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-12 15:15:31 -0600

What type of network did you deploy with nova-network, neutron VLAN/GRE?

Anywho jump on the compute node and get to '/var/lib/nova/instances/' then cd into the instances uuid, then locate the libvirt.xml that's where all the juicy details of instance are located

[root@node-4 3bda4b4e-fb3f-4f59-b59f-4d25b1e54f9d]# ls
console.log  disk  disk.info  libvirt.xml

[root@node-4 3bda4b4e-fb3f-4f59-b59f-4d25b1e54f9d]# grep -i tap libvirt.xml 
      <target dev="tapfc559e83-82"/>

[root@node-4 3bda4b4e-fb3f-4f59-b59f-4d25b1e54f9d]# ifconfig | grep tap
tapfc559e83-82 Link encap:Ethernet  HWaddr FE:16:3E:E7:40:3E

then you can just run a tcp dump on this tap interface, or if you are using neutron go all the way up to the router and run commands on the network namespace.

edit flag offensive delete link more

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-03-10 13:17:29 -0600

Seen: 58 times

Last updated: Mar 12 '15