Bug 1114867 - Cannot get memory reading from ceilometer in Icehouse
Summary: Cannot get memory reading from ceilometer in Icehouse
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ceilometer
Version: 5.0 (RHEL 6)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 5.0 (RHEL 6)
Assignee: Chris Dent
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-01 07:47 UTC by Pablo Iranzo Gómez
Modified: 2019-04-16 14:13 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-15 18:14:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pablo Iranzo Gómez 2014-07-01 07:47:57 UTC
Description of problem:

With latest packages, ceilometer doesn't report metrics


[root@localhost ~]# . keystonerc_admin 
[root@localhost ~(keystone_admin)]# ceilometer sample-list -m memory
+-------------+------+------+--------+------+-----------+
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+-------------+------+------+--------+------+-----------+
+-------------+------+------+--------+------+-----------+

Comment 2 Lee Yarwood 2014-07-01 14:30:06 UTC
This appears to be due to the use of independent virt inspectors in Icehouse and in particular the lack of functionality within the libvirt inspector :

/var/log/ceilometer/compute.log

~~~
2014-07-01 10:08:35.630 11293 INFO ceilometer.agent [-] Polling pollster memory.usage
2014-07-01 10:08:35.631 11293 DEBUG ceilometer.compute.pollsters.memory [-] Checking memory usage for instance 2828fdaa-2e71-4e10-9d9b-00694bb2ef01 get_samples /usr/lib/python2.7/site-packages/ceilometer/compute/pollsters/memory.py:31
2014-07-01 10:08:35.632 11293 DEBUG ceilometer.compute.pollsters.memory [-] Obtaining Memory Usage is not implemented for LibvirtInspector get_samples /usr/lib/python2.7/site-packages/ceilometer/compute/pollsters/memory.py:51
~~~

Eoghan, should we close this as a duplicate of RFE BZ#1042332?

Comment 3 Pablo Iranzo Gómez 2014-07-24 06:50:20 UTC
Eoghan, any update on Lee's question?

Thanks

Comment 4 Eoghan Glynn 2014-08-01 04:50:18 UTC
I think there's been misunderstanding of the log message referenced by Lee above in Comment 2.

Even though the originating python module is called memory.py, the pollster defined therein is responsible for emitting a separate memory.usage meter (as opposed to 'memory').

This 'memory.usage' meter is not supported for the libvirt inspector, hence the expected exception. The 'memory.usage' meter was added specifically for the VMware vSphere inspector introduced in Icehouse.

The 'memory' meter, on the other hand, is gathered from notifications emitted by nova (as opposed to being polled from the hypervisor).

I am seeing this meter being produced, details below[1].

Can you check whether you've got an ACTIVE instance running and also whether notifications are enabled for nova?


[1]
$ sudo rpm -qa | grep openstack-ceilometer-compute
openstack-ceilometer-compute-2014.1.1-1.el6ost.noarch

$ nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| c420887c-e8b3-4c65-b30f-a0b47696ba09 | s1   | ACTIVE | -          | Running     | public=172.24.4.227 |
+--------------------------------------+------+--------+------------+-------------+---------------------+

$ ceilometer statistics -m memory
+--------+----------------------------+----------------------------+-------+-------+-------+--------+-------+----------+----------------------------+----------------------------+
| Period | Period Start               | Period End                 | Max   | Min   | Avg   | Sum    | Count | Duration | Duration Start             | Duration End               |
+--------+----------------------------+----------------------------+-------+-------+-------+--------+-------+----------+----------------------------+----------------------------+
| 0      | 2014-08-01T08:29:36.262000 | 2014-08-01T08:29:36.262000 | 512.0 | 512.0 | 512.0 | 1024.0 | 2     | 240.181  | 2014-08-01T08:29:36.262000 | 2014-08-01T08:33:36.443000 |
+--------+----------------------------+----------------------------+-------+-------+-------+--------+-------+----------+----------------------------+----------------------------+

Comment 5 Eoghan Glynn 2014-08-01 05:00:12 UTC
On the specific question of being duplicate of RFE BZ#1042332 ...

I wouldn't agree, as the current bug reports the 'memory' meter not being seen, whereas BZ#1042332 is a request for the addition of support to libvirt for a memory utilization meter (along the lines of the VMware vSphere 'memory.usage' meter mentioned in the previous comment).

Comment 6 Pablo Iranzo Gómez 2014-08-18 08:11:54 UTC
Do we have ETA for this?

Regards,
Pablo

Comment 7 Chris Dent 2014-08-18 08:31:12 UTC
Hi Pablo, I think we're still waiting on an answer to the question in Eoghan's first comment:

"Can you check whether you've got an ACTIVE instance running and also whether notifications are enabled for nova?"

His comment suggests that in order for there to be a memory meter there needs to be at least one active instance and notifications need to be turned on.

Comment 8 Pablo Iranzo Gómez 2014-08-18 08:53:57 UTC
Chris,
Checking with customer, setting needinfo on me for updating afterwards.

Thanks!
Pablo

Comment 9 Chris Dent 2015-06-08 09:24:26 UTC
Pablo, any status on this, it's been open and pending needinfo from you for a long time. Can will resolve it?

Comment 10 Pablo Iranzo Gómez 2015-11-23 12:41:10 UTC
Chris, customer not updated the case anymore.

Thanks for closing this.


Note You need to log in before you can comment on or make changes to this bug.