AttributeError when pulling CPUTime

Bug #1078493 reported by Endre Karlson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
New
Undecided
Unassigned

Bug Description

2012-11-13 23:41:50 64872 INFO ceilometer.compute.libvirt.cpu [-] CPUTIME USAGE: {'OS-EXT-STS:task_state': None, 'addresses': {u'smart-net': [{u'version': 4, u'addr': u'172.16.59.5'}]}, 'links': [{u'href': u'http://nova.bouvetlab.local:8774/v2/de1cf419286146fb97f3e3e27fe7b3f3/servers/14e1c3b2-513f-4efe-8a89-71c2d4d49f90', u'rel': u'self'}, {u'href': u'http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/servers/14e1c3b2-513f-4efe-8a89-71c2d4d49f90', u'rel': u'bookmark'}], 'image': {u'id': u'0906f07d-f419-4a9d-8404-047db4717497', u'links': [{u'href': u'http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/images/0906f07d-f419-4a9d-8404-047db4717497', u'rel': u'bookmark'}]}, 'manager': <novaclient.v1_1.servers.ServerManager object at 0x3af5a10>, 'OS-EXT-STS:vm_state': u'active', 'OS-EXT-SRV-ATTR:instance_name': u'vm-00000017', 'flavor': {'vcpus': 2, u'id': u'3', u'links': [{u'href': u'http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/flavors/3', u'rel': u'bookmark'}], 'name': u'm1.medium'}, 'id': u'14e1c3b2-513f-4efe-8a89-71c2d4d49f90', 'security_groups': [{u'name': u'default'}], 'user_id': u'4ce5c085e09a478ea4edcd667a92df78', 'OS-DCF:diskConfig': u'MANUAL', 'accessIPv4': u'', 'accessIPv6': u'', 'progress': 0, 'OS-EXT-STS:power_state': 1, 'config_drive': u'', 'status': u'ACTIVE', 'updated': u'2012-11-12T12:04:30Z', 'hostId': u'e36b845d391d57d46eba73b5248611693f6144599b9b72c19315a044', 'OS-EXT-SRV-ATTR:host': u'cmp02', 'key_name': u'default', 'OS-EXT-SRV-ATTR:hypervisor_hostname': u'cmp02.os.lan', 'name': u'test', 'created': u'2012-11-12T12:03:17Z', 'tenant_id': u'c97027dd880d4c129ae7a4ba7edade05', '_info': {u'OS-EXT-STS:task_state': None, u'addresses': {u'smart-net': [{u'version': 4, u'addr': u'172.16.59.5'}]}, u'links': [{u'href': u'http://nova.bouvetlab.local:8774/v2/de1cf419286146fb97f3e3e27fe7b3f3/servers/14e1c3b2-513f-4efe-8a89-71c2d4d49f90', u'rel': u'self'}, {u'href': u'http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/servers/14e1c3b2-513f-4efe-8a89-71c2d4d49f90', u'rel': u'bookmark'}], u'image': {u'id': u'0906f07d-f419-4a9d-8404-047db4717497', u'links': [{u'href': u'http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/images/0906f07d-f419-4a9d-8404-047db4717497', u'rel': u'bookmark'}]}, u'OS-EXT-STS:vm_state': u'active', u'OS-EXT-SRV-ATTR:instance_name': u'vm-00000017', u'flavor': {'vcpus': 2, u'id': u'3', u'links': [{u'href': u'http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/flavors/3', u'rel': u'bookmark'}], 'name': u'm1.medium'}, u'id': u'14e1c3b2-513f-4efe-8a89-71c2d4d49f90', u'security_groups': [{u'name': u'default'}], u'user_id': u'4ce5c085e09a478ea4edcd667a92df78', u'OS-DCF:diskConfig': u'MANUAL', u'accessIPv4': u'', u'accessIPv6': u'', u'progress': 0, u'OS-EXT-STS:power_state': 1, u'config_drive': u'', u'status': u'ACTIVE', u'updated': u'2012-11-12T12:04:30Z', u'hostId': u'e36b845d391d57d46eba73b5248611693f6144599b9b72c19315a044', u'OS-EXT-SRV-ATTR:host': u'cmp02', u'key_name': u'default', u'OS-EXT-SRV-ATTR:hypervisor_hostname': u'cmp02.os.lan', u'name': u'test', u'created': u'2012-11-12T12:03:17Z', u'tenant_id': u'c97027dd880d4c129ae7a4ba7edade05', u'metadata': {}}, 'metadata': {}, '_loaded': True} 221040000000
2012-11-13 23:41:50 64872 ERROR ceilometer.compute.libvirt.cpu [-] could not get CPU time for 14e1c3b2-513f-4efe-8a89-71c2d4d49f90: vcpus
2012-11-13 23:41:50 64872 ERROR ceilometer.compute.libvirt.cpu [-] vcpus
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu Traceback (most recent call last):
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu File "/opt/ceilometer/ceilometer/compute/libvirt.py", line 183, in get_counters
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu cpu_util = self.get_cpu_util(instance, cpu_info)
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu File "/opt/ceilometer/ceilometer/compute/libvirt.py", line 166, in get_cpu_util
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu cores_fraction = instance.vcpus * 1.0 / multiprocessing.cpu_count()
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 326, in __getattr__
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu raise AttributeError(k)
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu AttributeError: vcpus
2012-11-13 23:41:50 64872 TRACE ceilometer.compute.libvirt.cpu
2012-11-13 23:41:50 64872 INFO ceilometer.compute.manager [-] polling libvirt_net
2012-11-13 23:41:50 64872 INFO ceilometer.compute.libvirt.net [-] checking instance 14e1c3b2-513f-4efe-8a89-71c2d4d49f90
2012-11-13 23:41:51 64872 INFO ceilometer.compute.libvirt.net [-] NETWORK USAGE: vm-00000017 vnet0: read-bytes=6125314 write-bytes=2171068

Revision history for this message
dan wendlandt (danwent) wrote :

I think this should be filed against ceilometer, not quantum

affects: quantum → ceilometer
Revision history for this message
Endre Karlson (endre-karlson) wrote : Re: [Bug 1078493] Re: AttributeError when pulling CPUTime
Download full text (5.4 KiB)

Correct ;p
Den 14. nov. 2012 00:25 skrev "dan wendlandt" <email address hidden>
følgende:
>
> I think this should be filed against ceilometer, not quantum
>
> ** Project changed: quantum => ceilometer
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1078493
>
> Title:
> AttributeError when pulling CPUTime
>
> Status in Openstack Metrics (ceilometer):
> New
>
> Bug description:
> 2012-11-13 23:41:50 64872 INFO ceilometer.compute.libvirt.cpu [-]
CPUTIME USAGE: {'OS-EXT-STS:task_state': None, 'addresses': {u'smart-net':
[{u'version': 4, u'addr': u'172.16.59.5'}]}, 'links': [{u'href': u'
http://nova.bouvetlab.local:8774/v2/de1cf419286146fb97f3e3e27fe7b3f3/servers/14e1c3b2-513f-4efe-8a89-71c2d4d49f90',
u'rel': u'self'}, {u'href': u'
http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/servers/14e1c3b2-513f-4efe-8a89-71c2d4d49f90',
u'rel': u'bookmark'}], 'image': {u'id':
u'0906f07d-f419-4a9d-8404-047db4717497', u'links': [{u'href': u'
http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/images/0906f07d-f419-4a9d-8404-047db4717497',
u'rel': u'bookmark'}]}, 'manager': <novaclient.v1_1.servers.ServerManager
object at 0x3af5a10>, 'OS-EXT-STS:vm_state': u'active',
'OS-EXT-SRV-ATTR:instance_name': u'vm-00000017', 'flavor': {'vcpus': 2,
u'id': u'3', u'links': [{u'href': u'
http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/flavors/3',
u'rel': u'bookmark'}], 'name': u'm1.medium'}, 'id':
u'14e1c3b2-513f-4efe-8a89-71c2d4d49f90', 'security_groups': [{u'name':
u'default'}], 'user_id': u'4ce5c085e09a478ea4edcd667a92df78',
'OS-DCF:diskConfig': u'MANUAL', 'accessIPv4': u'', 'accessIPv6': u'',
'progress': 0, 'OS-EXT-STS:power_state': 1, 'config_drive': u'', 'status':
u'ACTIVE', 'updated': u'2012-11-12T12:04:30Z', 'hostId':
u'e36b845d391d57d46eba73b5248611693f6144599b9b72c19315a044',
'OS-EXT-SRV-ATTR:host': u'cmp02', 'key_name': u'default',
'OS-EXT-SRV-ATTR:hypervisor_hostname': u'cmp02.os.lan', 'name': u'test',
'created': u'2012-11-12T12:03:17Z', 'tenant_id':
u'c97027dd880d4c129ae7a4ba7edade05', '_info': {u'OS-EXT-STS:task_state':
None, u'addresses': {u'smart-net': [{u'version': 4, u'addr':
u'172.16.59.5'}]}, u'links': [{u'href': u'
http://nova.bouvetlab.local:8774/v2/de1cf419286146fb97f3e3e27fe7b3f3/servers/14e1c3b2-513f-4efe-8a89-71c2d4d49f90',
u'rel': u'self'}, {u'href': u'
http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/servers/14e1c3b2-513f-4efe-8a89-71c2d4d49f90',
u'rel': u'bookmark'}], u'image': {u'id':
u'0906f07d-f419-4a9d-8404-047db4717497', u'links': [{u'href': u'
http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/images/0906f07d-f419-4a9d-8404-047db4717497',
u'rel': u'bookmark'}]}, u'OS-EXT-STS:vm_state': u'active',
u'OS-EXT-SRV-ATTR:instance_name': u'vm-00000017', u'flavor': {'vcpus': 2,
u'id': u'3', u'links': [{u'href': u'
http://nova.bouvetlab.local:8774/de1cf419286146fb97f3e3e27fe7b3f3/flavors/3',
u'rel': u'bookmark'}], 'name': u'm1.medium'}, u'id':
u'14e1c3b2-513f-4efe-8a89-71c2d4d49f90', u'security_groups': [{u'name':
u'default'}], u'user_id': u'4ce5c085e09a478ea4edcd667a92df78',
u'OS-DC...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.