Ask Your Question
0

openstack usage

asked 2019-01-15 03:09:51 -0500

lelunicu gravatar image

updated 2019-01-15 20:11:35 -0500

hi, i am new in openstack. i like to know how can i find what resources consume every instance from a project from command line in compute.The command must be executed on director? the same what resources consume every compute from command line.executed from director? what command can i execute in compute to see the resource consumed by every instance?with top or other linux commands?I run on rhel 7. tnx.

hi, in compute node virsh list

Id Name State
10 instance-000001ba running 
11 instance-000001c0 running 
12 instance-000001d8 running 
13 instance-000001db running

ps -ef|grep qemu 
qemu 859189 1 1 2018 ? 18:35:24 /usr/libexec/qemu-kvm -name guest=instance-000001ba

with top i look to see the pid= 859189 right?

what show the below?

nova-manage vm list
|more Option "rpc_backend" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future. 
instance node type state launched image kernel ramdisk project user zone index test2 overcloud-compute-0.localdomain m1.nano active 2018-11-08 01:42:24+00:00 9ebe3091-e6e0-4e57-8796-53f6e666fc2d bffe43fc4b3a4c12b1aedd6e7196ac04 500c3796d2bb4586be85029af0dbcac4 nova

what is with this image 9ebe3091-e6e0-4e57-8796-53f6e666fc2d ? the local images are ls /var/lib/libvirt/qemu.right? channel domain-10-instance-000001ba domain-11-instance-000001c0 domain-12-instance-000001d8 domain-13-instance-000001db dump nvram ram tnx

edit retag flag offensive close merge delete

Comments

with top i look to see the pid= 859189 right?

Yes

what show the below?

No idea. I don't know the command nova-manage vm list. To list instances, use openstack server list.

the local images are ls /var/lib/libvirt/qemu.right?

I don't know what you mean by "local images".

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-15 20:13:23 -0500 )edit

Please format your code so that it is readable. You have a button labeled "101010" for that purpose.

Also, put additional information in your question, not in an answer. Questions can be edited.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-15 20:14:15 -0500 )edit

If by "local images" you mean the ephemeral root disks of instances, this is configured with instances_path in nova.conf. I have to admit that I don't know where Red Hat OpenStack cloud keeps them. A common location is /var/lib/nova/instances.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-15 20:20:11 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-01-15 08:00:10 -0500

Assuming that your hypervisor is KVM, use top or another program to view the resource use of the qemu process corresponding to the instance. You can also use virsh commands.

To find out what libvirt domain corresponds to the instance, run openstack server show as administrator.

If you have a different hypervisor, the name of the process and/or the tool are different.

Note that "Director" is a Red Hat OpenStack term. Non-Redhat clouds don't have a director.

edit flag offensive delete link more

Comments

hi, the openstack overcloud services-nova,glance,neutron,so on are deployed from director.right? if i create VM guest in compute with virt-install than this guest will not be seen horizon.right? tnx

lelunicu gravatar imagelelunicu ( 2019-01-16 06:27:00 -0500 )edit

I can answer the second question. Nova only knows the virtual machines that it has in its database. If they are created outside of Nove, they are not in the database, thus not known.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-16 10:08:00 -0500 )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

Stats

Asked: 2019-01-15 02:43:32 -0500

Seen: 20 times

Last updated: Jan 15