Bug 1283261

Summary: ceilometer-nova is not configured
Product: [Community] RDO Reporter: Daniel Mellado <dmellado>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED CURRENTRELEASE QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: medium    
Version: KiloCC: aortega, apevec, derekh, dmellado, emacchi, mmagr, srevivo
Target Milestone: ---Keywords: Automation, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-7.0.0-0.10.dev1682.g42b3426.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1299563 (view as bug list) Environment:
Last Closed: 2016-04-20 13:44:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1299563, 1302047    

Description Daniel Mellado 2015-11-18 14:29:44 UTC
Description of problem:
ceilometer-nova service is not sending notifications due to being unconfigured. Taking http://docs.openstack.org/kilo/install-guide/install/yum/content/ceilometer-nova.html as a model and comparing it to a fresh install shows that the /etc/nova/nova.conf file lacks the notification_driver configuration, among others

Version-Release number of selected component (if applicable):
RHOS7/RHEL7.2

How reproducible:
Run the tempest.api.telemetry.test_telemetry_notification_api.TelemetryNotificationAPITestJSON.test_check_nova_notificationer


Actual results:
Fails due to no notifications being recieved after 300 s

Expected results:

The test to pass

Additional info:

Comment 1 Emilien Macchi 2015-12-02 19:05:55 UTC
Could please give more context?
Which installer are you running? Which version?

Thanks

Comment 4 Daniel Mellado 2016-01-18 15:55:27 UTC
This issue is also affecting RHOS7. After investigating, it seems that this is a packstack configuration problem.

The configuration from ceilometer is nova.conf over compute nodes should follow the guide's details, i.e.

[DEFAULT]
...
instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
notification_driver = messagingv2

However, after a default deployment, the following values for them can be found:

[DEFAULT]
notification_driver=ceilometer.compute.nova_notifier
notification_driver=nova.openstack.common.notifier.rpc_notifier
notification_driver=
instance_usage_audit = False
instance_usage_audit_period = month (This value doesn't really affect)
notify_on_state_change = <None>

After changing the values to the ones proposed in the configuration guide [1] and restarting the needed services, the nova notifications start working, and the test now passes.

(.venv)[cloud-user@rhos7_rhel7 tempest-dir]$ python -m testtools.run tempest.api.telemetry.test_telemetry_notification_api.TelemetryNotificationAPITestJSON.test_check_nova_notification
Tests running...

Ran 1 test in 2.140s
OK


---
[1] http://docs.openstack.org/kilo/install-guide/install/yum/content/ceilometer-nova.html

Comment 5 Alan Pevec 2016-02-05 00:31:00 UTC
Martin, OpenStack gerrit 253470 was merged, is there anything else left to fix this issue?

Comment 6 Martin Magr 2016-02-05 13:50:32 UTC
There is nothing else, I've submitted backports.