Skip to content

Instantly share code, notes, and snippets.

View mgagne's full-sized avatar

Mathieu Gagné mgagne

View GitHub Profile
class glance::cache::cleaner (
$minute = 1,
$hour = 0,
) {
include glance::params
cron { 'glance-cache-cleaner':
command => $glance::params::cache_cleaner_command,
environment => 'PATH=/bin:/usr/bin:/usr/sbin',
if $allowed_hosts {
# NOTE(mgagne): Check to avoid duplicate resource declarations
if (is_string($allowed_hosts) and ($allowed_hosts != $host)) or
(is_array($allowed_hosts) and !member($allowed_hosts,$host)) {
glance::db::mysql::host_access { $allowed_hosts:
user => $user,
password => $password,
database => $dbname,
}
require 'spec_helper'
describe 'ceilometer::agent::central' do
let :pre_condition do
"class { 'ceilometer': metering_secret => 's3cr3t' }"
end
let :params do
{ :auth_url => 'http://localhost:5000/v2.0',
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_class_parameter_defaults')
require 'spec_helper'
describe 'swift::storage::node' do
let :facts do
{ :operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:processorcount => 1,
:concat_basedir => '/var/lib/puppet/concat',
}
diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py
index f2be2d6..d1b98bf 100644
--- a/cinder/volume/manager.py
+++ b/cinder/volume/manager.py
@@ -183,10 +183,13 @@ class VolumeManager(manager.SchedulerDependentManager):
volume_ref = self.db.volume_update(context,
volume_ref['id'],
updates)
- self._copy_image_to_volume(context,
- volume_ref,
diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py
index f2be2d6..cfe5fe8 100644
--- a/cinder/volume/manager.py
+++ b/cinder/volume/manager.py
@@ -610,6 +610,11 @@ class VolumeManager(manager.SchedulerDependentManager):
"error: %(error)s") % {'volume_id': volume_id,
'error': ex})
raise exception.ImageCopyFailure(reason=ex)
+ except Exception as ex:
+ LOG.error(_("Failed to copy image to volume: %(volume_id)s, "
nova::params
nova::init
nova::install
nova::config
nova::api
nova::api::install
nova::api::config
nova::api::service
nova::compute
nova::compute::install
# Information taken from the book 'Puppet Types and Providers'
Puppet::Type.type(:customtype).provide(
:customprovider,
:parent => Puppet::Provider::CustomProvider
) do
# Automagically generates getter and setter for each resource property
mk_resource_methods
$database_connection = database_connection({
dialect => $database,
username => $database_username,
password => $database_password,
host => $database_host,
port => $database_port,
database => $database_name,
encoding => $database_encoding })