Dynamic scoping used in resource defaults in class nova sometimes causes a dependency cycle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-nova |
Fix Released
|
Undecided
|
Risto Laurikainen |
Bug Description
Class nova has the following resource defaults set for all file resources:
File {
require => Package[
owner => 'nova',
group => 'nova',
}
This should of course only apply to file resources declared in nova, but sometimes dynamic scoping causes it to be applied elsewhere as well:
Error: Could not apply complete catalog: Found 1 dependency cycle:
(Anchor[
This looks like a Puppet bug, but avoiding dynamic scoping in puppet-nova should be an easy fix. I tried removing the resource defaults for file resources in init.pp and instead explicitly defined the parameters for each file resource and that fixed this for me. The functionality of the class remains the same - there are just a few more lines of code.
Avoiding dynamic scoping like this is the recommended way according to Puppet documentation:
http://
Changed in puppet-nova: | |
milestone: | none → 5.0.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/110253
Review: https:/