Re: [Openstack] Memory meters from ceilometer
Thanks a lot Eoghan for your detailed response. I have enabled instance usage auditing in my nova.conf http://pastebin.ubuntu.com/5887592/. Is there anyway I could get these meters(memory and disk utilization) for VM's provisioned using OpenStack? Thanks for your efforts. On Thu, Jul 18, 2013 at 4:57 PM, Eoghan Glynn egl...@redhat.com wrote: Hey Jobin, Thanks for your perceptive question. The reason is that the conduits for gathering CPU metering and memory metering are quite different in ceilometer currently: * cpu/cpu_util are derived by polling the libvirt daemon * memory is derived from the compute.instance.exists notification sent by nova (This is the pollster versus notification-handler dichotomy you'll see throughout ceilometer). The reason you're not seeing the memory meter being collected is probably because you don't have instance usage auditing enabled in your nova config (see the Configure nova section in [1]). However, be warned that this meter is probably not the memory utilization statistic that you're expecting. Rather it's likely to be a static value reflecting the quantum of memory allocated by the hypervisor to the instance (as opposed to the sort of number you'd see when running free -m on the instance). I'm looking into adding support for more useful memory utilization metering (that could for example drive autoscaling logic), but this will require usage of an upcoming release of libvirt. Cheers, Eoghan [1] http://docs.openstack.org/developer/ceilometer/install/manual.html Hey! I am running openstack on an Ubuntu 12.04 desktop 64-bit virtual machine. I am trying to use ceilometer to get the CPU and memory utilization from my compute node on a KVM host which has a few VM's running on it. However, this is the list of meters I get from ceilometer: cpu, cpu_util, disk.read.bytes, disk.write.bytes, disk.read.requests, disk.write.requests, image, image.size, image.download, instance, instance:m1.small, network.incoming.bytes, network.outgoing.bytes, network.incoming.packets, network.outgoing.packets Why am I not getting memory usage meters? I don't see the logs to have any interpretation of this. Here is my ceilometer config file . -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Memory meters from ceilometer
Thanks Eoghan for your detailed response regarding the current scenario and progress related to this project. Had been investigating about this for while since they had been documented here in the official ceilometer measurements pagehttp://docs.openstack.org/developer/ceilometer/measurements.html. Thanks for your enlightenment! On Thu, Jul 18, 2013 at 8:43 PM, Eoghan Glynn egl...@redhat.com wrote: Hi Jobin, The memory utilization metering will require a new release of libvirt which will not be available for another few weeks. After that, it will depend on there being developer bandwidth available to put the ceilometer support in place for a new meter type. We have no current plans that I'm aware of to implement metering of disk utilization (in the sense of available diskspace, equivalent to that reported by say running the df command on the instance). But I could see it being a useful thing. The information is certainly available via the libvirt domain blockInfo, though there may be some wrinkles around multiple block devices versus volumes attached. In any case, please submit[1] a bug with a request for enhancement. Cheers, Eoghan [1] https://bugs.launchpad.net/ceilometer/+filebug - Original Message - Thanks a lot Eoghan for your detailed response. I have enabled instance usage auditing in my nova.conf http://pastebin.ubuntu.com/5887592/. Is there anyway I could get these meters(memory and disk utilization) for VM's provisioned using OpenStack? Thanks for your efforts. On Thu, Jul 18, 2013 at 4:57 PM, Eoghan Glynn egl...@redhat.com wrote: Hey Jobin, Thanks for your perceptive question. The reason is that the conduits for gathering CPU metering and memory metering are quite different in ceilometer currently: * cpu/cpu_util are derived by polling the libvirt daemon * memory is derived from the compute.instance.exists notification sent by nova (This is the pollster versus notification-handler dichotomy you'll see throughout ceilometer). The reason you're not seeing the memory meter being collected is probably because you don't have instance usage auditing enabled in your nova config (see the Configure nova section in [1]). However, be warned that this meter is probably not the memory utilization statistic that you're expecting. Rather it's likely to be a static value reflecting the quantum of memory allocated by the hypervisor to the instance (as opposed to the sort of number you'd see when running free -m on the instance). I'm looking into adding support for more useful memory utilization metering (that could for example drive autoscaling logic), but this will require usage of an upcoming release of libvirt. Cheers, Eoghan [1] http://docs.openstack.org/developer/ceilometer/install/manual.html Hey! I am running openstack on an Ubuntu 12.04 desktop 64-bit virtual machine. I am trying to use ceilometer to get the CPU and memory utilization from my compute node on a KVM host which has a few VM's running on it. However, this is the list of meters I get from ceilometer: cpu, cpu_util, disk.read.bytes, disk.write.bytes, disk.read.requests, disk.write.requests, image, image.size, image.download, instance, instance:m1.small, network.incoming.bytes, network.outgoing.bytes, network.incoming.packets, network.outgoing.packets Why am I not getting memory usage meters? I don't see the logs to have any interpretation of this. Here is my ceilometer config file . -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Location VM files
Hey! I was wondering where the files of a particular virtual machine are stored. If I am right, then they should be stored in the image from which I booted them, right? If they are stored in the image from which I boot the virtual machine, then I am not getting new images when I am creating a new virtual machine. If not please, guide me as to where these files are stored. The reason I am concerned about this is, I want to know the size of these files via ceilometer. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Memory meters from ceilometer
Hey! I am running openstack on an Ubuntu 12.04 desktop 64-bit virtual machine. I am trying to use ceilometer to get the CPU and memory utilization from my compute node on a KVM host which has a few VM's running on it. However, this is the list of meters I get from ceilometer: cpu, cpu_util, disk.read.bytes, disk.write.bytes, disk.read.requests, disk.write.requests, image, image.size, image.download, instance, instance:m1.small, network.incoming.bytes, network.outgoing.bytes, network.incoming.packets, network.outgoing.packets Why am I not getting memory usage meters? I don't see the logs to have any interpretation of this. Here is my ceilometer config filehttp://pastebin.ubuntu.com/5843567/ . -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Documentation for openstack-java-sdk
I am trying to query ceilometer using openstack-java-sdkhttps://github.com/woorea/openstack-java-sdkfor meters of VM's running on KVM. I am able to get the CPU meters via curl on the command line but unfortunately I don't find good documentation for the SDK's for ceilometer. I have seen this example programhttps://github.com/woorea/openstack-java-sdk/blob/master/openstack-examples/src/main/java/com/woorea/openstack/examples/metering/v2/TestAll.java but most of it is commented(probably because it is deprecated). Where can I find good documentation/examples or java programs/snippets? -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Fwd: Documentation for openstack-java-sdk
Thanks a log, Gui! This helps but would be more useful if you could point me to some *ceilometer-specific *guides/examples. On Thu, Jul 11, 2013 at 8:25 PM, Gui Maluf guimal...@gmail.com wrote: Surely Luis can help you, I've used openstack-java-sdk in one of my projects, and this is the example Luis gave to me private static final File TEST_FILE = new File(pom.xml); private static final String KEYSTONE_AUTH_URL = https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0;; private static final String KEYSTONE_USERNAME = ; private static final String KEYSTONE_PASSWORD = ; /** * @param args */ public static void main(String[] args) throws Exception { KeystoneClient keystone = new KeystoneClient(KEYSTONE_AUTH_URL); //access with unscoped token Access access = keystone.execute(Authenticate.withPasswordCredentials( KEYSTONE_USERNAME, KEYSTONE_PASSWORD)); //use the token in the following requests keystone.setToken(access.getToken().getId()); Tenants tenants = keystone.execute(new ListTenants()); //try to exchange token using the first tenant if(tenants.getList().size() 0) { access = keystone.execute(Authenticate.withToken(access.getToken().getId()).withTenantId(tenants.getList().get(0).getId())); SwiftClient swiftClient = newSwiftClient(KeystoneUtils.findEndpointURL(access.getServiceCatalog(), object-store, null, public), access.getToken().getId()); //swiftClient.execute(new DeleteContainer(navidad2)); swiftClient.execute(new CreateContainer(navidad2)); System.out.println(swiftClient.execute(new ListContainers())); ObjectForUpload upload = new ObjectForUpload(); upload.setContainer(navidad2); upload.setName(example2); upload.setInputStream(new FileInputStream(TEST_FILE)); swiftClient.execute(new UploadObject(upload)); System.out.println(swiftClient.execute(new ListObjects(navidad2, new HashMapString, String() {{ put(path, ); }})).get(0).getContentType()); } } On Thu, Jul 11, 2013 at 11:31 AM, Endre Karlson endre.karl...@gmail.comwrote: I think Luis can answer that? -- Videresendt melding -- Fra: Jobin Raju George jobin...@gmail.com Dato: 11. juli 2013 14:38 Emne: [Openstack] Documentation for openstack-java-sdk Til: openstack lista openstack@lists.launchpad.net Kopi: I am trying to query ceilometer using openstack-java-sdkhttps://github.com/woorea/openstack-java-sdkfor meters of VM's running on KVM. I am able to get the CPU meters via curl on the command line but unfortunately I don't find good documentation for the SDK's for ceilometer. I have seen this example programhttps://github.com/woorea/openstack-java-sdk/blob/master/openstack-examples/src/main/java/com/woorea/openstack/examples/metering/v2/TestAll.java but most of it is commented(probably because it is deprecated). Where can I find good documentation/examples or java programs/snippets? -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- *guilherme* \n \t *maluf* ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Fwd: Documentation for openstack-java-sdk
Okay, thanks Gui! Lets see how things go, but still I'm awaiting a little help with respect to the documentation and examples :/ On Thu, Jul 11, 2013 at 8:31 PM, Gui Maluf guimal...@gmail.com wrote: I know nothing about ceilometer. I think the best thing is to checkout the classes on github and make a lot of tests. Probably to functioning of objects and methods are the same in ceilometer. CHeckout the methods and try to workout with it. :) Good luck! On Thu, Jul 11, 2013 at 11:59 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks a log, Gui! This helps but would be more useful if you could point me to some *ceilometer-specific *guides/examples. On Thu, Jul 11, 2013 at 8:25 PM, Gui Maluf guimal...@gmail.com wrote: Surely Luis can help you, I've used openstack-java-sdk in one of my projects, and this is the example Luis gave to me private static final File TEST_FILE = new File(pom.xml); private static final String KEYSTONE_AUTH_URL = https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0;; private static final String KEYSTONE_USERNAME = ; private static final String KEYSTONE_PASSWORD = ; /** * @param args */ public static void main(String[] args) throws Exception { KeystoneClient keystone = new KeystoneClient(KEYSTONE_AUTH_URL); //access with unscoped token Access access = keystone.execute(Authenticate.withPasswordCredentials( KEYSTONE_USERNAME, KEYSTONE_PASSWORD)); //use the token in the following requests keystone.setToken(access.getToken().getId()); Tenants tenants = keystone.execute(new ListTenants()); //try to exchange token using the first tenant if(tenants.getList().size() 0) { access = keystone.execute(Authenticate.withToken(access.getToken().getId()).withTenantId(tenants.getList().get(0).getId())); SwiftClient swiftClient = newSwiftClient(KeystoneUtils.findEndpointURL(access.getServiceCatalog(), object-store, null, public), access.getToken().getId()); //swiftClient.execute(new DeleteContainer(navidad2)); swiftClient.execute(new CreateContainer(navidad2)); System.out.println(swiftClient.execute(new ListContainers())); ObjectForUpload upload = new ObjectForUpload(); upload.setContainer(navidad2); upload.setName(example2); upload.setInputStream(new FileInputStream(TEST_FILE)); swiftClient.execute(new UploadObject(upload)); System.out.println(swiftClient.execute(new ListObjects(navidad2, new HashMapString, String() {{ put(path, ); }})).get(0).getContentType()); } } On Thu, Jul 11, 2013 at 11:31 AM, Endre Karlson endre.karl...@gmail.com wrote: I think Luis can answer that? -- Videresendt melding -- Fra: Jobin Raju George jobin...@gmail.com Dato: 11. juli 2013 14:38 Emne: [Openstack] Documentation for openstack-java-sdk Til: openstack lista openstack@lists.launchpad.net Kopi: I am trying to query ceilometer using openstack-java-sdkhttps://github.com/woorea/openstack-java-sdkfor meters of VM's running on KVM. I am able to get the CPU meters via curl on the command line but unfortunately I don't find good documentation for the SDK's for ceilometer. I have seen this example programhttps://github.com/woorea/openstack-java-sdk/blob/master/openstack-examples/src/main/java/com/woorea/openstack/examples/metering/v2/TestAll.java but most of it is commented(probably because it is deprecated). Where can I find good documentation/examples or java programs/snippets? -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- *guilherme* \n \t *maluf* ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in -- *guilherme* \n \t *maluf* -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https
[Openstack] GPG passphrase
Hey! I am trying to get the meters from ceilometer programmatically using java with the help of the SDK's provided by openstack. While trying to execute the command mvn clean install or mvn clean install assembly:assembly, it is asking me for a gpg passphrase. Which passphrase is it talking about? If I just press an enter, it gives me the following error message: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.4:sig n (sign-artifacts) on project openstack-java-sdk: Exit code: 1 - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Here are my specifications: Apache Maven 3.0.5 Java version: 1.6.0_51, vendor: Sun Microsystems Inc. Default locale: en_US, platform encoding: Cp1252 OS name: windows 7, version: 6.1, arch: amd64, family: windows -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] How to query healthnmon?
Hey stackers! I am trying to use healthnmon to get meters regarding CPU/Memory utilization. But I can't find any documentation as to how to query healthnmon to get these data. I would appreciate if someone would point me to a link for the same or give an example how I could query healthnmon. I have referred to this link but it isn't very helpful: - Utilization data https://wiki.openstack.org/wiki/Utilizationdata I have a controller node and a compute node on two different hosts(both on Ubuntu 12.04). I couldn't get ceilometer to fetch these data for me and I read healthnmon is meant for this purpose. Please correct me if I am wrong. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Ceilometer getting a Connection refused from
I have a controller node and a compute node on two different hosts. When I query ceilometer from the compute node, I get a Connection refused errror from port no 27017 of controller node, which I suppose is the port no where mongo listens. I haven't installed mongodb in the compute node, though the error points to the controller node's mongodb port. This is the query is posted: curl -X GET -H 'X-Auth-Token:token_here' http://127.0.0.1:8777/v2/meters/instance?q.field=metadata.event_typeq.value=compute.instance.delete.start The result I get: The output http://pastebin.ubuntu.com/5835477/ (Since the output was too long, I considered not pasting it here, apologies for inconvenience). What is the reason behind this and how should I correct this? Please feel free to ask for clarification. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Ceilometer getting a Connection refused from
Here is my /etc/ceilometer/ceilometer.conf: http://pastebin.ubuntu.com/5835612/ On Tue, Jul 2, 2013 at 2:28 PM, Julien Danjou jul...@danjou.info wrote: On Tue, Jul 02 2013, Jobin Raju George wrote: Please feel free to ask for clarification. Could you paste the content of your configuration file? -- Julien Danjou /* Free Software hacker * freelance consultant http://julien.danjou.info */ -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Ceilometer getting a Connection refused from
10.112.107.107 is the IP address of the controller node where nova, keystone, ceilometer have been installed(and so is mongodb). I have installed ceilometer on the compute node also and configured it so that it knows that mongodb listens on 10.112.107.107:27017 but I don't know why it is refusing connection. However, I don't see a connection refused in mongodb's logs. Here are the last few lines of my ceilometer-api logs: http://pastebin.ubuntu.com/5835646/ On Tue, Jul 2, 2013 at 2:42 PM, Julien Danjou jul...@danjou.info wrote: On Tue, Jul 02 2013, Jobin Raju George wrote: Here is my /etc/ceilometer/ceilometer.conf: http://pastebin.ubuntu.com/5835612/ So the problem is that you configured it to use mongodb at mongodb://10.112.107.107:27017/ceilometer but mongodb doesn't seem to answer on this IP/port considering the error. I really dont'get what you don't get, it seems pretty obvious to me you should install MongoDB where you configured Ceilometer to look, right? -- Julien Danjou # Free Software hacker # freelance consultant # http://julien.danjou.info -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Problem installing healthnmon
Hey, Claudio! Just install dch and debuild using sudo apt-get install dch debuild and then retry the setup using ./build_healthnmon.sh -d Even though I had done this, I had some problems which I have posted on ask.openstack.orghttps://ask.openstack.org/question/2574/healthnmon-nosectionerror-error/but with no response yet. Hope you find the solution for that ;-) On Fri, Jun 28, 2013 at 10:24 PM, Claudio Marques clau...@onesource.ptwrote: Hi Stacker's! I have already ceilometer installed and fully functional on my 3 node Grizzly architecture, but I need to get more info from the VMs that I have installed. So I am trying to install healthnmon on my controller node, but, with no success so far, because every time that I try to install it get an error, and I fail's the all installation process. This is what I do: *git clone http://github.com/stackforge/healthnmon.git* *cd ~/healthnmon/ * *./build_healthnmon.sh -d * Everything seems to work fine until I get the following error. *(log of the full installation process is attached, if anyone don't mind of double checking it)* /*** *copying setup.cfg - healthnmon-2013.1.g3* *Writing healthnmon-2013.1.g3/setup.cfg* *Creating tar archive* *removing 'healthnmon-2013.1.g3' (and everything under it)* *Successfully created healthnmon tar.* *Source_dir created = healthnmon-2013.1.g3* *sh: 1: dch: not found* *sh: 1: debuild: not found* *Build failed* *Error: Failed to create healthnmon DEBIA*N I found this tutorial on this link https://github.com/healthnmon/healthnmon/wiki to install in Cent Os 6.3, but, my controller Node is installed on a Ubuntu 13.04. Am I missing something here ? Any help will be much appreciated. Thanks in advance Claudio Marques clau...@onesource.pt http://www.onesource.pt/ ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] How to query ceilometer to get nova-specific data
Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] How to query ceilometer to get nova-specific data
Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Ceilometer problem: virDomainLookupByName must not be NULL
I had this exact problem yesterday which, when I restarted the server, seems to have been resolved(I can't see the ERROR message again logged after restarting). You can see the conversation I had about this herehttps://ask.openstack.org/question/1480/compute-usage-meters-from-ceilometer/. See the comments to the answer by Ruslan Kiianchuk. On Thu, Jun 20, 2013 at 4:06 PM, Juha Tynninen tyk...@gmail.com wrote: Hello, I get an error libvir: error : name in virDomainLookupByName must not be NULL when trying to collect nova compute counters for VMs: Problem seems to occur inside ceilometer/compute/pollsters.py's _instance_name() method where OS-EXT-SRV-ATTR:instance_name can't be retrieved: def _instance_name(instance): Shortcut to get instance name. # my modifications start LOG.debug(HEEHO _instance_name 1: + str(instance)) name = getattr(instance, 'OS-EXT-SRV-ATTR:instance_name', None) LOG.debug(HEEHO _instance_name 2: + str(name)) # my modifications end return getattr(instance, 'OS-EXT-SRV-ATTR:instance_name', None) Log: 2013-06-20 21:16:57 INFO [ceilometer.compute.manager] Polling pollster cpu 2013-06-20 21:16:57 INFO [ceilometer.compute.pollsters.cpu] checking instance 6dcd9975-66c9-48ed-8ad1-e2174a94c99e 2013-06-20 21:16:57DEBUG [ceilometer.compute.pollsters] MYLOG _instance_name 1: Server: simpletest.MySimpleApp 2013-06-20 21:16:57DEBUG [ceilometer.compute.pollsters] MYLOG _instance_name 2: None libvir: error : name in virDomainLookupByName must not be NULL 2013-06-20 21:16:57ERROR [ceilometer.compute.pollsters.cpu] could not get CPU time for 6dcd9975-66c9-48ed-8ad1-e2174a94c99e: Error from libvirt while looking up None: [Error Code 8] name in virDomainLookupByName must not be NULL 2013-06-20 21:16:57ERROR [ceilometer.compute.pollsters.cpu] Error from libvirt while looking up None: [Error Code 8] name in virDomainLookupByName must not be NULL Traceback (most recent call last): File /usr/local/lib/python2.7/dist-packages/ceilometer-2013.1.1.a16.g93ea469-py2.7.egg/ceilometer/compute/pollsters.py, line 176, in get_counters cpu_info = manager.inspector.inspect_cpus(instance_name) File /usr/local/lib/python2.7/dist-packages/ceilometer-2013.1.1.a16.g93ea469-py2.7.egg/ceilometer/compute/virt/libvirt/inspector.py, line 103, in inspect_cpus domain = self._lookup_by_name(instance_name) File /usr/local/lib/python2.7/dist-packages/ceilometer-2013.1.1.a16.g93ea469-py2.7.egg/ceilometer/compute/virt/libvirt/inspector.py, line 87, in _lookup_by_name raise virt_inspector.InstanceNotFoundException(msg) InstanceNotFoundException: Error from libvirt while looking up None: [Error Code 8] name in virDomainLookupByName must not be NULL Any ideas what causes this behaviour? I have grizzly in use. Any help is much appreciated. Thanks, -Juha ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] How to query ceilometer to get nova-specific data
Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] How to query ceilometer to get nova-specific data
Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks
Re: [Openstack] How to query ceilometer to get nova-specific data
Nothing special since I restarted my server this morning. Yesterday I had an ERROR message which said it had a virDomainLookupByName error which must not be NULL. I restarted the machine after which there have not been any errors, thankfully. I raised a question regarding this on ask.openstack.orghttps://ask.openstack.org/question/2345/libvirt-error-in-ceilometer-agent-compute-logs/, but have not got any response as such. Can anything else be responsible? And is using admin user for querying ceilometer fine? On Thu, Jun 20, 2013 at 6:09 PM, Brent Roskos brent.ros...@solinea.comwrote: Ok - good, sometimes that trips folks up. I think most of the instance specific data, like CPU is accumulated by the ceilometer-agent-compute is this running properly on your compute node(s)? Anything interesting in the logs for that service on the compute node(s)? Brent On Thu, Jun 20, 2013 at 8:17 AM, Jobin Raju George jobin...@gmail.comwrote: Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-list has admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.pt wrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https
Re: [Openstack] How to query ceilometer to get nova-specific data
It is a single node architecture, installed on Ubuntu 12.04 which is a Virtual Machine. I installed openstack using the manual instructions, not using devstack. I haven't installed quantum, since I don't need networking for the moment. And yes, I see that mongodb has a database ceilometer (size:203.125 MB) which has 5 collections: meter, project, resource, system.indexes and user, none of which have nova-specific data in them. On Thu, Jun 20, 2013 at 6:46 PM, claudio marques clau...@onesource.ptwrote: Have you have single node, devstack or multi-node openstack architecture ? clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 18:35:49 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here http://pastebin.ubuntu.com/5783592/. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.ptwrote: Hi Try to see if your daemons *(api, collector, central agent, compute agent) * are working without having issues. *(see logs)*! Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data
Re: [Openstack] How to query ceilometer to get nova-specific data
The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here http://pastebin.ubuntu.com/5783592/. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.ptwrote: Hi Try to see if your daemons *(api, collector, central agent, compute agent) * are working without having issues. *(see logs)*! Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https
Re: [Openstack] How to query ceilometer to get nova-specific data
Hey, Claudio! That was a nice catch! But I don't know why I ceilometer continues to behave the same way. I have posted the query and the output for your reference here http://pastebin.ubuntu.com/5783805/. I am indebted for your patience! :-) On Thu, Jun 20, 2013 at 7:06 PM, claudio marques clau...@onesource.ptwrote: Okay. You don't have your rabbit configuration on your ceilometer.conf file. rabbit_host=localhost rabbit_port=5672 rabbit_userid=guest rabbit_password=guest rabbit_retry_backoff=2 rabbit_max_retries=0 rabbit_use_ssl=False See if this helps clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 18:53:34 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data It is a single node architecture, installed on Ubuntu 12.04 which is a Virtual Machine. I installed openstack using the manual instructions, not using devstack. I haven't installed quantum, since I don't need networking for the moment. And yes, I see that mongodb has a database ceilometer (size:203.125 MB) which has 5 collections: meter, project, resource, system.indexes and user, none of which have nova-specific data in them. On Thu, Jun 20, 2013 at 6:46 PM, claudio marques clau...@onesource.ptwrote: Have you have single node, devstack or multi-node openstack architecture ? clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 18:35:49 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data The logs presently don't have ERROR's or WARNING's, so I presume they are running well and as for the config file, I have customized it a bit. Please have a look at it here http://pastebin.ubuntu.com/5783592/. Thank you so much for your patience! :) On Thu, Jun 20, 2013 at 6:17 PM, claudio marques clau...@onesource.ptwrote: Hi Try to see if your daemons *(api, collector, central agent, compute agent) * are working without having issues. *(see logs)*! Have you configured your ceilometer.conf file or is the default one? Are shore that you are filing your data base? Cheers Claudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 17:47:45 +0530 From: jobin...@gmail.com To: brent.ros...@solinea.com CC: clau...@onesource.pt; openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Brent! Yes, I am using admin as the user for querying and keystone user-role-listhas admin as one of its roles. On Thu, Jun 20, 2013 at 5:16 PM, Brent Roskos brent.ros...@solinea.comwrote: Jobin, Please ensure that the token you are using was obtained with a user having the admin role. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about
Re: [Openstack] How to query ceilometer to get nova-specific data
. Regards, Brent On Thu, Jun 20, 2013 at 7:29 AM, Jobin Raju George jobin...@gmail.comwrote: Thanks Claudio for your detailed explanation, but the query returns me an empty list: [] Is something wrong with my nova-* or ceilometer-*? On Thu, Jun 20, 2013 at 4:53 PM, claudio marques clau...@onesource.ptwrote: Hi Well, i am also trying to decode all the meters that ceilometer can return, and how to do most of the queries, but, to query some specific data, what I am doing is: Firs get the resource id number and then query using parameters in the curl command. This is what I already tested: Get the resource id from what you want to query ceilometer *$ curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources **| python -mjson.tool** * And then query with: *$curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/ meters/cpu?q.field=resource_idq.value=resource_id_here | python -mjson.tool* Remember that option q is to filter rules for the resources to be returned, and try to use *python mjson.tool,* just for having something legible in your terminal. Good luck :) Cláudio Marques clau...@onesource.pt http://www.onesource.pt/ -- Date: Thu, 20 Jun 2013 16:03:00 +0530 From: jobin...@gmail.com To: clau...@onesource.pt CC: openstack@lists.launchpad.net Subject: Re: [Openstack] How to query ceilometer to get nova-specific data Hey, Claudio! The command I executed is the second command in the page that you gavehttp://docs.openstack.org/developer/ceilometer/webapi/v2.html(which is also the one I am referring to). Can you please pin-point what is the mistake in the command or counsel what is the right one to get nova-specific data? By the way, I replaced resource_id with the actual ID of the resource I wanted. On Thu, Jun 20, 2013 at 3:50 PM, claudio marques clau...@onesource.ptwrote: Hi Jobin I think that your Curl command is not right. Look into this page for more info about meters from ceilometer. http://docs.openstack.org/developer/ceilometer/webapi/v2.html#ceilometer.api.controllers.v2.Statistics.max Cheers -- Date: Thu, 20 Jun 2013 15:19:44 +0530 From: jobin...@gmail.com To: openstack@lists.launchpad.net Subject: [Openstack] How to query ceilometer to get nova-specific data Hey, all! I installed ceilometer on Ubuntu 12.04 using the manual installation guide given herehttp://docs.openstack.org/developer/ceilometer/install/manual.html. However, I am having trouble getting data from it. When I do a ceilometer meter-list, all I get is a table with 4 rows with the names: image and image.size and its parameters; no CPU, vCPU and memory. When I query using curl, I get some data regarding images installed and their sizes and ID and date of creation, etc.; no nova-specific data. This is how I query ceilometer using curl: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/resources/resource_id; This returns a 404 Not Found error. These are my primary concerns: 1) How do I query to get the CPU resources utilized by my virtual machines? 2) How do I decide on which port I have to pass this query? There are some documents which have v1 instead of v2 in the URL, I would like to have clarification on that too. Thanks for your patience. -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.netUnsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe
[Openstack] Ceilometer returns empty list
Hey all! I have installed ceilometer using the manual installation guide given at Ceilometer installation guide http://docs.openstack.org/developer/ceilometer/install/manual.html I have not installed swift since I just need the compute data such as CPU utilization, CPU utilization time, Memory utilization etc. The components ceilometer-api, ceilometer-agent-compute, ceilometer-agent-central and ceilometer-collector are running fine and logging to respective files. However, when I query ceilometer using curl as: curl -X GET -H 'X-Auth-Token:my_token_here' http://localhost:8777/v2/meters/instance?q.field=metadata.event_typeq.value=compute.instance.exists I get an empty list: [] Where am I going wrong? Please ask for details, if required. Thanks a lot! -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Unable to start swift-proxy
n the documentation is has been asked to start the proxy-server in swift using service proxy-server start, which I believe should be service swift-proxy start, since the former one gives an unknown service error. However, even if I try starting using the latter command I get a start: Job failed to start error and if I start using /usr/bin/swift-proxy-server /etc/swift/proxy-server.conf I get an error message as follows: Traceback (most recent call last): File /usr/bin/swift-proxy-server, line 22, in module run_wsgi(conf_file, 'proxy-server', default_port=8080, **options) File /usr/lib/python2.7/dist-packages/swift/common/wsgi.py, line 119, in run_wsgi init_request_processor(conf_file, app_section, *args, **kwargs) File /usr/lib/python2.7/dist-packages/swift/common/wsgi.py, line 246, in init_request_processor app = loadapp('config:%s' % conf_file, global_conf={'log_name': log_name}) File /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py, line 247, in loadapp return loadobj(APP, uri, name=name, **kw) File /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py, line 271, in loadobj global_conf=global_conf) File /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py, line 296, in loadcontext global_conf=global_conf) File /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py, line 320, in _loadconfig return loader.get_context(object_type, name, global_conf) File /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py, line 450, in get_context global_additions=global_additions) File /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py, line 562, in _pipeline_app_context for name in pipeline[:-1]] File /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py, line 408, in get_context object_type, name=name) File /usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py, line 587, in find_config_section self.filename))LookupError: No section 'swift-proxy' (prefixed by 'filter') found in config /etc/swift/proxy-server.conf My /etc/swift/proxy-server.conf is herehttp://pastebin.ubuntu.com/5780257/ . Thanks! -- Thanks and regards, Jobin Raju George Third Year, Information Technology College of Engineering Pune Alternate e-mail: georgejr10...@coep.ac.in ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp