diff --git a/CHANGELOG.md b/CHANGELOG.md index a1b4ec4..119e1c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/metadata.rb b/metadata.rb index 0285808..fec5380 100644 --- a/metadata.rb +++ b/metadata.rb @@ -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." diff --git a/recipes/agent-compute.rb b/recipes/agent-compute.rb index 3c9b3b6..f9dbf09 100644 --- a/recipes/agent-compute.rb +++ b/recipes/agent-compute.rb @@ -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