Ceilometer configuration fails on a node with custom compute role
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Michael Polenchuk |
Bug Description
Detailed bug description:
Puppet manifest executed by ceilometer-compute deployment task pulls compute.pp manifest
/etc/puppet/
it contains conditioned include with a hardcoded 'compute' role name:
if (roles_
include ::nova::params
service { 'nova-compute':
ensure => 'stopped',
name => $::nova:
}
}
If there is a custom role created for compute services this condition does not match. Include does not work and ceilometer deployment fails because without mentioned include Puppet has no information about nova-compute service:
2016-03-24 21:54:44 +0000 Puppet (err): Could not find dependent Service[
ceilometer/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
It makes sense to create 'nova_roles' variable defaulting to 'compute' and use it instead of hardcoded value. In this case we will be able to override variable with the custom role and ceilometer deployment won't be broken.
Steps to reproduce:
* create custom role for compute services
* deploy environment including compute nodes with Ceilometer enabled
Expected result:
* Deployment finishes without errors
* Ceilometer and nova-compute services are up on compute node
Actual result:
see the trace above
Description of the environment:
Operation system: Ubuntu
Versions of components: Fuel 9
Reference architecture: any
tags: | added: area-library |
Changed in fuel: | |
importance: | Undecided → High |
assignee: | nobody → Fuel Library Team (fuel-library) |
milestone: | none → 9.0 |
status: | New → Confirmed |
Changed in fuel: | |
assignee: | Fuel Library Team (fuel-library) → Michael Polenchuk (mpolenchuk) |
milestone: | 9.0 → 10.0 |
Lowered as custom roles should not affect supported deployment cases, please correct me if I'm wrong