Temporary fix agent-compute dpkg bug 1221945
See https://bugs.launchpad.net/cloud-archive/+bug/1221945 The ubuntu cloud archive ceilometer-agent-compute pkg has a bug in which init script isn't installing properly gets installed as: /etc/init/ceilometer-agent.conf.dpk-new therefore until it gets fixed this temp solution works Change-Id: I0f017c834e23fb731e5ca57fb9ab90826072c1cd
This commit is contained in:
parent
bb48858097
commit
7a7926e6b4
|
@ -3,6 +3,11 @@ openstack-metering Cookbook CHANGELOG
|
|||
This file is used to list changes made in each version of the openstack-metering cookbook.
|
||||
|
||||
|
||||
v7.0.3
|
||||
------
|
||||
### Bug
|
||||
- Ubuntu cloud archive dpkg failing to install init script properly for agent-compute
|
||||
|
||||
v7.0.2
|
||||
------
|
||||
### Improvement
|
||||
|
|
|
@ -4,7 +4,7 @@ maintainer_email "cookbooks@lists.tfoundry.com"
|
|||
license "Apache 2.0"
|
||||
description "The OpenStack Metering service Ceilometer."
|
||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
version "7.0.2"
|
||||
version "7.0.3"
|
||||
|
||||
recipe "openstack-metering::agent-central", "Installs agent central service."
|
||||
recipe "openstack-metering::agent-compute", "Installs agent compute service."
|
||||
|
|
|
@ -25,6 +25,16 @@ platform["agent_compute_packages"].each do |pkg|
|
|||
package pkg
|
||||
end
|
||||
|
||||
# temp fix for compute-agent init not installing properly ubuntu
|
||||
# See https://bugs.launchpad.net/cloud-archive/+bug/1221945
|
||||
if node["platform"] == "ubuntu"
|
||||
init_script = "/etc/init/ceilometer-agent-compute.conf"
|
||||
execute "fix init script" do
|
||||
command "cp #{init_script}.dpkg-new #{init_script}"
|
||||
not_if { ::File.exists?(init_script) }
|
||||
end
|
||||
end
|
||||
|
||||
service platform["agent_compute_service"] do
|
||||
action :start
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue